org.dawb.passerelle.editors
Class UserModifyEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.dawb.passerelle.editors.UserModifyEditor
- All Implemented Interfaces:
- UserModifyComposite.Closeable, RemoveWorkbenchPart, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
public class UserModifyEditor
- extends org.eclipse.ui.part.EditorPart
- implements RemoveWorkbenchPart, UserModifyComposite.Closeable
A view that can deal with showing various values. Including actors inputs/outputs,
variables going along wires, hdf5 values etc.
- Author:
- gerring
|
Field Summary |
static java.lang.String |
ID
|
| Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
|
Method Summary |
boolean |
close()
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Create contents of the view part. |
void |
dispose()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
|
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
void |
setConfiguration(java.lang.String configuration)
Information specifying which fields should be edited and how. |
void |
setFocus()
|
void |
setPartName(java.lang.String partName)
|
void |
setQueue(java.util.Queue<java.util.Map<java.lang.String,java.lang.String>> valueQueue)
This queue will be notified when the user confirms the values. |
void |
setValues(java.util.Map<java.lang.String,java.lang.String> values)
The default values that the user will edit. |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
UserModifyEditor
public UserModifyEditor()
init
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
- Specified by:
init in interface org.eclipse.ui.IEditorPart- Specified by:
init in class org.eclipse.ui.part.EditorPart
- Throws:
org.eclipse.ui.PartInitException
setPartName
public void setPartName(java.lang.String partName)
- Specified by:
setPartName in interface RemoveWorkbenchPart- Overrides:
setPartName in class org.eclipse.ui.part.EditorPart
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Create contents of the view part.
- Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart- Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart
- Parameters:
parent -
setFocus
public void setFocus()
- Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart- Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart
dispose
public void dispose()
- Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart- Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave in interface org.eclipse.ui.ISaveablePart- Specified by:
doSave in class org.eclipse.ui.part.EditorPart
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs in interface org.eclipse.ui.ISaveablePart- Specified by:
doSaveAs in class org.eclipse.ui.part.EditorPart
isDirty
public boolean isDirty()
- Specified by:
isDirty in interface org.eclipse.ui.ISaveablePart- Specified by:
isDirty in class org.eclipse.ui.part.EditorPart
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart- Specified by:
isSaveAsAllowed in class org.eclipse.ui.part.EditorPart
setQueue
public void setQueue(java.util.Queue<java.util.Map<java.lang.String,java.lang.String>> valueQueue)
- Description copied from interface:
RemoveWorkbenchPart
- This queue will be notified when the user confirms the values.
- Specified by:
setQueue in interface RemoveWorkbenchPart
setValues
public void setValues(java.util.Map<java.lang.String,java.lang.String> values)
- Description copied from interface:
RemoveWorkbenchPart
- The default values that the user will edit.
NOTE Calling this will also refresh the UI table to reflect these new values.
- Specified by:
setValues in interface RemoveWorkbenchPart
setConfiguration
public void setConfiguration(java.lang.String configuration)
throws java.lang.Exception
- Description copied from interface:
RemoveWorkbenchPart
- Information specifying which fields should be edited and how.
- Specified by:
setConfiguration in interface RemoveWorkbenchPart
- Throws:
java.lang.Exception
close
public boolean close()
- Specified by:
close in interface UserModifyComposite.Closeable