public class WorkSourceInstance extends AbstractCompilerIssues implements WorkSourceExtensionContext
WorkSource
instance.Modifier and Type | Method and Description |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite page)
Creates the
Control instances to populate the
WorkSourceProperty 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()
|
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 . |
protected void |
handleDefaultIssue(DefaultCompilerIssue issue)
Implement to handle
DefaultCompilerIssue . |
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.
|
addIssue, addIssue, captureIssues, createCompilerIssue, handleIssue
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()
getPropertyList
in interface WorkSourceExtensionContext
PropertyList
.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
WorkSourceProperty
instances.page
- Composite
to add Control
instances.public void setTitle(String title)
WorkSourceExtensionContext
setTitle
in interface WorkSourceExtensionContext
title
- Title.public void setErrorMessage(String message)
WorkSourceExtensionContext
setErrorMessage
in interface WorkSourceExtensionContext
message
- 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 WorkSourceExtensionContext
public org.eclipse.core.resources.IProject getProject()
WorkSourceExtensionContext
IProject
that is adding the Work
.getProject
in interface WorkSourceExtensionContext
IProject
that is adding the Work
.public ClassLoader getClassLoader()
WorkSourceExtensionContext
ClassLoader
for adding the WorkSource
.getClassLoader
in interface WorkSourceExtensionContext
ClassLoader
for adding the WorkSource
.protected void handleDefaultIssue(DefaultCompilerIssue issue)
AbstractCompilerIssues
DefaultCompilerIssue
.handleDefaultIssue
in class AbstractCompilerIssues
issue
- DefaultCompilerIssue
.Copyright © 2005–2016. All rights reserved.