public class SectionSourceInstance extends AbstractCompilerIssues implements SectionSourceExtensionContext
SectionSource
instance.Modifier and Type | Method and Description |
---|---|
void |
createControls(org.eclipse.swt.widgets.Composite page)
Creates the
Control instances to populate the
SectionSourceProperty instances. |
OfficeSectionType |
getOfficeSectionType()
Obtains the loaded
OfficeSectionType . |
org.eclipse.core.resources.IProject |
getProject()
Obtains the
IProject that is adding the OfficeSection . |
PropertyList |
getPropertyList()
|
String |
getSectionLocation()
Obtains the location of the
OfficeSection . |
String |
getSectionName()
Obtains the name of the
OfficeSection . |
String |
getSectionSourceClassName()
Obtains the fully qualified class name of the
SectionSource . |
String |
getSectionSourceLabel()
Obtains the label for the
SectionSource . |
SectionType |
getSectionType()
Obtains the loaded
SectionType . |
protected void |
handleDefaultIssue(DefaultCompilerIssue issue)
Implement to handle
DefaultCompilerIssue . |
void |
loadSectionInstance(SectionInstance sectionInstance)
Loads the particular
SectionInstance for this
SectionSourceInstance to configure properties from. |
void |
loadSectionType()
Attempts to load the
SectionType . |
boolean |
loadSectionType(CompilerIssues issues)
Attempts to load the
SectionType for the
ClassSectionSource . |
void |
notifyPropertiesChanged()
Notifies of a change to the
PropertyList . |
void |
setErrorMessage(String message)
Specifies an error message.
|
void |
setSectionNameAndLocation(String sectionName,
String sectionLocation)
Specifies the location of the
OfficeSection . |
void |
setTitle(String title)
Specifies the title.
|
addIssue, addIssue, captureIssues, createCompilerIssue, handleIssue
public void setSectionNameAndLocation(String sectionName, String sectionLocation)
OfficeSection
.sectionName
- Name of the OfficeSection
.sectionLocation
- Location of the OfficeSection
.public void loadSectionInstance(SectionInstance sectionInstance)
SectionInstance
for this
SectionSourceInstance
to configure properties from.sectionInstance
- SectionInstance
.public void loadSectionType()
SectionType
.public boolean loadSectionType(CompilerIssues issues)
SectionType
for the
ClassSectionSource
.issues
- CompilerIssues
to be notified of issues in loading.true
if loaded.public String getSectionSourceLabel()
SectionSource
.SectionSource
.public String getSectionSourceClassName()
SectionSource
.SectionSource
class name.public String getSectionName()
OfficeSection
.OfficeSection
.public String getSectionLocation()
OfficeSection
.OfficeSection
.public PropertyList getPropertyList()
getPropertyList
in interface SectionSourceExtensionContext
PropertyList
.public SectionType getSectionType()
SectionType
.SectionType
or null
if issue loading.public OfficeSectionType getOfficeSectionType()
OfficeSectionType
.OfficeSectionType
or null
if issue
loading.public void createControls(org.eclipse.swt.widgets.Composite page)
Control
instances to populate the
SectionSourceProperty
instances.page
- Composite
to add Control
instances.public void setTitle(String title)
SectionSourceExtensionContext
setTitle
in interface SectionSourceExtensionContext
title
- Title.public void setErrorMessage(String message)
SectionSourceExtensionContext
setErrorMessage
in interface SectionSourceExtensionContext
message
- Error message. null
indicating no error.public void notifyPropertiesChanged()
SectionSourceExtensionContext
Notifies of a change to the PropertyList
.
This allows for to report issues in attempting to source the
SectionType
from the SectionSource
with the
PropertyList
.
notifyPropertiesChanged
in interface SectionSourceExtensionContext
public org.eclipse.core.resources.IProject getProject()
SectionSourceExtensionContext
IProject
that is adding the OfficeSection
.getProject
in interface SectionSourceExtensionContext
IProject
that is adding the OfficeSection
.protected void handleDefaultIssue(DefaultCompilerIssue issue)
AbstractCompilerIssues
DefaultCompilerIssue
.handleDefaultIssue
in class AbstractCompilerIssues
issue
- DefaultCompilerIssue
.Copyright © 2005–2016. All rights reserved.