IBM Rational Performance Tester SDK

com.ibm.rational.common.test.editor.framework.extensions
Class CommonEditorExtension

java.lang.Object
  extended by org.eclipse.hyades.ui.editor.EditorExtension
      extended by org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension
          extended by com.ibm.rational.common.test.editor.framework.extensions.CommonEditorExtension
All Implemented Interfaces:
com.ibm.rational.common.test.editor.framework.extensions.ITestSuiteProvider, EventListener, IAdaptable, org.eclipse.hyades.test.ui.editor.extension.IWriteAccessChangeListener, org.eclipse.hyades.ui.adapter.ISynchronizedEditorAdapter, org.eclipse.hyades.ui.editor.IEditActionsExtension, org.eclipse.hyades.ui.editor.IEditorExtension, org.eclipse.hyades.ui.editor.IHyadesEditorExtension, org.eclipse.hyades.ui.util.IDisposable, org.eclipse.hyades.ui.util.IRefreshable, INavigationLocationProvider, ISelectionListener
Direct Known Subclasses:
LoadTestEditorExtension

public abstract class CommonEditorExtension
extends org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension
implements com.ibm.rational.common.test.editor.framework.extensions.ITestSuiteProvider, org.eclipse.hyades.test.ui.editor.extension.IWriteAccessChangeListener, INavigationLocationProvider, org.eclipse.hyades.ui.editor.IEditActionsExtension

CommonEditorExtension.java


Field Summary
protected  TestEditor m_TestEditor
           
 
Constructor Summary
CommonEditorExtension()
           
 
Method Summary
protected  void clearDirty()
           
 void connectPart(IWorkbenchPart part)
           
 INavigationLocation createEmptyNavigationLocation()
           
 INavigationLocation createNavigationLocation()
           
 void createPages()
           
 void dispose()
           
 void doSaveAs()
           
 boolean doSaveEditorFile(boolean wasDeleted)
           
 boolean editorFileChanged()
           
 boolean editorFileDeleted()
           
 Object getAdapter(Class adapter)
           
 FileEditorInput getEditorInput()
           
 IStructuredSelection getSelection()
           
abstract  TestEditor getTestEditor()
           
 org.eclipse.hyades.models.common.facades.behavioral.ITestSuite getTestSuite()
           
 void gotoMarker(IMarker marker)
           
 void handle(List changedFiles, List removedFiles)
           
 void init(org.eclipse.hyades.ui.editor.IHyadesEditorPart hyadesEditorPart)
           
protected  boolean isOkToSave()
           
 boolean isSaveAsAllowed()
           
protected  boolean isValidToSave()
           
 void markDirty()
           
 void markLocation()
           
protected  boolean onSaveAsComplete(IFile file, String newID, String newName)
           
protected  boolean performSaveAsRPT(IProgressMonitor progressMonitor)
           
 void refreshContent(Object arg0)
           
 boolean reload()
           
 void save(IProgressMonitor monitor)
           
 void selectionChanged(IWorkbenchPart part, ISelection selection)
           
 void setSelection(IStructuredSelection arg0)
           
 void writeAccessChanged(IFile file, boolean isReadOnly)
           
 
Methods inherited from class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension
addListener, doSave, editorFileWriteAccessChanged, getClipboard, getObjectURI, getProgressMonitor, getResourceSet, handleException, isDirty, logSaveMessage, notifyWriteAccessChangeListeners, reloadEditorObject, removeListener
 
Methods inherited from class org.eclipse.hyades.ui.editor.EditorExtension
checkPagesDirtyState, getHyadesEditorPart, getStatusLineMessage, isSaveOnCloseNeeded, pageActivated, refreshPages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_TestEditor

protected TestEditor m_TestEditor
Constructor Detail

CommonEditorExtension

public CommonEditorExtension()
Method Detail

getSelection

public IStructuredSelection getSelection()
Specified by:
getSelection in interface org.eclipse.hyades.ui.editor.IEditorExtension

createPages

public void createPages()
Specified by:
createPages in interface org.eclipse.hyades.ui.editor.IEditorExtension

getTestEditor

public abstract TestEditor getTestEditor()
Returns:
TestEditor - this test editor

getTestSuite

public org.eclipse.hyades.models.common.facades.behavioral.ITestSuite getTestSuite()
Specified by:
getTestSuite in interface com.ibm.rational.common.test.editor.framework.extensions.ITestSuiteProvider

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.hyades.ui.util.IDisposable
Overrides:
dispose in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

markDirty

public void markDirty()
Specified by:
markDirty in interface org.eclipse.hyades.ui.editor.IHyadesEditorExtension
Overrides:
markDirty in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

refreshContent

public void refreshContent(Object arg0)
Specified by:
refreshContent in interface org.eclipse.hyades.ui.util.IRefreshable
Overrides:
refreshContent in class org.eclipse.hyades.ui.editor.EditorExtension

reload

public boolean reload()
Specified by:
reload in interface org.eclipse.hyades.ui.adapter.ISynchronizedEditorAdapter
Overrides:
reload in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

selectionChanged

public void selectionChanged(IWorkbenchPart part,
                             ISelection selection)
Specified by:
selectionChanged in interface ISelectionListener
Overrides:
selectionChanged in class org.eclipse.hyades.ui.editor.EditorExtension

setSelection

public void setSelection(IStructuredSelection arg0)
Specified by:
setSelection in interface org.eclipse.hyades.ui.editor.IEditorExtension
Overrides:
setSelection in class org.eclipse.hyades.ui.editor.EditorExtension

editorFileChanged

public boolean editorFileChanged()
Specified by:
editorFileChanged in interface org.eclipse.hyades.ui.adapter.ISynchronizedEditorAdapter
Overrides:
editorFileChanged in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

editorFileDeleted

public boolean editorFileDeleted()
Specified by:
editorFileDeleted in interface org.eclipse.hyades.ui.adapter.ISynchronizedEditorAdapter
Overrides:
editorFileDeleted in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

doSaveAs

public void doSaveAs()
Specified by:
doSaveAs in interface org.eclipse.hyades.ui.editor.IEditorExtension
Overrides:
doSaveAs in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

performSaveAsRPT

protected boolean performSaveAsRPT(IProgressMonitor progressMonitor)

onSaveAsComplete

protected boolean onSaveAsComplete(IFile file,
                                   String newID,
                                   String newName)
Parameters:
file -
Returns:

isSaveAsAllowed

public boolean isSaveAsAllowed()
Specified by:
isSaveAsAllowed in interface org.eclipse.hyades.ui.editor.IEditorExtension
Overrides:
isSaveAsAllowed in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

isValidToSave

protected boolean isValidToSave()
Overrides:
isValidToSave in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

isOkToSave

protected boolean isOkToSave()
Overrides:
isOkToSave in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

writeAccessChanged

public void writeAccessChanged(IFile file,
                               boolean isReadOnly)
Specified by:
writeAccessChanged in interface org.eclipse.hyades.test.ui.editor.extension.IWriteAccessChangeListener

handle

public void handle(List changedFiles,
                   List removedFiles)
Specified by:
handle in interface org.eclipse.hyades.ui.adapter.ISynchronizedEditorAdapter
Overrides:
handle in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

init

public void init(org.eclipse.hyades.ui.editor.IHyadesEditorPart hyadesEditorPart)
          throws PartInitException
Specified by:
init in interface org.eclipse.hyades.ui.editor.IEditorExtension
Overrides:
init in class org.eclipse.hyades.ui.editor.EditorExtension
Throws:
PartInitException

clearDirty

protected void clearDirty()
Overrides:
clearDirty in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

gotoMarker

public void gotoMarker(IMarker marker)
Specified by:
gotoMarker in interface org.eclipse.hyades.ui.editor.IEditorExtension
Overrides:
gotoMarker in class org.eclipse.hyades.ui.editor.EditorExtension

getAdapter

public Object getAdapter(Class adapter)
Specified by:
getAdapter in interface IAdaptable
Overrides:
getAdapter in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

doSaveEditorFile

public boolean doSaveEditorFile(boolean wasDeleted)
Specified by:
doSaveEditorFile in interface org.eclipse.hyades.ui.adapter.ISynchronizedEditorAdapter
Overrides:
doSaveEditorFile in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension

getEditorInput

public FileEditorInput getEditorInput()
Returns:
FileEditorInput - the editors input object

connectPart

public void connectPart(IWorkbenchPart part)
Specified by:
connectPart in interface org.eclipse.hyades.ui.editor.IEditActionsExtension

createEmptyNavigationLocation

public INavigationLocation createEmptyNavigationLocation()
Specified by:
createEmptyNavigationLocation in interface INavigationLocationProvider

createNavigationLocation

public INavigationLocation createNavigationLocation()
Specified by:
createNavigationLocation in interface INavigationLocationProvider

markLocation

public void markLocation()

save

public void save(IProgressMonitor monitor)
          throws Exception
Overrides:
save in class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension
Throws:
Exception

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.