public class ProjectEditor extends EditorPart implements AwbProjectEditorWindow
AwbProjectEditorWindow.ProjectCloseUserFeedback
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
PROP_DIRTY, PROP_INPUT
PROP_TITLE
Constructor and Description |
---|
ProjectEditor(MPart mPart,
Shell shell)
Instantiates a new project editor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultTabs()
Adds the default tabs.
|
void |
addProjectTab(ProjectWindowTab projectWindowTab)
Adds the specified project tab.
|
void |
addProjectTab(ProjectWindowTab projectWindowTab,
int indexPosition)
Adds a Project-Tab and a new node (child of a specified parent) to the ProjectWindow
at the specified index position.
|
void |
createPartControl(Composite parent)
Create contents of the editor part.
|
void |
doSave(IProgressMonitor monitor) |
void |
doSaveAs() |
Project |
getProject()
Has to return the current project.
|
ProjectWindowTab |
getTabForSubPanels(java.lang.String superPanelName)
Returns the specified tab for sub panels.
|
AwbProjectEditorWindow.ProjectCloseUserFeedback |
getUserFeedbackForClosingProject(java.lang.String msgTitle,
java.lang.String msgText,
java.lang.Object parentVisualizationComponent)
Checks, how the user wants to proceed, if unsaved projects has to be closed.
|
void |
init(IEditorSite site,
IEditorInput input) |
boolean |
isDirty() |
boolean |
isSaveAsAllowed() |
void |
moveToFront()
Moves the AwbProjectEditorWindow to the front.
|
void |
removeProjectTab(ProjectWindowTab projectWindowTab)
Removes the specified project tab.
|
void |
setFocus() |
void |
setFocus2Tab(java.lang.String tabName)
Has to set the focus to the specified tab.
|
void |
setMaximized()
Maximizes the current AwbProjectEditorWindow.
|
void |
setViewForDeveloperOrEndUser()
Rebuilds the AwbProjectEditorWindow depending on the selected view that is either
Project.VIEW_User , Project.VIEW_Developer or null . |
void |
showErrorMessage(java.lang.String msgText,
java.lang.String msgHead)
Has to show an error message.
|
void |
validateStartTab()
Has to validates the current start tab settings that could be
changed, if the view was changed from developer to end user view.
|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
addPropertyListener, dispose, getSite, getTitle, getTitleImage, removePropertyListener
getAdapter
public static final java.lang.String ID
public void init(IEditorSite site, IEditorInput input) throws PartInitException
init
in interface IEditorPart
init
in class EditorPart
PartInitException
@PostConstruct public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
parent
- public void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
public void doSave(IProgressMonitor monitor)
doSave
in interface ISaveablePart
doSave
in class EditorPart
public boolean isDirty()
isDirty
in interface ISaveablePart
isDirty
in class EditorPart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface ISaveablePart
isSaveAsAllowed
in class EditorPart
public void doSaveAs()
doSaveAs
in interface ISaveablePart
doSaveAs
in class EditorPart
public Project getProject()
AwbProjectEditorWindow
getProject
in interface AwbProjectEditorWindow
public AwbProjectEditorWindow.ProjectCloseUserFeedback getUserFeedbackForClosingProject(java.lang.String msgTitle, java.lang.String msgText, java.lang.Object parentVisualizationComponent)
AwbProjectEditorWindow
getUserFeedbackForClosingProject
in interface AwbProjectEditorWindow
msgTitle
- the message titlemsgText
- the message textparentVisualizationComponent
- the parent visualization componentpublic void addDefaultTabs()
AwbProjectEditorWindow
addDefaultTabs
in interface AwbProjectEditorWindow
public void moveToFront()
AwbProjectEditorWindow
moveToFront
in interface AwbProjectEditorWindow
public void setMaximized()
AwbProjectEditorWindow
setMaximized
in interface AwbProjectEditorWindow
public void setFocus2Tab(java.lang.String tabName)
AwbProjectEditorWindow
setFocus2Tab
in interface AwbProjectEditorWindow
tabName
- the new focus 2 tabpublic void setViewForDeveloperOrEndUser()
AwbProjectEditorWindow
Project.VIEW_User
, Project.VIEW_Developer
or null
.setViewForDeveloperOrEndUser
in interface AwbProjectEditorWindow
public ProjectWindowTab getTabForSubPanels(java.lang.String superPanelName)
AwbProjectEditorWindow
getTabForSubPanels
in interface AwbProjectEditorWindow
superPanelName
- the super panel namepublic void validateStartTab()
AwbProjectEditorWindow
validateStartTab
in interface AwbProjectEditorWindow
public void showErrorMessage(java.lang.String msgText, java.lang.String msgHead)
AwbProjectEditorWindow
showErrorMessage
in interface AwbProjectEditorWindow
msgText
- the message textmsgHead
- the message headerpublic void addProjectTab(ProjectWindowTab projectWindowTab)
AwbProjectEditorWindow
addProjectTab
in interface AwbProjectEditorWindow
projectWindowTab
- the project window tabpublic void addProjectTab(ProjectWindowTab projectWindowTab, int indexPosition)
AwbProjectEditorWindow
addProjectTab
in interface AwbProjectEditorWindow
projectWindowTab
- the project window tabindexPosition
- the index position (greater one)public void removeProjectTab(ProjectWindowTab projectWindowTab)
AwbProjectEditorWindow
removeProjectTab
in interface AwbProjectEditorWindow
projectWindowTab
- the project window tab