Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Documentation for variables in Plug-In extension editor
Documentation for variables in Plug-In extension editor [message #336410] Wed, 10 June 2009 11:27 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Hello.

When I look at
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/guide/tools/editors/manifest_editor/extension s.htm
in the documentation, then there are variables used like %perspective.name (a reference to a
resource) and $nl$ in the Plug-in extension editor.
Is that somewhere documented?

Is it also somehow possible to reference a "public static final String" field of a class as id?
Cause I sometimes also have to use those id's in my code, and it is quite unhandy if I have to
change an id. Then I have to search my code and change all occurrences manually.

Regards,
Kai
Re: Documentation for variables in Plug-In extension editor [message #336416 is a reply to message #336410] Wed, 10 June 2009 15:42 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Kai Schlamp wrote:
> Hello.
>
> When I look at
> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/guide/tools/editors/manifest_editor/extension s.htm
>
> in the documentation, then there are variables used like
> %perspective.name (a reference to a resource) and $nl$ in the Plug-in
> extension editor.
> Is that somewhere documented?
>
> Is it also somehow possible to reference a "public static final
> String" field of a class as id? Cause I sometimes also have to use
> those id's in my code, and it is quite unhandy if I have to change an
> id. Then I have to search my code and change all occurrences manually.
If you define the attribute type to be 'java' then the Rename
refactoring updates the plugin.xml for you when you rename a class.

Dani
>
> Regards,
> Kai
Re: Documentation for variables in Plug-In extension editor [message #336418 is a reply to message #336416] Wed, 10 June 2009 16:45 Go to previous messageGo to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
> If you define the attribute type to be 'java' then the Rename
> refactoring updates the plugin.xml for you when you rename a class.

Yes, I know. But how about for example the id for a command.
I often programmatically execute commands with the help of the IHandlerService. A id of the handler
must be specified then. The id that was used in the declarative extensions.
When I now change the id in the declarative extension, then I also have to change the id in the
source code.
Re: Documentation for variables in Plug-In extension editor [message #336426 is a reply to message #336418] Thu, 11 June 2009 05:57 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Kai Schlamp wrote:
>> If you define the attribute type to be 'java' then the Rename
>> refactoring updates the plugin.xml for you when you rename a class.
>
> Yes, I know. But how about for example the id for a command.
> I often programmatically execute commands with the help of the
> IHandlerService. A id of the handler must be specified then. The id
> that was used in the declarative extensions.
> When I now change the id in the declarative extension, then I also
> have to change the id in the source code.
There's no support except to simply use text search & replace.

Dani
Re: Documentation for variables in Plug-In extension editor [message #336437 is a reply to message #336410] Thu, 11 June 2009 16:11 Go to previous message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
Kai Schlamp wrote:
> Hello.
>
> When I look at
> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/guide/tools/editors/manifest_editor/extension s.htm
>
> in the documentation, then there are variables used like
> %perspective.name (a reference to a resource) and $nl$ in the Plug-in
> extension editor.
> Is that somewhere documented?

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/product_def_nl.htm
http://www.eclipse.org/articles/Article-Internationalization /how2I18n.html
Previous Topic:WizardResourceImportPage.createDestinationGroup is final?
Next Topic:Schedule UIJob in Activator.start()
Goto Forum:
  


Current Time: Fri Apr 26 07:01:37 GMT 2024

Powered by FUDForum. Page generated in 0.03656 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top