Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

FAQ How do I make my action set visible?

Revision as of 13:58, 30 May 2013 by Globtek.web.gmail.com (Talk | contribs) (See Also:)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Simply defining an action set does not guarantee that it will appear in the UI. This characteristic is very important, as an Eclipse product with thousands of plug-ins would quickly become overwhelmed with actions if their appearance in the UI was not carefully controlled. An action set can be made visible in a number of ways:

  • Set the visible attribute to true in the action set declaration. This will add your action set unconditionally to all perspectives. You should almost never do this in a real application unless you are certain that your actions are needed all the time in all perspectives. Keep in mind the scalability problems with using this approach.
  • Define a perspective or perspective extension. This will limit the appearance of your action set to a specified set of perspectives.
  • Define an action set part association, using the extension point org.eclipse.ui.actionSetPartAssociations. This extension links an action set to one or more views and editors. The action set will appear only when one of those parts is visible.
  • Finally, the user can always have the last say by customizing perspectives (Window > Customize Perspective). From here, the user can turn on or off any action sets for the current perspective. This will override all the other mechanisms for defining action set visibility.

See Also:


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top