|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
org.talend.designer.core.ui.MultiPageTalendEditor
public class MultiPageTalendEditor
This class is the main editor, the differents pages in it are:
1) TalendEditor
2)
Editor on the generated code
This class uses the interface ISelectionListener, it allows to
propage the Delete evenement to the designer.
$Id: MultiPageTalendEditor.java 2988 2007-04-09 06:33:34 +0000 (lun., 09 avr. 2007) nrousseau $
| 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 |
| Constructor Summary | |
|---|---|
MultiPageTalendEditor()
|
|
| Method Summary | |
|---|---|
void |
codeSync()
|
protected void |
createPages()
Creates the pages of the multi-page editor. |
void |
dispose()
The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all
nested editors. |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Saves the multi-page editor's document. |
void |
doSaveAs()
Saves the multi-page editor's document as another file. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
TalendJavaEditor |
getCodeEditor()
Getter for codeEditor. |
org.eclipse.gef.EditPart |
getOldSelection()
|
Node |
getSelectedGraphicNode()
DOC amaumont Comment method "getSelectedNode". |
java.lang.String |
getSelectedNodeName()
Get the selected Node if any. |
TalendEditor |
getTalendEditor()
|
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput editorInput)
The MultiPageEditorExample implementation of this method checks that the input is an instance of
IFileEditorInput. |
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
protected void |
pageChange(int newPageIndex)
Calculates the contents of page 2 when the it is activated. |
void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Closes all project files on project close. |
void |
selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
Will allow to propage the Delete evenement in the designer. |
void |
setName()
DOC smallet Comment method "setName". |
void |
setReadOnly(boolean readonly)
|
void |
showCodePage()
|
void |
showDesignerPage()
|
| Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
|---|
addPage, addPage, addPage, addPage, createPageContainer, createPartControl, createSite, getActiveEditor, getActivePage, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, removePage, setActivePage, setControl, setFocus, setPageImage, setPageText |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
|---|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPropertyListener, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
| Field Detail |
|---|
public static final java.lang.String ID
| Constructor Detail |
|---|
public MultiPageTalendEditor()
| Method Detail |
|---|
public void setReadOnly(boolean readonly)
public TalendEditor getTalendEditor()
protected void createPages()
createPages in class org.eclipse.ui.part.MultiPageEditorPartpublic void dispose()
MultiPageEditorPart implementation of this IWorkbenchPart method disposes all
nested editors. Subclasses may extend.
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.MultiPageEditorPartpublic void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.part.EditorPartpublic void codeSync()
public void doSaveAs()
doSaveAs in interface org.eclipse.ui.ISaveablePartdoSaveAs in class org.eclipse.ui.part.EditorPartpublic void gotoMarker(org.eclipse.core.resources.IMarker marker)
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput editorInput)
throws org.eclipse.ui.PartInitException
MultiPageEditorExample implementation of this method checks that the input is an instance of
IFileEditorInput.
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.part.MultiPageEditorPartorg.eclipse.ui.PartInitExceptionpublic boolean isDirty()
isDirty in interface org.eclipse.ui.ISaveablePartisDirty in class org.eclipse.ui.part.MultiPageEditorPartpublic boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartprotected void pageChange(int newPageIndex)
pageChange in class org.eclipse.ui.part.MultiPageEditorPartpublic void showDesignerPage()
public void showCodePage()
public void setName()
label - public java.lang.String getSelectedNodeName()
public Node getSelectedGraphicNode()
public org.eclipse.gef.EditPart getOldSelection()
public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged in interface org.eclipse.core.resources.IResourceChangeListenerpublic java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.part.MultiPageEditorPart
public void selectionChanged(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
selectionChanged in interface org.eclipse.ui.ISelectionListenerpublic TalendJavaEditor getCodeEditor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||