public class GovernanceSourceInstance extends AbstractCompilerIssues implements GovernanceSourceExtensionContext
GovernanceSource
instance.Modifier and Type | Method and Description |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite page)
|
String |
getGovernanceName()
Obtains the name of the
Governance . |
String |
getGovernanceSourceClassName()
Obtains the fully qualified class name of the
GovernanceSource . |
String |
getGovernanceSourceLabel()
Obtains the label for the
GovernanceSource . |
GovernanceType<?,?> |
getGovernanceType()
Obtains the loaded
GovernanceType . |
org.eclipse.core.resources.IProject |
getProject()
Obtains the
IProject that is adding the Governance . |
PropertyList |
getPropertyList()
|
protected void |
handleDefaultIssue(DefaultCompilerIssue issue)
Implement to handle
DefaultCompilerIssue . |
void |
loadGovernanceInstance(GovernanceInstance governanceInstance)
Loads the particular
GovernanceInstance for this
GovernanceSourceInstance to configure properties from. |
void |
loadGovernanceType()
Attempts to load the
GovernanceType . |
void |
notifyPropertiesChanged()
Notifies of a change to the
PropertyList . |
void |
setErrorMessage(String message)
Specifies an error message.
|
void |
setGovernanceName(String governanceName)
Specifies the name of the
Governance . |
void |
setTitle(String title)
Specifies the title.
|
addIssue, addIssue, captureIssues, createCompilerIssue, handleIssue
public void setGovernanceName(String governanceName)
Governance
.governanceName
- Name of the Governance
.public void loadGovernanceInstance(GovernanceInstance governanceInstance)
GovernanceInstance
for this
GovernanceSourceInstance
to configure properties from.governanceInstance
- GovernanceInstance
.public void loadGovernanceType()
GovernanceType
.public String getGovernanceSourceLabel()
GovernanceSource
.GovernanceSource
.public String getGovernanceSourceClassName()
GovernanceSource
.GovernanceSource
class name.public String getGovernanceName()
Governance
.Governance
.public PropertyList getPropertyList()
getPropertyList
in interface GovernanceSourceExtensionContext
PropertyList
.public GovernanceType<?,?> getGovernanceType()
GovernanceType
.GovernanceType
or null
if issue
loading.public void createControls(org.eclipse.swt.widgets.Composite page)
page
- Composite
to add Control
instances.public void setTitle(String title)
GovernanceSourceExtensionContext
setTitle
in interface GovernanceSourceExtensionContext
title
- Title.public void setErrorMessage(String message)
GovernanceSourceExtensionContext
setErrorMessage
in interface GovernanceSourceExtensionContext
message
- Error message. null
indicating no error.public void notifyPropertiesChanged()
GovernanceSourceExtensionContext
Notifies of a change to the PropertyList
.
This allows for to report issues in attempting to source the
GovernanceType
from the GovernanceSource
with the
PropertyList
.
notifyPropertiesChanged
in interface GovernanceSourceExtensionContext
public org.eclipse.core.resources.IProject getProject()
GovernanceSourceExtensionContext
IProject
that is adding the Governance
.getProject
in interface GovernanceSourceExtensionContext
IProject
that is adding the Governance
.protected void handleDefaultIssue(DefaultCompilerIssue issue)
AbstractCompilerIssues
DefaultCompilerIssue
.handleDefaultIssue
in class AbstractCompilerIssues
issue
- DefaultCompilerIssue
.Copyright © 2005–2016. All rights reserved.