• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Change code template for getter and setter methods

New Here ,
Aug 23, 2010 Aug 23, 2010

Copy link to clipboard

Copied

How might I change the code templates Flash Builder 4 uses for creating getter and setter methods automatically? I can change templates for class generation, but can not find any getter and setter templates ...?

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 24, 2010 Aug 24, 2010

Copy link to clipboard

Copied

Hi Simmerl,

You can go to Preferences->Flash Builder -> Editors -> Code Templates ->ActionScript and edit the templates for getter and setter.

You can also type 'templates' in search text box under preferences and you would be directed to all code templates.

hope this helps.

Thanks

Anshul

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 24, 2010 Aug 24, 2010

Copy link to clipboard

Copied

Thanks for your reply. Actually I had found that setting, but it only consists of ActionScript-File, ActionScript-Class and ActionScript-Interface templates. That is what I am wondering about. Where are the other templates hidden?

templates.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 24, 2010 Aug 24, 2010

Copy link to clipboard

Copied

check inside Editoren. can you tell your build number?


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 24, 2010 Aug 24, 2010

Copy link to clipboard

Copied

There is no template section inside. I could not find any in the other relevant submenus neither.

code.png

It’s Flash Builder 4.0.1 (Build 277662)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 24, 2010 Aug 24, 2010

Copy link to clipboard

Copied

I think you are using generate getter/setter option?

You can not change template for that. Its auto generated.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 24, 2010 Aug 24, 2010

Copy link to clipboard

Copied

So, is it deeply implemented into the Flash Builder source .classes? That would be a pity.

Is it at least possible to force Flash Builder to put opening { brackets inline with the function’s head?

public function get value() :String {

     (...)

}

instead of

public function get value():String

{

     (...)

}

Thanks for your reply.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 24, 2010 Aug 24, 2010

Copy link to clipboard

Copied

LATEST

As of now its not a template for method generation. you can log an enhancement for it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines