Package org.eclipse.ui.texteditor
Class HyperlinkDetectorDescriptor
- java.lang.Object
-
- org.eclipse.ui.texteditor.HyperlinkDetectorDescriptor
-
public final class HyperlinkDetectorDescriptor extends java.lang.ObjectDescribes a contribution to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point.- Since:
- 3.3
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSTATE_MASK_POSTFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanActivatePlugIn()AbstractHyperlinkDetectorcreateHyperlinkDetector()Deprecated.As of 3.9, replaced bycreateHyperlinkDetectorImplementation()IHyperlinkDetectorcreateHyperlinkDetectorImplementation()Creates a newIHyperlinkDetector.booleanequals(java.lang.Object obj)static HyperlinkDetectorDescriptor[]getContributedHyperlinkDetectors()Returns descriptors for all hyperlink detector extensions.java.lang.StringgetDescription()Returns the hyperlink detector's description.java.lang.StringgetId()Returns the hyperlink detector's id.java.lang.StringgetModifierKeys()Returns the hyperlink detector's modifier keys that need to be pressed for this hyperlink detector.java.lang.StringgetName()Returns the hyperlink detector's name.HyperlinkDetectorTargetDescriptorgetTarget()Returns the hyperlink detector's target descriptor.java.lang.StringgetTargetId()Returns the hyperlink detector's target id.inthashCode()
-
-
-
Field Detail
-
STATE_MASK_POSTFIX
public static final java.lang.String STATE_MASK_POSTFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContributedHyperlinkDetectors
public static HyperlinkDetectorDescriptor[] getContributedHyperlinkDetectors()
Returns descriptors for all hyperlink detector extensions.- Returns:
- an array with the contributed hyperlink detectors
-
createHyperlinkDetector
@Deprecated public AbstractHyperlinkDetector createHyperlinkDetector() throws CoreException
Deprecated.As of 3.9, replaced bycreateHyperlinkDetectorImplementation()Creates a newAbstractHyperlinkDetector.- Returns:
- the hyperlink detector or
nullif the plug-in isn't loaded yet - Throws:
CoreException- if a failure occurred during creation
-
createHyperlinkDetectorImplementation
public IHyperlinkDetector createHyperlinkDetectorImplementation() throws CoreException
Creates a newIHyperlinkDetector.- Returns:
- the hyperlink detector or
nullif the plug-in isn't loaded yet - Throws:
CoreException- if a failure occurred during creation- Since:
- 3.9
-
getId
public java.lang.String getId()
Returns the hyperlink detector's id.- Returns:
- the hyperlink detector's id
-
getName
public java.lang.String getName()
Returns the hyperlink detector's name.- Returns:
- the hyperlink detector's name
-
getTarget
public HyperlinkDetectorTargetDescriptor getTarget()
Returns the hyperlink detector's target descriptor.- Returns:
- the hyperlink detector's target descriptor
-
getTargetId
public java.lang.String getTargetId()
Returns the hyperlink detector's target id.- Returns:
- the hyperlink detector's target id
-
getDescription
public java.lang.String getDescription()
Returns the hyperlink detector's description.- Returns:
- the hyperlink detector's description or
nullif not provided
-
getModifierKeys
public java.lang.String getModifierKeys()
Returns the hyperlink detector's modifier keys that need to be pressed for this hyperlink detector.- Returns:
- the hyperlink detector's description or
nullif not provided
-
canActivatePlugIn
public boolean canActivatePlugIn()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-