Skip to main content



      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 07:27 Go to next message
Eclipse UserFriend
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 11:42 Go to previous messageGo to next message
Eclipse UserFriend
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 12:45 Go to previous messageGo to next message
Eclipse UserFriend
> 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 01:57 Go to previous messageGo to next message
Eclipse UserFriend
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 12:11 Go to previous message
Eclipse UserFriend
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: Sun May 04 00:27:32 EDT 2025

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

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

Back to the top