public class ClassGovernanceSourceExtension extends Object implements GovernanceSourceExtension<Object,Indexed,ClassGovernanceSource>, ExtensionClasspathProvider, ExtensionOpener
EXTENSION_ID
EXTENSION_ID
Constructor and Description |
---|
ClassGovernanceSourceExtension() |
Modifier and Type | Method and Description |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite page,
GovernanceSourceExtensionContext context)
Loads the input page with the necessary
Control instances to
populate the PropertyList . |
ClasspathProvision[] |
getClasspathProvisions()
Obtains the
ClasspathProvision instances for the extension. |
Class<ClassGovernanceSource> |
getGovernanceSourceClass()
Obtains the class of the
GovernanceSource being enriched in its
usage. |
String |
getGovernanceSourceLabel()
Obtains the label for the
GovernanceSource . |
void |
openSource(ExtensionOpenerContext context)
Opens the source.
|
public Class<ClassGovernanceSource> getGovernanceSourceClass()
GovernanceSourceExtension
GovernanceSource
being enriched in its
usage.getGovernanceSourceClass
in interface GovernanceSourceExtension<Object,Indexed,ClassGovernanceSource>
GovernanceSource
being enriched in its
usage.public String getGovernanceSourceLabel()
GovernanceSourceExtension
Obtains the label for the GovernanceSource
.
This is a descriptive name that can be used other than the fully
qualified name of the GovernanceSource
.
getGovernanceSourceLabel
in interface GovernanceSourceExtension<Object,Indexed,ClassGovernanceSource>
GovernanceSource
.public void createControl(org.eclipse.swt.widgets.Composite page, GovernanceSourceExtensionContext context)
GovernanceSourceExtension
Control
instances to
populate the PropertyList
. Also allows notifying of changes to
Property
instances via the
GovernanceSourceExtensionContext
.createControl
in interface GovernanceSourceExtension<Object,Indexed,ClassGovernanceSource>
page
- Page to be setup for populating the PropertyList
.context
- GovernanceSourceExtensionContext
.public ClasspathProvision[] getClasspathProvisions()
ExtensionClasspathProvider
ClasspathProvision
instances for the extension.getClasspathProvisions
in interface ExtensionClasspathProvider
ClasspathProvision
instances for the extension.public void openSource(ExtensionOpenerContext context) throws Exception
ExtensionOpener
openSource
in interface ExtensionOpener
context
- ExtensionOpenerContext
.Exception
- If fails to open the source.Copyright © 2005–2016. All rights reserved.