public class ManagedObjectSourceInstance extends AbstractCompilerIssues implements ManagedObjectSourceExtensionContext
ManagedObjectSource
instance.Modifier and Type | Method and Description |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite page)
Creates the
Control instances to populate the
ManagedObjectSourceProperty instances. |
ClassLoader |
getClassLoader()
Obtains the
ClassLoader for adding the
ManagedObjectSource . |
String |
getManagedObjectSourceClassName()
Obtains the fully qualified class name of the
ManagedObjectSource
. |
String |
getManagedObjectSourceLabel()
Obtains the label for the
ManagedObjectSource . |
ManagedObjectType<?> |
getManagedObjectType()
Obtains the loaded
ManagedObjectType . |
org.eclipse.core.resources.IProject |
getProject()
Obtains the
IProject that is adding the
ManagedObjectSource . |
PropertyList |
getPropertyList()
|
String |
getSuggestedManagedObjectName()
Obtains the suggested name for the
ManagedObject . |
protected void |
handleDefaultIssue(DefaultCompilerIssue issue)
Implement to handle
DefaultCompilerIssue . |
void |
loadManagedObjectType()
Attempts to load the
ManagedObjectType . |
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 loadManagedObjectType()
ManagedObjectType
.public String getManagedObjectSourceLabel()
ManagedObjectSource
.ManagedObjectSource
.public String getManagedObjectSourceClassName()
ManagedObjectSource
.ManagedObjectSource
class name.public PropertyList getPropertyList()
getPropertyList
in interface ManagedObjectSourceExtensionContext
PropertyList
.public ManagedObjectType<?> getManagedObjectType()
ManagedObjectType
.ManagedObjectType
or null
if issue
loading.public String getSuggestedManagedObjectName()
ManagedObject
.ManagedObject
.public void createControls(org.eclipse.swt.widgets.Composite page)
Control
instances to populate the
ManagedObjectSourceProperty
instances.page
- Composite
to add Control
instances.public void setTitle(String title)
ManagedObjectSourceExtensionContext
setTitle
in interface ManagedObjectSourceExtensionContext
title
- Title.public void setErrorMessage(String message)
ManagedObjectSourceExtensionContext
setErrorMessage
in interface ManagedObjectSourceExtensionContext
message
- Error message. null
indicating no error.public void notifyPropertiesChanged()
ManagedObjectSourceExtensionContext
Notifies of a change to the PropertyList
.
This allows for to report issues in attempting to source the
ManagedObjectType
from the ManagedObjectSource
with the
PropertyList
.
notifyPropertiesChanged
in interface ManagedObjectSourceExtensionContext
public org.eclipse.core.resources.IProject getProject()
ManagedObjectSourceExtensionContext
IProject
that is adding the
ManagedObjectSource
.getProject
in interface ManagedObjectSourceExtensionContext
IProject
that is adding the ManagedObjectSource
.public ClassLoader getClassLoader()
ManagedObjectSourceExtensionContext
ClassLoader
for adding the
ManagedObjectSource
.getClassLoader
in interface ManagedObjectSourceExtensionContext
ClassLoader
for adding the ManagedObjectSource
.protected void handleDefaultIssue(DefaultCompilerIssue issue)
AbstractCompilerIssues
DefaultCompilerIssue
.handleDefaultIssue
in class AbstractCompilerIssues
issue
- DefaultCompilerIssue
.Copyright © 2005–2016. All rights reserved.