Class ReferenceProviderDescriptor
- java.lang.Object
-
- org.eclipse.ui.texteditor.quickdiff.ReferenceProviderDescriptor
-
public class ReferenceProviderDescriptor extends java.lang.ObjectDescribes an extension to thequickdiff.referenceproviderextension point.- Since:
- 3.0
- See Also:
ReferenceSelectionAction,QuickDiff
-
-
Constructor Summary
Constructors Constructor Description ReferenceProviderDescriptor(IConfigurationElement element)Creates a new descriptor forelement.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IQuickDiffReferenceProvidercreateProvider()Creates a reference provider as described in the extension's xml.booleangetDefault()Deprecated.as of 3.2, the default flag should not be used any longerjava.lang.StringgetId()Reads (if needed) and returns the id of this extension.java.lang.StringgetLabel()Reads (if needed) and returns the label of this extension.booleanisPluginLoaded()States whether the plug-in declaring this extension has been loaded already.
-
-
-
Constructor Detail
-
ReferenceProviderDescriptor
public ReferenceProviderDescriptor(IConfigurationElement element)
Creates a new descriptor forelement.This method is for internal use only.
- Parameters:
element- the extension point element to be described.
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
Reads (if needed) and returns the label of this extension.- Returns:
- the label for this extension.
-
getId
public java.lang.String getId()
Reads (if needed) and returns the id of this extension.- Returns:
- the id for this extension.
-
createProvider
public IQuickDiffReferenceProvider createProvider()
Creates a reference provider as described in the extension's xml. Sets the id on the provider.- Returns:
- a new instance of the reference provider described by this descriptor.
-
isPluginLoaded
public boolean isPluginLoaded()
States whether the plug-in declaring this extension has been loaded already.- Returns:
trueif the extension point's plug-in has been loaded,falseotherwise.
-
getDefault
@Deprecated public boolean getDefault()
Deprecated.as of 3.2, the default flag should not be used any longerReads (if needed) and returns the default attribute value of this extension.- Returns:
- the default attribute value for this extension.
-
-