Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Extension-point schema 'kind="indentifier" - what's its purpose?(As used in PerspectiveExtensions for targetId)
Extension-point schema 'kind="indentifier" - what's its purpose? [message #631366] Thu, 07 October 2010 09:42 Go to next message
John Ormerod is currently offline John OrmerodFriend
Messages: 39
Registered: January 2010
Member
Hello

I think 'identifier' is a recent addition to the 'Type' property of an extension-point schema Atttribute. I first saw it used in the PerepectiveExtensions schema, where it is used (as 'targetId') to point to the Perspective being extended.

In the schema source it shows as:
<appinfo>
<meta.attribute kind="identifier" basedOn="xxxx"/>
appinfo>

It's similar in construct to the 'kind=java' property.

What I can't find is any guidance on how it is intended to be used. It looks potentially useful for RCP apps.

Can anyone help?

Regards, John
Re: Extension-point schema 'kind="indentifier" - what's its purpose? [message #631374 is a reply to message #631366] Thu, 07 October 2010 10:28 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 07/10/10 3:12 PM, John Ormerod wrote:
> I think 'identifier' is a recent addition to the 'Type' property of an
> extension-point schema Atttribute. I first saw it used in the
> PerepectiveExtensions schema, where it is used (as 'targetId') to point
> to the Perspective being extended.
> In the schema source it shows as:
> <appinfo>
> <meta.attribute kind="identifier" basedOn="xxxx"/>
> appinfo>

PDE creates the Browse... button & the associated selection dialog with
all the valid identifiers. The values are computed with the basedOn
attribute. For example, the 'category' attribute when you try to create
a view.

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Extension-point schema 'kind="indentifier" - what's its purpose? [message #631398 is a reply to message #631366] Thu, 07 October 2010 12:34 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

As Prakash mentions, it generates a browse button to an attribute in
another extension point. Its actual specification syntax is XPath like:
<extensionPoint/elements/attribute

Example, we use org.eclipse.ui.commands to define commands for the system.

If you are defining a handler for the command in
org.eclipse.ui.handlers, you need to use a commandId from
org.eclipse.ui.commands. You used to just cut and paste it, which led
to ID hell (there's a bug for that :-)

Now in o.e.ui.handlers, we specify that the commandId attribute is an
identifier that links to org.eclipse.ui.commands/command/@id, which
allows PDE to browse it.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Extension-point schema 'kind="indentifier" - what's its purpose? [message #632317 is a reply to message #631398] Tue, 12 October 2010 14:39 Go to previous message
John Ormerod is currently offline John OrmerodFriend
Messages: 39
Registered: January 2010
Member
Paul, Prakash
Just wanted to say thanks very much for you prompt replies.

I get it now - at definition time it's provides a good aid to getting the correct id of another 'thing'.

Regards, Johnn
Previous Topic:org.mortbay.jetty.* dependencies for the help system
Next Topic:Communication between views
Goto Forum:
  


Current Time: Fri Nov 08 02:07:31 GMT 2024

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

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

Back to the top