Package org.eclipse.ui.quickaccess
Class QuickAccessElement
java.lang.Object
org.eclipse.ui.quickaccess.QuickAccessElement
A QuickAccessElement describes one of the possible actions to show in Quick
Access.
- Since:
- 3.115
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
execute()
Executes the associated action for this element.abstract String
getId()
Returns the id for this element.abstract ImageDescriptor
Returns the image descriptor for this element.abstract String
getLabel()
Returns the label to be displayed to the user.Return the label to be used for matching elements.Return the label to be used for sorting elements.
-
Field Details
-
separator
- See Also:
-
-
Constructor Details
-
QuickAccessElement
public QuickAccessElement()
-
-
Method Details
-
getLabel
Returns the label to be displayed to the user.- Returns:
- the label
-
getImageDescriptor
Returns the image descriptor for this element.- Returns:
- an image descriptor, or null if no image is available
-
getId
Returns the id for this element. The id has to be unique within the QuickAccessProvider that provided this element.- Returns:
- the id
-
execute
public abstract void execute()Executes the associated action for this element. -
getSortLabel
Return the label to be used for sorting elements.- Returns:
- the sort label
-
getMatchLabel
Return the label to be used for matching elements. The match string can contain additional text that should result in a match, but isn't shown in the quick access UI.The match label should always be either identical to or a superset of the actual
label
.- Returns:
- the match label
-