Substitute for action sets [message #918646] |
Fri, 21 September 2012 03:48  |
Eclipse User |
|
|
|
We have several RCP clients based on Eclipse 3 architecture sharing a
big number of common components. On the other hand the pressure
increases to switch to an e4 architecture, because the future of e3 is
uncertain. Needless to say that during that time you have to live with
the so-called mixed mode, so I'm trying to convert as much code that is
deprecated in e4 already now but needs to run on an e3 RCP application.
The only relevant deprecation I noticed are some actions provided by the
several action-related extension points and it is mostly little work to
replace these by corresponding commands.
Now we have some usage of the org.eclipse.ui.perspectiveExtensions
extension point that refers to *action sets* and I wonder whether there
exists a recommended strategy to replace these, because (naturally) the
extension point org.eclipse.ui.actionSets is deprecated, too. To my
knowledge there does not exist any such replacement form for commands.
Any hints are appreciated!
Thanks & Greetings from Bremen,
Daniel Krügler
|
|
|
|
|
|
|
Re: Substitute for action sets [message #923676 is a reply to message #923147] |
Wed, 26 September 2012 01:13  |
Eclipse User |
|
|
|
On 2012-09-25 18:40, Paul Webster wrote:
> Since 3.3 for every actionSet there is a corresponding
> org.eclipse.ui.contexts context with a parent of org.eclipse.ui.actionSet.
>
> It can be used in o.e.ui.menus/commands visibleWhen classes:
>
> <visibleWhen
> checkEnabled="false">
> <with
> variable="activeContexts">
> <iterate
> operator="or">
> <equals
>
> value="org.eclipse.jdt.ui.text.java.actionSet.presentation">
> </equals>
> </iterate>
> </with>
> </visibleWhen>
>
>
>
> If you create even an empty actionSet and use the ID, your commands
> should be tied to that actionSet.
Thanks Paul, that would be at least better as currently (even though the
extension point action set is deprecated, too. Therefore I wondered
whether there would exist a variant that would realize the same or
similar effects without any action set extension point). I will give
that a try.
> The downside is the commands aren't displayed in the
> CustomizePerspectiveDialog Command Groups tab.
Fortunately this downside is irrelevant for our software, because we
don't provide access to that functionality to the user of our RCP
application.
Thanks & Greetings from Bremen,
Daniel Krügler
|
|
|
Powered by
FUDForum. Page generated in 0.03608 seconds