com.unitesk.requality.eclipse.editors.browser
Class ReqMarker

java.lang.Object
  extended by EditorPart
      extended by com.unitesk.requality.eclipse.editors.browser.ReqMarker
All Implemented Interfaces:
ITransactionListener

public class ReqMarker
extends EditorPart
implements ITransactionListener


Field Summary
protected  ReqDocBrowser browser
           
static java.lang.String ID
           
 
Constructor Summary
ReqMarker()
           
 
Method Summary
 void _dispose()
           
 void addSelectionChangedListener(ISelectionChangedListener listener)
           
 java.lang.Object[] addSelectionTo(Requirement req, boolean hideLocation)
          addSelectionTo must be called in transaction
 void close(boolean save)
           
static void copyFile(java.io.File in, java.io.File out)
           
 void createPartControl(Composite parent)
           
 void dispose()
           
 void doSave(IProgressMonitor monitor)
           
 void doSaveAs()
           
 void execute(TransactionStorage tStorage)
           
 void fireSelectionChange()
           
 java.lang.Object getAdapter(java.lang.Class required)
           
 ReqDocBrowser getBrowser()
           
 java.lang.String getContributorId()
           
 Document getDocument()
           
 Location getHighlightLocation()
           
 Location getSelectedLocation()
           
 ISelection getSelection()
           
 Requirement getTargetRequirement()
           
 TreeDB getTreeDB()
           
 IUndoContext getUndoContext()
           
 void init(IEditorSite site, IEditorInput input)
           
 boolean isDirty()
           
 boolean isSaveAsAllowed()
           
 void onSelectedLocationChangeByClick()
           
 void openDocument(java.net.URL url)
           
 boolean redo(java.lang.String jsData)
           
 void redo(TransactionStorage tStorage)
           
 java.lang.String removeLocation(java.lang.String locQId)
          removeLocation must be called in transaction
 void removeSelectionChangedListener(ISelectionChangedListener listener)
           
 void saveDocument(java.lang.String jsData)
          saveDocument must be called in transaction
 void setFocus()
           
 void setSelection(ISelection selection)
           
 void setTargetLocation(Location loc)
           
 void synchWithExplorer()
           
 boolean undo(java.lang.String jsData)
           
 void undo(TransactionStorage tStorage)
           
protected  void updateTargetRequirement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values

browser

protected ReqDocBrowser browser
Constructor Detail

ReqMarker

public ReqMarker()
Method Detail

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