Package com._1c.g5.v8.dt.form.ui.editor
Class FormAdditionalEditorPage
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.EditorPart
-
- org.eclipse.ui.forms.editor.FormPage
-
- com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage<M>
-
- com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorEmbeddedEditorPage<BasicForm>
-
- com._1c.g5.v8.dt.form.ui.editor.FormAdditionalEditorPage
-
- All Implemented Interfaces:
IDtEditor<BasicForm>
,IDtGranularEditorEmbeddedEditorPage<BasicForm>
,IDtGranularEditorPage<BasicForm>
,IGotoSelection
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.ui.forms.editor.IFormPage
,org.eclipse.ui.IEditorPart
,org.eclipse.ui.ISaveablePart
,org.eclipse.ui.IShowEditorInput
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IShowInSource
,org.eclipse.ui.part.IWorkbenchPartOrientation
public class FormAdditionalEditorPage extends DtGranularEditorEmbeddedEditorPage<BasicForm>
The page for additional editor in form.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PAGE_ID
ID of this page.-
Fields inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activeSelection, derivedDataManagerProvider, modelManager, resourceLookup, SECTION_ID_PATTERN
-
-
Constructor Summary
Constructors Constructor Description FormAdditionalEditorPage()
Creates new page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateContexts(org.eclipse.ui.contexts.IContextService contextService)
Activates embedded editor specific contexts.org.eclipse.ui.IEditorPart
createEmbeddedEditor()
org.eclipse.ui.IEditorInput
createEmbeddedEditorInput()
void
createPartControl(org.eclipse.swt.widgets.Composite parent)
void
dispose()
Class<? extends org.eclipse.ui.IEditorActionBarContributor>
getEmbeddedEditorContributorClass()
protected String
getPageTitle()
Returns the page title.boolean
isOpenedForModel(Object checkModel)
Checks whether this editor page has been already opened for the specified model object.boolean
isSaveOnCloseNeeded()
void
setEmbeddedEditorModel(Object model, Runnable closeCallback)
Sets model for which to show embedded editor on this page.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorEmbeddedEditorPage
createEditorSite, createPageControls, createPageLayout, doSave, doSaveAs, getActiveSelection, getAdapter, getEmbeddedEditor, initEmbeddedEditor, isDirty, isSaveAsAllowed, setFocus
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activate, createFormContent, deactivate, getActiveFeature, getApiEditingContext, getDefaultFeature, getEditingContext, getEditor, getEditorInput, getEditorPageDescriptor, getEventGate, getHelpContextId, getModel, getPageTitle, getSectionID, getShowInContext, getWaitingPartsId, gotoSelection, init, initialize, onEventGateClosed, pathSeparetor, refresh, setActiveFeature, setActiveSelection, setDefaultFeature, showEditorInput, showEditorInput, waitDerivedData, waitDerivedData
-
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, isActive, isEditor, selectReveal, setActive, setIndex
-
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorSite, getTitleToolTip, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, 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 com._1c.g5.v8.dt.ui.editor.IDtEditor
getApiEditingContext, getEditingContext, getEditorInput, getModel, init, setActiveFeature, setActiveSelection, showEditorInput
-
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IDtGranularEditorPage
activate, deactivate, setDefaultFeature
-
Methods inherited from interface org.eclipse.ui.forms.editor.IFormPage
canLeaveThePage, getEditor, getId, getIndex, getManagedForm, getPartControl, initialize, isActive, isEditor, selectReveal, setActive, setIndex
-
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IGotoSelection
gotoSelection
-
-
-
-
Field Detail
-
PAGE_ID
public static final String PAGE_ID
ID of this page.- See Also:
- Constant Field Values
-
-
Method Detail
-
setEmbeddedEditorModel
public void setEmbeddedEditorModel(Object model, Runnable closeCallback)
Sets model for which to show embedded editor on this page.- Parameters:
model
- the model to setcloseCallback
- the callback to be called when this editor page wants to be closed
-
isOpenedForModel
public boolean isOpenedForModel(Object checkModel)
Checks whether this editor page has been already opened for the specified model object.- Parameters:
checkModel
- the model to check- Returns:
true
if this editor page is opened for the specified model,false
otherwise
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classDtGranularEditorEmbeddedEditorPage<BasicForm>
-
createEmbeddedEditorInput
public org.eclipse.ui.IEditorInput createEmbeddedEditorInput()
- Returns:
- input for embedded editor.
-
createEmbeddedEditor
public org.eclipse.ui.IEditorPart createEmbeddedEditor()
- Returns:
- embedded editor's
IEditorInput
.
-
isSaveOnCloseNeeded
public boolean isSaveOnCloseNeeded()
- Specified by:
isSaveOnCloseNeeded
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
isSaveOnCloseNeeded
in classorg.eclipse.ui.part.EditorPart
-
activateContexts
public void activateContexts(org.eclipse.ui.contexts.IContextService contextService)
Description copied from interface:IDtGranularEditorEmbeddedEditorPage
Activates embedded editor specific contexts.- Specified by:
activateContexts
in interfaceIDtGranularEditorEmbeddedEditorPage<BasicForm>
- Overrides:
activateContexts
in classDtGranularEditorEmbeddedEditorPage<BasicForm>
- Parameters:
contextService
- context service to activate contexts using it.
-
getEmbeddedEditorContributorClass
public Class<? extends org.eclipse.ui.IEditorActionBarContributor> getEmbeddedEditorContributorClass()
- Specified by:
getEmbeddedEditorContributorClass
in interfaceIDtGranularEditorEmbeddedEditorPage<BasicForm>
- Overrides:
getEmbeddedEditorContributorClass
in classDtGranularEditorEmbeddedEditorPage<BasicForm>
- Returns:
IEditorActionBarContributor
class associated with the embedded editor, if any, ornull
.
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
createPartControl
in classorg.eclipse.ui.forms.editor.FormPage
-
getPageTitle
protected String getPageTitle()
Description copied from class:DtGranularEditorPage
Returns the page title.- Overrides:
getPageTitle
in classDtGranularEditorPage<BasicForm>
- Returns:
- this page title, never
null
-
-