|
|||||||||
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.AbstractFixableIssue
public abstract class AbstractFixableIssue
Base implementation of IIssue which persists a fixerMemento (for use with an IssueFixer).
Field Summary | |
---|---|
static java.lang.String |
ATT_CLASS
|
static java.lang.String |
ATT_ID
|
static java.lang.String |
ATT_KEY
|
static java.lang.String |
ATT_REQKEY
|
static java.lang.String |
ATT_TARGET
|
static java.lang.String |
KEY_FIXERMEMENTO
|
static java.lang.String |
XPID_ISSUEFIXER
|
Constructor Summary | |
---|---|
AbstractFixableIssue()
|
Method Summary | |
---|---|
protected IFixer |
findIssueFixer(IMemento fixerMemento)
|
void |
fixIssue(IViewPart part,
IEditorPart editor)
This is called when the user wishes to fix the issue. |
IMemento |
getFixerMemento()
Obtains the fixer memento, which contains issue state and initialization data for the IssueFixer. |
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)
Subclasses should override and call super.save(). |
void |
setFixerMemento(IMemento fixerMemento)
Overwrites the current fixerMemento with new issue state data. |
Methods inherited from class net.refractions.udig.issues.AbstractIssue |
---|
addIssueListener, getBounds, getDescription, getEditorID, getEditorInput, getGroupId, getId, getPerspectiveID, getPriority, getProperty, getPropertyNames, getResolution, getViewMemento, getViewPartId, notifyListeners, notifyPropertyListeners, removeIssueListener, setBounds, setDescription, setGroupId, setId, setPriority, setProperty, setResolution, setViewMemento, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.refractions.udig.issues.IIssue |
---|
getExtensionID, getProblemObject |
Field Detail |
---|
public static final java.lang.String ATT_ID
public static final java.lang.String ATT_CLASS
public static final java.lang.String ATT_TARGET
public static final java.lang.String ATT_KEY
public static final java.lang.String ATT_REQKEY
public static final java.lang.String KEY_FIXERMEMENTO
public static final java.lang.String XPID_ISSUEFIXER
Constructor Detail |
---|
public AbstractFixableIssue()
Method Detail |
---|
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
protected IFixer findIssueFixer(IMemento fixerMemento)
fixerMemento
-
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)
memento
- the memento to populate with state data.public IMemento getFixerMemento()
public void setFixerMemento(IMemento fixerMemento)
fixerMemento
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |