|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.issues.AbstractIssue
public abstract class AbstractIssue
Implements the non-required methods of IIssue.
Constructor Summary | |
---|---|
AbstractIssue()
|
Method Summary | |
---|---|
void |
addIssueListener(IIssueListener listener)
Adds a IIssueListener to the issue. |
ReferencedEnvelope |
getBounds()
Returns the area that this issue affects. |
java.lang.String |
getDescription()
Gets the description of the Issue. |
java.lang.String |
getEditorID()
returns null |
IEditorInput |
getEditorInput()
Returns null; |
java.lang.String |
getGroupId()
Default implementation returns "default". |
java.lang.String |
getId()
Returns the id of the issue. |
java.lang.String |
getPerspectiveID()
Returns null |
Priority |
getPriority()
Returns the priority of the issue. |
java.lang.Object |
getProperty(java.lang.String property)
Default implementation always returns null; |
java.lang.String[] |
getPropertyNames()
Default implementation returns an empty array. |
Resolution |
getResolution()
Indicates whether the issue has been resolved. |
void |
getViewMemento(IMemento memento)
If the ViewPart identified by getViewPartID is a view and the IMemento returned by this method is non-null, the view will be initialized with the memento. |
java.lang.String |
getViewPartId()
Returns the id of the ViewPart that the issue requires in order to be resolved. |
protected void |
notifyListeners(IssueChangeType type,
java.lang.Object newValue,
java.lang.Object oldValue)
|
protected void |
notifyPropertyListeners(java.lang.String propertyName,
java.lang.Object newValue,
java.lang.Object oldValue)
|
void |
removeIssueListener(IIssueListener listener)
Removes a IIssueListener from the issue. |
protected void |
setBounds(ReferencedEnvelope bounds)
|
void |
setDescription(java.lang.String description)
Sets the description of the issue. |
protected void |
setGroupId(java.lang.String groupId)
|
void |
setId(java.lang.String id)
Sets the id of the issue. |
void |
setPriority(Priority newPriority)
Sets the priority of the issue. |
protected void |
setProperty(java.lang.String propertyName,
java.lang.String value)
Sets a property |
void |
setResolution(Resolution newResolution)
Sets the state of resolution. |
protected void |
setViewMemento(IMemento viewMemento)
Memento is stored and is copied to memento argument in getViewMemento(IMemento) |
java.lang.String |
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 |
---|
fixIssue, getExtensionID, getProblemObject, init, save |
Constructor Detail |
---|
public AbstractIssue()
Method Detail |
---|
public java.lang.String getViewPartId()
IIssue
getViewPartId
in interface IIssue
public void getViewMemento(IMemento memento)
IIssue
getViewMemento
in interface IIssue
protected void setViewMemento(IMemento viewMemento)
getViewMemento(IMemento)
viewMemento
- public IEditorInput getEditorInput()
getEditorInput
in interface IIssue
public java.lang.String getEditorID()
getEditorID
in interface IIssue
public java.lang.String getPerspectiveID()
getPerspectiveID
in interface IIssue
public final Resolution getResolution()
IIssue
getResolution
in interface IIssue
public void setResolution(Resolution newResolution)
IIssue
setResolution
in interface IIssue
newResolution
- the new state.public void setPriority(Priority newPriority)
IIssue
setPriority
in interface IIssue
public final Priority getPriority()
IIssue
getPriority
in interface IIssue
public java.lang.String getDescription()
IIssue
getDescription
in interface IIssue
public final void setDescription(java.lang.String description)
IIssue
setDescription
in interface IIssue
public java.lang.String getGroupId()
getGroupId
in interface IIssue
public java.lang.String[] getPropertyNames()
getPropertyNames
in interface IIssue
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface IIssue
property
- the name/key of the propertyprotected void setProperty(java.lang.String propertyName, java.lang.String value)
propertyName
- name of the property addedvalue
- value of the property.public ReferencedEnvelope getBounds()
IIssue
getBounds
in interface IIssue
protected void setBounds(ReferencedEnvelope bounds)
protected void setGroupId(java.lang.String groupId)
public java.lang.String getId()
IIssue
getId
in interface IIssue
public void setId(java.lang.String id)
IIssue
setId
in interface IIssue
public void addIssueListener(IIssueListener listener)
IIssue
IIssueListener
to the issue. The IIssuesManager
listens to the issue in order to know which issues need
to be saved. If an implementation does not raise events when a property of the issue is changed and it does not call
IIssuesManager.save(IProgressMonitor)
then the change will not be saved.
addIssueListener
in interface IIssue
listener
- listener to add.public void removeIssueListener(IIssueListener listener)
IIssue
IIssueListener
from the issue.
removeIssueListener
in interface IIssue
listener
- listener to remove.protected void notifyListeners(IssueChangeType type, java.lang.Object newValue, java.lang.Object oldValue)
protected void notifyPropertyListeners(java.lang.String propertyName, java.lang.Object newValue, java.lang.Object oldValue)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |