Class DataCompositionSchemaEditor

    • Field Detail

      • observables

        protected final org.eclipse.core.databinding.ObservablesManager observables
        Data binding support
      • bindings

        protected final org.eclipse.core.databinding.DataBindingContext bindings
        Data binding support
    • Constructor Detail

      • DataCompositionSchemaEditor

        public DataCompositionSchemaEditor()
    • Method Detail

      • getModelApiByEditingContext

        @Deprecated
        public static IModelApi getModelApiByEditingContext​(IBmEditingContext context)
        Deprecated.
        use IModelApi directly
        Returns the IModelApi by the specified editing context.
        Parameters:
        context - the BM editing context, cannot be null.
        Returns:
        {IModelApi} instance.
      • init

        public void init​(org.eclipse.ui.IEditorSite site,
                         org.eclipse.ui.IEditorInput input)
                  throws org.eclipse.ui.PartInitException
        Specified by:
        init in interface org.eclipse.ui.IEditorPart
        Throws:
        org.eclipse.ui.PartInitException
      • notify

        public void notify​(DcsEvent event)
        Description copied from interface: IDcsListener
        Сообщить о событии
        Specified by:
        notify in interface IDcsListener
        Parameters:
        event - событие
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.ui.IWorkbenchPart
      • getSelectionProvider

        public DcsSelectionProvider getSelectionProvider()
        Получить SelectionProvider
        Returns:
        SelectionProvider
      • getModel

        public Object getModel()
        Получить модель
        Returns:
        модель
      • setModel

        public void setModel​(Object model)
        Установить модель
        Parameters:
        model - модель
      • getAdapter

        public Object getAdapter​(Class adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
        Overrides:
        getAdapter in class org.eclipse.ui.part.WorkbenchPart
      • setFocus

        public void setFocus()
        Specified by:
        setFocus in interface org.eclipse.ui.IWorkbenchPart
        Specified by:
        setFocus in class org.eclipse.ui.part.WorkbenchPart
      • isDirty

        public boolean isDirty()
        Specified by:
        isDirty in interface org.eclipse.ui.ISaveablePart
      • doSave

        public void doSave​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Nothing
        Specified by:
        doSave in interface org.eclipse.ui.ISaveablePart
      • doCreateContent

        public void doCreateContent()
      • getActivePage

        public EditorPage getActivePage()
        Получить активную страницу
        Returns:
        страница
      • getPages

        public List<EditorPage> getPages()
        Получить все страницы
        Returns:
        страницы
      • getResourceLookup

        public IResourceLookup getResourceLookup()
        Returns resource lookup.
        Returns:
        the resource lookup, cannot be null
      • getCoreEditingContext

        public IEditingContext getCoreEditingContext()
        Gets editing context.
        Returns:
        a non-null editing context if the editor is initialized. If the editor is not initialized the result is not specified.
      • isNestedEditorOpened

        public boolean isNestedEditorOpened()
        Whether some nested schema editor was opened
        Returns:
        whether some nested schema editor was opened
      • isEditable

        public boolean isEditable()
        Returns true if editor can be edited.
        Returns:
        true if editor can be edited, false otherwise
      • observe

        protected void observe​(org.eclipse.core.databinding.observable.value.IObservableValue value,
                               org.eclipse.core.databinding.observable.value.IValueChangeListener listener)
        Data binding support.
        Adds listener to the value and registers this value into . This value will be disposed automaticly when editor closed.
      • doSaveAs

        public void doSaveAs()
        Model editor is not intended to work with resource. Always throws the UnsupportedOperationException
        Specified by:
        doSaveAs in interface org.eclipse.ui.ISaveablePart
        Specified by:
        doSaveAs in class org.eclipse.ui.part.EditorPart
      • normalizeInput

        protected org.eclipse.ui.IEditorInput normalizeInput​(org.eclipse.ui.IEditorInput input)
                                                      throws org.eclipse.ui.PartInitException
        Convert specified editor input object. It is called from the init() method before setInput().
        Implementors of this method must throws PartInitException in case editor input object type is understood.
        Parameters:
        input -
        Returns:
        converted editor input
        Throws:
        org.eclipse.ui.PartInitException
      • isSaveAsAllowed

        public boolean isSaveAsAllowed()
        Model editor is not intended to work with resource. Always returns false.
        Specified by:
        isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart
        Specified by:
        isSaveAsAllowed in class org.eclipse.ui.part.EditorPart
        Returns:
        Always false
      • createPartControl

        public void createPartControl​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createPartControl in interface org.eclipse.ui.IWorkbenchPart
        Specified by:
        createPartControl in class org.eclipse.ui.part.WorkbenchPart
        See Also:
        WorkbenchPart.createPartControl(Composite)
      • getParent

        protected org.eclipse.swt.widgets.Composite getParent()
        Returns the parent composite
        Returns:
        the parent composite
      • getImages

        protected org.eclipse.ui.ISharedImages getImages()
        Returns the shared images for the workbench.
        Returns:
        the shared image manager