anonymous wrote : Hi Koen,
|
| Am trying to do it on my own - am running into an issue with the JpdlLabelProvider.
The list of icons and labels is hard-coded in here - are you planning to expose these via
additional elements/attributes on the "core" and "ui" element
extensions?
|
| thanks,
| Mohan
|
Hi Mohan,
Nice to see that you are investigating the GPD code. Please don't hesitate to use this
forum to ask questions and generate feedback if you think things can be improved.
As for your question, the new generation of the GPD is not yet ready for custom
extensions. As you correctly have observed, not all the necessary information can be
specified in the available extension points. In some places (such as the label provider
and the editpart factories) big switch/case logic is present to select the right icon or
figure. Also the editpolicies can not yet be specified in the plugin.xml. Well, to be more
correct, the extensions are not used at the moment.
These capabilities (custom extensions of the GPD) will certainly *not* make it into the
3.1.0 GA release because of time constraints. They will be however most certainly be part
of a future release in the 3.1.x branch. I know the answer is probably disappointing.
However, if you really want to do a custom extension right now, you can identify the
places where the switch/cases are found, and replace those classes with your own
implementation.
Best regards,
Koen
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013870#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...