Package com._1c.g5.v8.dt.moxel.ui
Class TemplateEditorSpreadsheetPage
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<BasicTemplate>
com._1c.g5.v8.dt.moxel.ui.TemplateEditorSpreadsheetPage
- All Implemented Interfaces:
IDtEditor<BasicTemplate>
,IDtGranularEditorEmbeddedEditorPage<BasicTemplate>
,IDtGranularEditorPage<BasicTemplate>
,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
- Direct Known Subclasses:
TemplateEditorBaseSpreadsheetPage
,TemplateEditorResultSpreadsheetPage
public class TemplateEditorSpreadsheetPage
extends DtGranularEditorEmbeddedEditorPage<BasicTemplate>
Granular editor page for displaying
SpreadsheetDocument
-
Field Summary
FieldsFields inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activeSelection, derivedDataManagerProvider, modelManager, resourceLookup, SECTION_ID_PATTERN
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates new instance ofTemplateEditorSpreadsheetPage
.protected
TemplateEditorSpreadsheetPage
(String id, String title) Creates new instance ofTemplateEditorSpreadsheetPage
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activateContexts
(org.eclipse.ui.contexts.IContextService contextService) Activates embedded editor specific contexts.protected org.eclipse.ui.IEditorPart
Create default editor.protected Pair<org.eclipse.ui.IEditorPart,
org.eclipse.core.resources.IFile> createDefaultEditor
(org.eclipse.emf.ecore.EObject object) org.eclipse.ui.IEditorPart
org.eclipse.ui.IEditorInput
Class<? extends org.eclipse.ui.IEditorActionBarContributor>
protected String
Returns the page title.protected void
Init page embedded editor.void
initialize
(org.eclipse.ui.forms.editor.FormEditor editor) Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorEmbeddedEditorPage
createEditorSite, createPageControls, createPageLayout, dispose, doSave, doSaveAs, getActiveSelection, getAdapter, getEmbeddedEditor, 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, onEventGateClosed, pathSeparetor, refresh, setActiveFeature, setActiveSelection, setDefaultFeature, showEditorInput, showEditorInput, waitDerivedData, waitDerivedData
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, isActive, isEditor, selectReveal, setActive, setIndex
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, 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.IEditorPart
getEditorSite, init
Methods inherited from interface org.eclipse.ui.forms.editor.IFormPage
canLeaveThePage, getEditor, getId, getIndex, getManagedForm, getPartControl, isActive, isEditor, selectReveal, setActive, setIndex
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IGotoSelection
gotoSelection
Methods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeeded
Methods inherited from interface org.eclipse.ui.IShowEditorInput
showEditorInput
Methods inherited from interface org.eclipse.ui.part.IShowInSource
getShowInContext
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
PAGE_ID
- See Also:
-
-
Constructor Details
-
TemplateEditorSpreadsheetPage
protected TemplateEditorSpreadsheetPage()Creates new instance ofTemplateEditorSpreadsheetPage
. -
TemplateEditorSpreadsheetPage
Creates new instance ofTemplateEditorSpreadsheetPage
.- Parameters:
id
- page id. Must now benull
title
- page title. Must not benull
-
-
Method Details
-
initialize
public void initialize(org.eclipse.ui.forms.editor.FormEditor editor) - Specified by:
initialize
in interfaceorg.eclipse.ui.forms.editor.IFormPage
- Overrides:
initialize
in classDtGranularEditorPage<BasicTemplate>
-
initEmbeddedEditor
protected void initEmbeddedEditor()Description copied from class:DtGranularEditorEmbeddedEditorPage
Init page embedded editor.- Overrides:
initEmbeddedEditor
in classDtGranularEditorEmbeddedEditorPage<BasicTemplate>
-
createEmbeddedEditorInput
public org.eclipse.ui.IEditorInput createEmbeddedEditorInput()- Returns:
- input for embedded editor.
-
createEmbeddedEditor
public org.eclipse.ui.IEditorPart createEmbeddedEditor()- Returns:
- embedded editor's
IEditorInput
.
-
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<BasicTemplate>
- Overrides:
activateContexts
in classDtGranularEditorEmbeddedEditorPage<BasicTemplate>
- Parameters:
contextService
- context service to activate contexts using it.
-
getEmbeddedEditorContributorClass
public Class<? extends org.eclipse.ui.IEditorActionBarContributor> getEmbeddedEditorContributorClass()- Specified by:
getEmbeddedEditorContributorClass
in interfaceIDtGranularEditorEmbeddedEditorPage<BasicTemplate>
- Overrides:
getEmbeddedEditorContributorClass
in classDtGranularEditorEmbeddedEditorPage<BasicTemplate>
- Returns:
IEditorActionBarContributor
class associated with the embedded editor, if any, ornull
.
-
getPageTitle
Description copied from class:DtGranularEditorPage
Returns the page title.- Overrides:
getPageTitle
in classDtGranularEditorPage<BasicTemplate>
- Returns:
- this page title, never
null
-
createDefaultEditor
protected Pair<org.eclipse.ui.IEditorPart,org.eclipse.core.resources.IFile> createDefaultEditor(org.eclipse.emf.ecore.EObject object) -
createDefaultEditor
protected org.eclipse.ui.IEditorPart createDefaultEditor()Create default editor.- Returns:
- created
IEditorPart
-