public class JndiWorkSourceExtension extends Object implements WorkSourceExtension<JndiWork,JndiWorkSource>, ExtensionClasspathProvider, ExtensionOpener
WorkSourceExtension
for the JndiWorkSource
.EXTENSION_ID
EXTENSION_ID
Constructor and Description |
---|
JndiWorkSourceExtension() |
Modifier and Type | Method and Description |
---|---|
void |
createControl(org.eclipse.swt.widgets.Composite page,
WorkSourceExtensionContext context)
Loads the input page with the necessary
Control instances to
populate the PropertyList . |
ClasspathProvision[] |
getClasspathProvisions()
Obtains the
ClasspathProvision instances for the extension. |
String |
getSuggestedWorkName(PropertyList properties)
Obtains the suggested name of the
Work . |
String |
getTaskDocumentation(TaskDocumentationContext context)
|
Class<JndiWorkSource> |
getWorkSourceClass()
Obtains the class of the
WorkSource being enriched in its usage. |
String |
getWorkSourceLabel()
Obtains the label for the
WorkSource . |
void |
openSource(ExtensionOpenerContext context)
Opens the source.
|
public Class<JndiWorkSource> getWorkSourceClass()
WorkSourceExtension
WorkSource
being enriched in its usage.getWorkSourceClass
in interface WorkSourceExtension<JndiWork,JndiWorkSource>
WorkSource
being enriched in its usage.public String getWorkSourceLabel()
WorkSourceExtension
Obtains the label for the WorkSource
.
This is a descriptive name that can be used other than the fully
qualified name of the WorkSource
.
getWorkSourceLabel
in interface WorkSourceExtension<JndiWork,JndiWorkSource>
WorkSource
.public void createControl(org.eclipse.swt.widgets.Composite page, WorkSourceExtensionContext context)
WorkSourceExtension
Control
instances to
populate the PropertyList
. Also allows notifying of changes to
Property
instances via the WorkSourceExtensionContext
.createControl
in interface WorkSourceExtension<JndiWork,JndiWorkSource>
page
- Page to be setup for populating the PropertyList
.context
- WorkSourceExtensionContext
.public String getSuggestedWorkName(PropertyList properties)
WorkSourceExtension
Work
.getSuggestedWorkName
in interface WorkSourceExtension<JndiWork,JndiWorkSource>
properties
- PropertyList
.Work
name or null
if no
suggestion.public String getTaskDocumentation(TaskDocumentationContext context) throws Throwable
WorkSourceExtension
getTaskDocumentation
in interface WorkSourceExtension<JndiWork,JndiWorkSource>
context
- TaskDocumentationContext
.Task
.Throwable
- If fails to obtain documentation about the Task
.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.