|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.activities.WorkbenchActivityHelper
A utility class that contains helpful methods for interacting with the activities API.
Method Summary | |
static boolean |
allowUseOf(Object object)
Answers whether a given contribution is allowed to be used based on activity enablement. |
static String |
createUnifiedId(IPluginContribution contribution)
Utility method to create a String containing the plugin
and extension ids of a contribution. |
static boolean |
filterItem(Object object)
Answers whether the provided object should be filtered from the UI based on activity state. |
static boolean |
isFiltering()
Returns whether the UI is set up to filter contributions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean allowUseOf(Object object)
true
is returned.
object
- the contribution to test.
public static final String createUnifiedId(IPluginContribution contribution)
String
containing the plugin
and extension ids of a contribution. This will have the form
pluginId/extensionId. If the IPluginContribution does not define a plugin id then the extension id alone is returned.
contribution
- the contribution to use
public static final boolean filterItem(Object object)
false
except when the object is an instance
of IPluginContribution
whos unified id matches an IIdentifier
that is currently disabled.
object
- the object to test
createUnifiedId(IPluginContribution)
public static final boolean isFiltering()
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.