com.unitesk.requality.eclipse.editors.browser
Class ReqMarker
java.lang.Object
EditorPart
com.unitesk.requality.eclipse.editors.browser.ReqMarker
- All Implemented Interfaces:
- ITransactionListener
public class ReqMarker
- extends EditorPart
- implements ITransactionListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
browser
protected ReqDocBrowser browser
ReqMarker
public ReqMarker()
getUndoContext
public IUndoContext getUndoContext()
openDocument
public void openDocument(java.net.URL url)
getBrowser
public ReqDocBrowser getBrowser()
updateTargetRequirement
protected void updateTargetRequirement()
setTargetLocation
public void setTargetLocation(Location loc)
saveDocument
public void saveDocument(java.lang.String jsData)
throws CoreException
saveDocument
must be called in transaction
- Parameters:
jsData
-
- Throws:
CoreException
doSave
public void doSave(IProgressMonitor monitor)
doSaveAs
public void doSaveAs()
init
public void init(IEditorSite site,
IEditorInput input)
throws PartInitException
- Throws:
PartInitException
isDirty
public boolean isDirty()
isSaveAsAllowed
public boolean isSaveAsAllowed()
createPartControl
public void createPartControl(Composite parent)
copyFile
public static void copyFile(java.io.File in,
java.io.File out)
throws java.io.IOException
- Throws:
java.io.IOException
setFocus
public void setFocus()
getTreeDB
public TreeDB getTreeDB()
getDocument
public Document getDocument()
addSelectionTo
public java.lang.Object[] addSelectionTo(Requirement req,
boolean hideLocation)
throws java.io.UnsupportedEncodingException,
CoreException
addSelectionTo
must be called in transaction
- Parameters:
req
- hideLocation
-
- Returns:
- array of objects. [0] - selection description, [1] - location
node
- Throws:
java.io.UnsupportedEncodingException
CoreException
removeLocation
public java.lang.String removeLocation(java.lang.String locQId)
removeLocation
must be called in transaction
- Parameters:
locQId
-
- Returns:
dispose
public void dispose()
getTargetRequirement
public Requirement getTargetRequirement()
getHighlightLocation
public Location getHighlightLocation()
getSelectedLocation
public Location getSelectedLocation()
close
public void close(boolean save)
getAdapter
public java.lang.Object getAdapter(java.lang.Class required)
getContributorId
public java.lang.String getContributorId()
onSelectedLocationChangeByClick
public void onSelectedLocationChangeByClick()
addSelectionChangedListener
public void addSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener
public void removeSelectionChangedListener(ISelectionChangedListener listener)
getSelection
public ISelection getSelection()
setSelection
public void setSelection(ISelection selection)
fireSelectionChange
public void fireSelectionChange()
synchWithExplorer
public void synchWithExplorer()
redo
public boolean redo(java.lang.String jsData)
throws java.io.UnsupportedEncodingException,
CoreException
- Throws:
java.io.UnsupportedEncodingException
CoreException
undo
public boolean undo(java.lang.String jsData)
throws java.io.UnsupportedEncodingException,
CoreException
- Throws:
java.io.UnsupportedEncodingException
CoreException
execute
public void execute(TransactionStorage tStorage)
- Specified by:
execute
in interface ITransactionListener
redo
public void redo(TransactionStorage tStorage)
- Specified by:
redo
in interface ITransactionListener
undo
public void undo(TransactionStorage tStorage)
- Specified by:
undo
in interface ITransactionListener
_dispose
public void _dispose()
- Specified by:
_dispose
in interface ITransactionListener