COC 风味的  Flash Builder  代码生成脚本   Yi’s Eclipse Monkey Scripts  for Flash Builder Convention Generator By Yi Tan [email_addr...
<ul><li>安装  Eclipse Monkey: </li></ul><ul><li>Installing Eclipse Monkey: </li></ul><ul><li>http://download.eclipse.org/tec...
<ul><li>安装  Convention Generator  脚本 </li></ul><ul><li>Installing Convention Generator script </li></ul><ul><li>SVN checko...
你输入 you  type: propertyName:Number 快捷键 : Alt + 1 Shortcut Key: Alt+1
会变成 it  becomes: public   var  propertyName:Number;
propertyName: n o : Object s : String b : Boolean a : Array n : Number i : int u : uint v : Vector x : XML 使用数据类型缩写更方便 Use...
public   var  propertyName:Number; 会变成 it  becomes:
- propertyName:n 访问控制器用符号表示 Handy marks for access control +: public -: private *: protected 你输入 you  type:
private   var  propertyName:Number; 会变成 it  becomes:
-propertyName:n = 会根据数据类型自动添加默认值 Automatically adds default values 你输入 you  type:
private   var  propertyName:Number = 0 ; 会变成 it  becomes:
* $ classMember:a= $ 表明是类的属性 $ for class property 你输入 you  type:
protected   static   var  classMember:Array =  []; 会变成 it  becomes:
$$ constantMember:s= $$ 表明是常量 根据习惯常量的名字统统大写 $$ for constant property Constant members always have upper case names 你输入 you...
public   static   const  CONSTANT_MEMBER:String =   &quot;&quot; ; 会变成 it  becomes:
_ internalProperty:i 下划线表明是内部属性,于是自动创建 getter 和 setter 读写器 Underscore is the core of getter and setters 你输入 you  type:
private   var  _internalProperty:int; public   function   get  internalProperty () :int { return  _internalProperty; } pub...
-methodName () :b ()  是方法的好朋友 () is a method 你输入 you  type:
private   function  methodName () :Boolean { } 会变成 it  becomes:
Want more magic? Fine, let me know Email:  [email_address]
Upcoming SlideShare
Loading in …5
×

Convention Generator - Yi’s Eclipse Monkey Scripts for Coding ActionScript in Flash Builder

3,084 views
2,951 views

Published on

This is a handy Eclipse Monkey script generates ActionScript code templates by conventions.

Host on Google code:
http://code.google.com/p/yis-eclipse-monkey-scripts-for-flash-builder/

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
3,084
On SlideShare
0
From Embeds
0
Number of Embeds
693
Actions
Shares
0
Downloads
13
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Convention Generator - Yi’s Eclipse Monkey Scripts for Coding ActionScript in Flash Builder

  1. 1. COC 风味的 Flash Builder 代码生成脚本 Yi’s Eclipse Monkey Scripts for Flash Builder Convention Generator By Yi Tan [email_address]
  2. 2. <ul><li>安装 Eclipse Monkey: </li></ul><ul><li>Installing Eclipse Monkey: </li></ul><ul><li>http://download.eclipse.org/technology/dash/update/ </li></ul>
  3. 3. <ul><li>安装 Convention Generator 脚本 </li></ul><ul><li>Installing Convention Generator script </li></ul><ul><li>SVN checkout from http://code.google.com/p/yis-eclipse-monkey-scripts-for-flash-builder/ </li></ul>1 2 3 将 .js 文件放置到“ scripts” 子目录中 Put .js file to “scripts” sub folder 然后菜单条中即会出现此命令 Then the command should be available in the menu
  4. 4. 你输入 you type: propertyName:Number 快捷键 : Alt + 1 Shortcut Key: Alt+1
  5. 5. 会变成 it becomes: public var propertyName:Number;
  6. 6. propertyName: n o : Object s : String b : Boolean a : Array n : Number i : int u : uint v : Vector x : XML 使用数据类型缩写更方便 Use abbreviation for data type declaration 你输入 you type:
  7. 7. public var propertyName:Number; 会变成 it becomes:
  8. 8. - propertyName:n 访问控制器用符号表示 Handy marks for access control +: public -: private *: protected 你输入 you type:
  9. 9. private var propertyName:Number; 会变成 it becomes:
  10. 10. -propertyName:n = 会根据数据类型自动添加默认值 Automatically adds default values 你输入 you type:
  11. 11. private var propertyName:Number = 0 ; 会变成 it becomes:
  12. 12. * $ classMember:a= $ 表明是类的属性 $ for class property 你输入 you type:
  13. 13. protected static var classMember:Array = []; 会变成 it becomes:
  14. 14. $$ constantMember:s= $$ 表明是常量 根据习惯常量的名字统统大写 $$ for constant property Constant members always have upper case names 你输入 you type:
  15. 15. public static const CONSTANT_MEMBER:String = &quot;&quot; ; 会变成 it becomes:
  16. 16. _ internalProperty:i 下划线表明是内部属性,于是自动创建 getter 和 setter 读写器 Underscore is the core of getter and setters 你输入 you type:
  17. 17. private var _internalProperty:int; public function get internalProperty () :int { return _internalProperty; } public function set internalProperty ( value:int ) : void { } 会变成 it becomes:
  18. 18. -methodName () :b () 是方法的好朋友 () is a method 你输入 you type:
  19. 19. private function methodName () :Boolean { } 会变成 it becomes:
  20. 20. Want more magic? Fine, let me know Email: [email_address]

×