public class ProjectEditor extends EditorPart implements AwbProjectEditorWindow
AwbProjectEditorWindow.ProjectCloseUserFeedback| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
PROP_DIRTY, PROP_INPUTPROP_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, setPartNameaddPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposeaddPropertyListener, dispose, getSite, getTitle, getTitleImage, removePropertyListenergetAdapterpublic static final java.lang.String ID
public void init(IEditorSite site, IEditorInput input) throws PartInitException
init in interface IEditorPartinit in class EditorPartPartInitException@PostConstruct public void createPartControl(Composite parent)
createPartControl in interface IWorkbenchPartcreatePartControl in class WorkbenchPartparent - public void setFocus()
setFocus in interface IWorkbenchPartsetFocus in class WorkbenchPartpublic void doSave(IProgressMonitor monitor)
doSave in interface ISaveablePartdoSave in class EditorPartpublic boolean isDirty()
isDirty in interface ISaveablePartisDirty in class EditorPartpublic boolean isSaveAsAllowed()
isSaveAsAllowed in interface ISaveablePartisSaveAsAllowed in class EditorPartpublic void doSaveAs()
doSaveAs in interface ISaveablePartdoSaveAs in class EditorPartpublic Project getProject()
AwbProjectEditorWindowgetProject in interface AwbProjectEditorWindowpublic AwbProjectEditorWindow.ProjectCloseUserFeedback getUserFeedbackForClosingProject(java.lang.String msgTitle, java.lang.String msgText, java.lang.Object parentVisualizationComponent)
AwbProjectEditorWindowgetUserFeedbackForClosingProject in interface AwbProjectEditorWindowmsgTitle - the message titlemsgText - the message textparentVisualizationComponent - the parent visualization componentpublic void addDefaultTabs()
AwbProjectEditorWindowaddDefaultTabs in interface AwbProjectEditorWindowpublic void moveToFront()
AwbProjectEditorWindowmoveToFront in interface AwbProjectEditorWindowpublic void setMaximized()
AwbProjectEditorWindowsetMaximized in interface AwbProjectEditorWindowpublic void setFocus2Tab(java.lang.String tabName)
AwbProjectEditorWindowsetFocus2Tab in interface AwbProjectEditorWindowtabName - the new focus 2 tabpublic void setViewForDeveloperOrEndUser()
AwbProjectEditorWindowProject.VIEW_User, Project.VIEW_Developer or null.setViewForDeveloperOrEndUser in interface AwbProjectEditorWindowpublic ProjectWindowTab getTabForSubPanels(java.lang.String superPanelName)
AwbProjectEditorWindowgetTabForSubPanels in interface AwbProjectEditorWindowsuperPanelName - the super panel namepublic void validateStartTab()
AwbProjectEditorWindowvalidateStartTab in interface AwbProjectEditorWindowpublic void showErrorMessage(java.lang.String msgText,
java.lang.String msgHead)
AwbProjectEditorWindowshowErrorMessage in interface AwbProjectEditorWindowmsgText - the message textmsgHead - the message headerpublic void addProjectTab(ProjectWindowTab projectWindowTab)
AwbProjectEditorWindowaddProjectTab in interface AwbProjectEditorWindowprojectWindowTab - the project window tabpublic void addProjectTab(ProjectWindowTab projectWindowTab, int indexPosition)
AwbProjectEditorWindowaddProjectTab in interface AwbProjectEditorWindowprojectWindowTab - the project window tabindexPosition - the index position (greater one)public void removeProjectTab(ProjectWindowTab projectWindowTab)
AwbProjectEditorWindowremoveProjectTab in interface AwbProjectEditorWindowprojectWindowTab - the project window tab