TPTP 4.4.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.test.ui.internal.editor.extension
Class ConfigurableObjectEditorExtension

java.lang.Object
  extended byorg.eclipse.hyades.ui.editor.EditorExtension
      extended byorg.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension
          extended byorg.eclipse.hyades.test.ui.internal.editor.extension.ConfigurableObjectEditorExtension
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.hyades.ui.util.IDisposable, org.eclipse.hyades.ui.editor.IEditorExtension, IExtensibleEditorExtension, org.eclipse.hyades.ui.editor.IHyadesEditorExtension, org.eclipse.hyades.ui.util.IRefreshable, org.eclipse.ui.ISelectionListener, org.eclipse.hyades.ui.adapter.ISynchronizedEditorAdapter
Direct Known Subclasses:
ArtifactEditorExtension, DeploymentEditorExtension, LocationEditorExtension

public class ConfigurableObjectEditorExtension
extends org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension
implements IExtensibleEditorExtension

This is the base class for Hyades configuration editor extension.

Since:
1.3

Field Summary
protected static int PAGE_OVERVIEW
           
 
Constructor Summary
ConfigurableObjectEditorExtension()
           
 
Method Summary
 int addExtensionPage(org.eclipse.core.runtime.IConfigurationElement extensionElement)
           
protected  org.eclipse.core.runtime.IConfigurationElement[] collectPropertyGroupExtensions()
          Retrieves property group extensions that extends "org.eclipse.hyades.test.ui.configurableObjectExtension"
protected  void createOtherStaticPages(org.eclipse.hyades.test.ui.editor.form.util.WidgetFactory widgetFactory)
          Creates any pages of this editor that comes in front of the property group extension pages.
protected  ConfigurableObjectOverviewForm createOverviewPage(org.eclipse.hyades.test.ui.editor.form.util.WidgetFactory widgetFactory)
          Creates the overview page of this editor.
 void createPages()
           
protected  void createPropertyGroupPages(org.eclipse.hyades.test.ui.editor.form.util.WidgetFactory widgetFacotory)
          Create pages for property group extensions that extends "org.eclipse.hyades.test.ui.configurableObjectExtension".
 void dispose()
           
 org.eclipse.emf.ecore.EObject getEditorObject()
          Returns the data object that is manipulated by this editor extension.
protected  ConfigurableObjectOverviewForm getOverviewForm()
           
 org.eclipse.core.runtime.IConfigurationElement[] getPropertyGroupExtensions()
          Returns property group extensions that extends "org.eclipse.hyades.test.ui.configurableObjectExtension"
 org.eclipse.jface.viewers.IStructuredSelection getSelection()
           
 boolean pageActivated(int index)
           
 void refreshContent(java.lang.Object data)
           
 
Methods inherited from class org.eclipse.hyades.test.ui.editor.extension.BaseEditorExtension
addListener, clearDirty, doSave, doSaveAs, doSaveEditorFile, editorFileChanged, editorFileDeleted, editorFileWriteAccessChanged, getAdapter, getClipboard, getObjectURI, getProgressMonitor, getResourceSet, handle, handleException, isDirty, isOkToSave, isSaveAsAllowed, logSaveMessage, markDirty, notifyWriteAccessChangeListeners, reload, reloadEditorObject, removeListener, save
 
Methods inherited from class org.eclipse.hyades.ui.editor.EditorExtension
checkPagesDirtyState, getHyadesEditorPart, getStatusLineMessage, gotoMarker, init, isSaveOnCloseNeeded, refreshPages, selectionChanged, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.hyades.ui.editor.IEditorExtension
checkPagesDirtyState, doSave, doSaveAs, getHyadesEditorPart, getStatusLineMessage, gotoMarker, init, isDirty, isSaveAsAllowed, isSaveOnCloseNeeded, refreshPages, setSelection
 
Methods inherited from interface org.eclipse.ui.ISelectionListener
selectionChanged
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

PAGE_OVERVIEW

protected static final int PAGE_OVERVIEW
See Also:
Constant Field Values
Constructor Detail

ConfigurableObjectEditorExtension

public ConfigurableObjectEditorExtension()
Method Detail

collectPropertyGroupExtensions

protected org.eclipse.core.runtime.IConfigurationElement[] collectPropertyGroupExtensions()
Retrieves property group extensions that extends "org.eclipse.hyades.test.ui.configurableObjectExtension"

Returns:

getPropertyGroupExtensions

public org.eclipse.core.runtime.IConfigurationElement[] getPropertyGroupExtensions()
Returns property group extensions that extends "org.eclipse.hyades.test.ui.configurableObjectExtension"

Returns:

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.hyades.ui.util.IDisposable
See Also:
IDisposable.dispose()

getEditorObject

public org.eclipse.emf.ecore.EObject getEditorObject()
Returns the data object that is manipulated by this editor extension.

Returns:
EObject

createPages

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

createOverviewPage

protected ConfigurableObjectOverviewForm createOverviewPage(org.eclipse.hyades.test.ui.editor.form.util.WidgetFactory widgetFactory)
Creates the overview page of this editor.

Parameters:
widgetFactory -
Returns:

createOtherStaticPages

protected void createOtherStaticPages(org.eclipse.hyades.test.ui.editor.form.util.WidgetFactory widgetFactory)
Creates any pages of this editor that comes in front of the property group extension pages. Sub classes should override this method to add their own pages. This method does nothing by default.

Parameters:
widgetFactory -

createPropertyGroupPages

protected void createPropertyGroupPages(org.eclipse.hyades.test.ui.editor.form.util.WidgetFactory widgetFacotory)
Create pages for property group extensions that extends "org.eclipse.hyades.test.ui.configurableObjectExtension".

Parameters:
widgetFacotory -

getOverviewForm

protected ConfigurableObjectOverviewForm getOverviewForm()

refreshContent

public void refreshContent(java.lang.Object data)
Specified by:
refreshContent in interface org.eclipse.hyades.ui.util.IRefreshable
See Also:
IRefreshable.refreshContent(java.lang.Object)

getSelection

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

pageActivated

public boolean pageActivated(int index)
Specified by:
pageActivated in interface org.eclipse.hyades.ui.editor.IEditorExtension
See Also:
IEditorExtension.pageActivated(int)

addExtensionPage

public int addExtensionPage(org.eclipse.core.runtime.IConfigurationElement extensionElement)
Specified by:
addExtensionPage in interface IExtensibleEditorExtension

TPTP 4.4.0 Testing Tools Project
Internal API Specification