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

public class CommandInterfaceEditor extends DtEditor<CommandInterfaceRoot>
Command interface editor.
  • Field Details

  • Constructor Details

    • CommandInterfaceEditor

      public CommandInterfaceEditor()
  • Method Details

    • addRoleColumns

      public void addRoleColumns(Collection<Role> selectedRoles)
      Adds roles columns.
      Parameters:
      roles - selected roles.
    • deleteRoleColumns

      public void deleteRoleColumns(Collection<Role> selectedRoles)
      Deletes role columns.
      Parameters:
      selectedRoles - roles to delete
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.eclipse.ui.IWorkbenchPart
      Overrides:
      dispose in class DtEditor<CommandInterfaceRoot>
    • filterRoleColumns

      public void filterRoleColumns(Collection<Role> roles)
      Filters role columns.
      Parameters:
      roles - the roles
    • getConfiguration

      public Configuration getConfiguration()
      Gets configuration.
      Returns:
      the configuration
    • getV8Project

      public IV8Project getV8Project()
      Gets V8 project
      Returns:
      the V8 project, never null
    • getObjectByTypeProvider

      public IMdObjectByTypeProvider getObjectByTypeProvider()
      Get the object by type provider.
      Returns:
      The object by type provider
    • getEditingLanguageProvider

      public IEditingLanguageManager getEditingLanguageProvider()
      Gets editing language provider.
      Returns:
      the provider
    • getSelectedCommands

      public List<Object> getSelectedCommands()
      Gets selected commands and groups
      Returns:
      the commands and groups
    • getSelectedRoles

      public Set<Role> getSelectedRoles()
      Gets selected roles.
      Returns:
      the selected roles
    • getSelectedSection

      public Object getSelectedSection()
      Gets selected section
      Returns:
      the section
    • getSelectionProvider

      public SelectionProviderWrapper 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: IDtEditor
      Initializes the editor.
      Specified by:
      init in interface IDtEditor<CommandInterfaceRoot>
      Overrides:
      init in class DtEditor<CommandInterfaceRoot>
      Parameters:
      site - the editor site, cannot be null.
      input - the editor input, cannot be null.
      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

      public void setSelectedSection(Object selection)
      Sets selected section.
      Parameters:
      configurationCommandInterface -
    • showEditorInput

      public void showEditorInput(IDtEditorInput<CommandInterfaceRoot> editorInput)
      Description copied from interface: IDtEditor
      Shows the editor input.
      Specified by:
      showEditorInput in interface IDtEditor<CommandInterfaceRoot>
      Overrides:
      showEditorInput in class DtEditor<CommandInterfaceRoot>
      Parameters:
      editorInput - the editor input to show, cannot be null.
      See Also:
      • IShowEditorInput.showEditorInput(org.eclipse.ui.IEditorInput)
    • getShowInContext

      public org.eclipse.ui.part.ShowInContext getShowInContext()
      Specified by:
      getShowInContext in interface org.eclipse.ui.part.IShowInSource
      Overrides:
      getShowInContext in class DtEditor<CommandInterfaceRoot>
    • getWaitingPartsId

      protected Collection<String> getWaitingPartsId()
      Description copied from class: DtEditor
      Returns parts ids array to be waited before creating control. Override in successors.
      Overrides:
      getWaitingPartsId in class DtEditor<CommandInterfaceRoot>
      Returns:
      array of parts ids
    • createControls

      protected void createControls(org.eclipse.ui.forms.IManagedForm managedForm)
      Description copied from class: DtEditor
      Creates editor controls.
      Specified by:
      createControls in class DtEditor<CommandInterfaceRoot>
      Parameters:
      managedForm - the managed form, cannot be null.
    • 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