Package com._1c.g5.v8.dt.cmi.ui.editors
Class CommandInterfaceEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
com._1c.g5.v8.dt.ui.editor.DtEditor<CommandInterfaceRoot>
com._1c.g5.v8.dt.cmi.ui.editors.CommandInterfaceEditor
- All Implemented Interfaces:
IDtEditor<CommandInterfaceRoot>,IGotoSelection,org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,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:
CommandInterfaceExtensionEditor
Command interface editor.
-
Field Summary
FieldsFields inherited from class com._1c.g5.v8.dt.ui.editor.DtEditor
bmModel, derivedDataManagerProvider, dtEditorProxyInputHelperService, modelManager, serviceOrchestratorFields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidActivates editor contexts within global the context servicevoidaddRoleColumns(Collection<Role> selectedRoles) Adds roles columns.protected voidcreateControls(org.eclipse.ui.forms.IManagedForm managedForm) Creates editor controls.protected voidDeactivate editor contexts within global the context servicevoiddeleteRoleColumns(Collection<Role> selectedRoles) Deletes role columns.voiddispose()voidfilterRoleColumns(Collection<Role> roles) Filters role columns.Gets configuration.Gets editing language provider.Get the object by type provider.Gets selected commands and groupsGets selected roles.Gets selected sectionGets selection provider.org.eclipse.ui.part.ShowInContextGets V8 projectprotected Collection<String>Returns parts ids array to be waited before creating control.voidHides invisible by default items.voidinit(org.eclipse.ui.IEditorSite site, IDtEditorInput<CommandInterfaceRoot> input) Initializes the editor.booleanIs commands section viewer selected.booleanIs roles filter selected.protected org.eclipse.ui.IPartListener2Create new editor part lifecycle events listener.voidsetSelectedSection(Object selection) Sets selected section.voidshowEditorInput(IDtEditorInput<CommandInterfaceRoot> editorInput) Shows the editor input.Methods inherited from class com._1c.g5.v8.dt.ui.editor.DtEditor
createPartControl, createToolkit, doSave, doSaveAs, getAdapter, getApiEditingContext, getEditingContext, getEditorInput, getModel, getPartControl, getToolkit, gotoSelection, init, isDirty, isSaveAsAllowed, setActiveFeature, setActiveSelection, setEditingContext, setFocus, showEditorInputMethods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IEditorPart
getEditorSiteMethods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeededMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
COMMAND_INTERFACE_EDITOR_ID
- See Also:
-
-
Constructor Details
-
CommandInterfaceEditor
public CommandInterfaceEditor()
-
-
Method Details
-
addRoleColumns
Adds roles columns.- Parameters:
roles- selected roles.
-
deleteRoleColumns
Deletes role columns.- Parameters:
selectedRoles- roles to delete
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classDtEditor<CommandInterfaceRoot>
-
filterRoleColumns
Filters role columns.- Parameters:
roles- the roles
-
getConfiguration
Gets configuration.- Returns:
- the configuration
-
getV8Project
Gets V8 project- Returns:
- the V8 project, never
null
-
getObjectByTypeProvider
Get the object by type provider.- Returns:
- The object by type provider
-
getEditingLanguageProvider
Gets editing language provider.- Returns:
- the provider
-
getSelectedCommands
Gets selected commands and groups- Returns:
- the commands and groups
-
getSelectedRoles
Gets selected roles.- Returns:
- the selected roles
-
getSelectedSection
Gets selected section- Returns:
- the section
-
getSelectionProvider
Gets selection provider.- Returns:
- the selection provider, can be
null
-
hideInvisibleByDefault
public void hideInvisibleByDefault()Hides invisible by default items. -
init
public void init(org.eclipse.ui.IEditorSite site, IDtEditorInput<CommandInterfaceRoot> input) throws org.eclipse.ui.PartInitException Description copied from interface:IDtEditorInitializes the editor.- Specified by:
initin interfaceIDtEditor<CommandInterfaceRoot>- Overrides:
initin classDtEditor<CommandInterfaceRoot>- Parameters:
site- the editor site, cannot benull.input- the editor input, cannot benull.- Throws:
org.eclipse.ui.PartInitException- if this editor was not initialized successfully- See Also:
-
IEditorPart.init(IEditorSite, org.eclipse.ui.IEditorInput)
-
isCommandsSelected
public boolean isCommandsSelected()Is commands section viewer selected.- Returns:
- true if is
-
isRoleColumnsFiltered
public boolean isRoleColumnsFiltered()Is roles filter selected.- Returns:
- true if is
-
setSelectedSection
Sets selected section.- Parameters:
configurationCommandInterface-
-
showEditorInput
Description copied from interface:IDtEditorShows the editor input.- Specified by:
showEditorInputin interfaceIDtEditor<CommandInterfaceRoot>- Overrides:
showEditorInputin classDtEditor<CommandInterfaceRoot>- Parameters:
editorInput- the editor input to show, cannot benull.- See Also:
-
IShowEditorInput.showEditorInput(org.eclipse.ui.IEditorInput)
-
getShowInContext
public org.eclipse.ui.part.ShowInContext getShowInContext()- Specified by:
getShowInContextin interfaceorg.eclipse.ui.part.IShowInSource- Overrides:
getShowInContextin classDtEditor<CommandInterfaceRoot>
-
getWaitingPartsId
Description copied from class:DtEditorReturns parts ids array to be waited before creating control. Override in successors.- Overrides:
getWaitingPartsIdin classDtEditor<CommandInterfaceRoot>- Returns:
- array of parts ids
-
createControls
protected void createControls(org.eclipse.ui.forms.IManagedForm managedForm) Description copied from class:DtEditorCreates editor controls.- Specified by:
createControlsin classDtEditor<CommandInterfaceRoot>- Parameters:
managedForm- the managed form, cannot benull.
-
activateContext
protected void activateContext()Activates editor contexts within global the context service -
deactivateContext
protected void deactivateContext()Deactivate editor contexts within global the context service -
newPartListener
protected org.eclipse.ui.IPartListener2 newPartListener()Create new editor part lifecycle events listener.- Returns:
- new editor part lifecycle events listener, cannot be
null
-