|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.issues.AbstractIssue
net.refractions.udig.issues.FeatureIssue
public class FeatureIssue
Represents a problem or issue with a feature. The map containing the feature and the FeatureEditor will both be show. The map will be zoomed to show the feature.
Field Summary | |
---|---|
static java.lang.String |
EXT_ID
|
Constructor Summary | |
---|---|
FeatureIssue()
|
|
FeatureIssue(Priority priority,
java.lang.String description,
ILayer containingLayer,
Feature feature,
java.lang.String groupId)
|
Method Summary | |
---|---|
void |
fixIssue(IViewPart part,
IEditorPart editor)
This is called when the user wishes to fix the issue. |
java.lang.String |
getEditorID()
returns null |
IEditorInput |
getEditorInput()
Returns null; |
java.lang.String |
getExtensionID()
Returns the id of the extension definition for this type of Issue. |
java.lang.String |
getProblemObject()
Returns A one or two word name for the object that has the issue. |
java.lang.String |
getViewPartId()
Returns the id of the ViewPart that the issue requires in order to be resolved. |
void |
init(IMemento memento,
IMemento viewMemento,
java.lang.String issueId,
java.lang.String groupId,
ReferencedEnvelope bounds)
Called by framework to initialize the Issue. |
void |
save(IMemento memento)
Populates the memento with data specialized for the issues type. |
void |
setId(java.lang.String id)
Sets the id of the issue. |
static void |
setTesting(boolean b)
ONLY USE THIS FOR TESTING!!!!!!! |
Methods inherited from class net.refractions.udig.issues.AbstractIssue |
---|
addIssueListener, getBounds, getDescription, getGroupId, getId, getPerspectiveID, getPriority, getProperty, getPropertyNames, getResolution, getViewMemento, notifyListeners, notifyPropertyListeners, removeIssueListener, setBounds, setDescription, setGroupId, setPriority, setProperty, setResolution, setViewMemento, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXT_ID
Constructor Detail |
---|
public FeatureIssue()
public FeatureIssue(Priority priority, java.lang.String description, ILayer containingLayer, Feature feature, java.lang.String groupId)
Method Detail |
---|
public void setId(java.lang.String id)
IIssue
setId
in interface IIssue
setId
in class AbstractIssue
public java.lang.String getEditorID()
AbstractIssue
getEditorID
in interface IIssue
getEditorID
in class AbstractIssue
public IEditorInput getEditorInput()
AbstractIssue
getEditorInput
in interface IIssue
getEditorInput
in class AbstractIssue
public java.lang.String getViewPartId()
IIssue
getViewPartId
in interface IIssue
getViewPartId
in class AbstractIssue
public java.lang.String getProblemObject()
IIssue
public void fixIssue(IViewPart part, IEditorPart editor)
IIssue
This method can do other initializations and return or it can run the user through a workflow and only return when the problem is fixed or the user cancels the operation.
This method does NOT have to fix the issue
This method IS run in the display thread.
part
- The workbenchpart identified by IIssue.getViewPartId() or null.editor
- The editor that was identified by IIssue.getEditorID() or null.FeatureIssue
public java.lang.String getExtensionID()
IIssue
The extension id is formed by the namespace of the plugin combined with the name of the extension element.
For example: The FeatureIssue's extension id would be: net.refractions.udig.issues.featureIssue because the issue implementation is in the Issues plugin (which the id net.refractions.udig.issues) and the extension name is featureIssue. The two are combined to form the id of the extension
public void init(IMemento memento, IMemento viewMemento, java.lang.String issueId, java.lang.String groupId, ReferencedEnvelope bounds)
IIssue
memento
- The saved state of a Issue. May be null.viewMemento
- the memento for initializing the view, may be nullissueId
- the id the issue is assigned. IIssue.getId()
must return the same id.groupId
- the group id of the issue.bounds
- the bounds of the issue.public void save(IMemento memento)
IIssue
IIssue.fixIssue(IViewPart, IEditorPart)
needs to be saved in the memento.
State that is saved by the framework and is not required to be saved in this memento include:
memento
- the memento to populate with state data.public static void setTesting(boolean b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |