com.unitesk.requality.eclipse.ui.editors
Class JSEditor

java.lang.Object
  extended by EditorPart
      extended by com.unitesk.requality.eclipse.ui.editors.JSEditor
Direct Known Subclasses:
ReviewEditor, UniEditor

public abstract class JSEditor
extends EditorPart


Field Summary
static int EDIT_MODE_REQ_RO
           
static int EDIT_MODE_TP_RO
           
protected  java.io.File html
           
 
Constructor Summary
JSEditor()
           
 
Method Summary
 void addSelectionChangedListener(ISelectionChangedListener listener)
           
 void createPartControl(Composite parent)
           
 void dispose()
           
 void doSave(IProgressMonitor monitor)
           
 void doSaveAs()
           
 boolean findText(java.lang.String aString, boolean aCaseSensitive, boolean aBackwards, boolean aWrapAround)
           
 java.lang.Object getAdapter(java.lang.Class required)
           
 Browser getBrowser()
           
 TreeNode getCurrentSelection()
           
 ISelection getSelection()
           
 java.lang.String getSelectionText()
           
 void init(IEditorSite site, IEditorInput input)
           
 boolean isDirty()
           
 boolean isSaveAsAllowed()
           
protected  java.lang.String node2jsonString(TreeNode n)
           
protected  void refresh(TreeNode node)
           
 void removeSelectionChangedListener(ISelectionChangedListener listener)
           
 void setEditMode(int editMode)
           
 void setFocus()
           
 void setSelection(ISelection selection)
           
 void setSelection(TreeNode node)
           
protected  void setTabLabel(java.lang.String value)
           
protected  void setUniEditorFocus(java.util.UUID uuId)
           
protected  void updateTabLabel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDIT_MODE_REQ_RO

public static final int EDIT_MODE_REQ_RO
See Also:
Constant Field Values

EDIT_MODE_TP_RO

public static final int EDIT_MODE_TP_RO
See Also:
Constant Field Values

html

protected java.io.File html
Constructor Detail

JSEditor

public JSEditor()
Method Detail

getCurrentSelection

public TreeNode getCurrentSelection()

getSelectionText

public java.lang.String getSelectionText()

setSelection

public void setSelection(TreeNode node)

findText

public boolean findText(java.lang.String aString,
                        boolean aCaseSensitive,
                        boolean aBackwards,
                        boolean aWrapAround)

doSave

public void doSave(IProgressMonitor monitor)

doSaveAs

public void doSaveAs()

setTabLabel

protected void setTabLabel(java.lang.String value)

updateTabLabel

protected void updateTabLabel()

init

public void init(IEditorSite site,
                 IEditorInput input)
          throws PartInitException
Throws:
PartInitException

isDirty

public boolean isDirty()

isSaveAsAllowed

public boolean isSaveAsAllowed()

node2jsonString

protected java.lang.String node2jsonString(TreeNode n)
                                    throws JSONException
Throws:
JSONException

createPartControl

public void createPartControl(Composite parent)

setFocus

public void setFocus()

dispose

public void dispose()

refresh

protected void refresh(TreeNode node)

setUniEditorFocus

protected void setUniEditorFocus(java.util.UUID uuId)

getAdapter

public java.lang.Object getAdapter(java.lang.Class required)

getBrowser

public Browser getBrowser()

setEditMode

public void setEditMode(int editMode)

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)

removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)

getSelection

public ISelection getSelection()

setSelection

public void setSelection(ISelection selection)