|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.eclipse.wizard.worksource.WorkSourceInstance
public class WorkSourceInstance
WorkSource instance.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.officefloor.compile.issues.CompilerIssues |
|---|
CompilerIssues.LocationType |
| Method Summary | |
|---|---|
void |
addIssue(CompilerIssues.LocationType locationType,
String location,
OfficeFloorIssues.AssetType assetType,
String assetName,
String issueDescription)
|
void |
addIssue(CompilerIssues.LocationType locationType,
String location,
OfficeFloorIssues.AssetType assetType,
String assetName,
String issueDescription,
Throwable cause)
|
void |
createControls(org.eclipse.swt.widgets.Composite page)
Creates the Control instances to populate the
WorkLoaderProperty instances. |
ClassLoader |
getClassLoader()
Obtains the ClassLoader for adding the WorkSource. |
org.eclipse.core.resources.IProject |
getProject()
Obtains the IProject that is adding the Work. |
PropertyList |
getPropertyList()
Obtains the PropertyList to source the Work from the
WorkSource. |
String |
getSuggestedWorkName()
Obtains the suggested name for the Work. |
String |
getWorkSourceClassName()
Obtains the fully qualified class name of the WorkSource. |
String |
getWorkSourceLabel()
Obtains the label for the WorkSource. |
WorkType<?> |
getWorkType()
Obtains the loaded WorkType. |
void |
loadWorkInstance(WorkInstance workInstance)
Loads the particular WorkInstance for this
WorkSourceInstance to configure properties from. |
void |
loadWorkType()
Attempts to load the WorkType. |
void |
notifyPropertiesChanged()
Notifies of a change to the PropertyList. |
void |
setErrorMessage(String message)
Specifies an error message. |
void |
setTitle(String title)
Specifies the title. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void loadWorkInstance(WorkInstance workInstance)
WorkInstance for this
WorkSourceInstance to configure properties from.
workInstance - WorkInstance.public void loadWorkType()
WorkType.
public String getWorkSourceLabel()
WorkSource.
WorkSource.public String getWorkSourceClassName()
WorkSource.
WorkSource class name.public PropertyList getPropertyList()
PropertyList to source the Work from the
WorkSource.
getPropertyList in interface WorkSourceExtensionContextPropertyList.public WorkType<?> getWorkType()
WorkType.
WorkType or null if issue loading.public String getSuggestedWorkName()
Work.
Work.public void createControls(org.eclipse.swt.widgets.Composite page)
Control instances to populate the
WorkLoaderProperty instances.
page - Composite to add Control instances.context - WorkSourceInstanceContext.public void setTitle(String title)
WorkSourceExtensionContext
setTitle in interface WorkSourceExtensionContexttitle - Title.public void setErrorMessage(String message)
WorkSourceExtensionContext
setErrorMessage in interface WorkSourceExtensionContextmessage - Error message. null indicating no error.public void notifyPropertiesChanged()
WorkSourceExtensionContext
Notifies of a change to the PropertyList.
This allows for to report issues in attempting to source the
WorkType from the WorkSource with the
PropertyList.
notifyPropertiesChanged in interface WorkSourceExtensionContextpublic org.eclipse.core.resources.IProject getProject()
WorkSourceExtensionContextIProject that is adding the Work.
getProject in interface WorkSourceExtensionContextIProject that is adding the Work.public ClassLoader getClassLoader()
WorkSourceExtensionContextClassLoader for adding the WorkSource.
getClassLoader in interface WorkSourceExtensionContextClassLoader for adding the WorkSource.
public void addIssue(CompilerIssues.LocationType locationType,
String location,
OfficeFloorIssues.AssetType assetType,
String assetName,
String issueDescription)
addIssue in interface CompilerIssues
public void addIssue(CompilerIssues.LocationType locationType,
String location,
OfficeFloorIssues.AssetType assetType,
String assetName,
String issueDescription,
Throwable cause)
addIssue in interface CompilerIssues
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||