Class MdHelpContentFileEditorInput

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IFileEditorInput, org.eclipse.ui.IStorageEditorInput

    public class MdHelpContentFileEditorInput
    extends org.eclipse.core.runtime.PlatformObject
    implements org.eclipse.ui.IFileEditorInput

    File editor input for metadata objects help.

    Derived path to help files

    The instance of this class need to be initialized by MdHelpContentFileEditorInput#init(IBmObject, IProject, IBmEditingContext)

    • Constructor Detail

      • MdHelpContentFileEditorInput

        public MdHelpContentFileEditorInput()
    • Method Detail

      • init

        public void init​(IBmObject model,
                         org.eclipse.core.resources.IProject project)
        Initialize editor input and provide file for metadata model help in local editing language
        Parameters:
        model - the model bm object, cannot be null
        project - the current project, cannot be null
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.ui.IEditorInput
      • getStorage

        public org.eclipse.core.resources.IStorage getStorage()
                                                       throws org.eclipse.core.runtime.CoreException
        Specified by:
        getStorage in interface org.eclipse.ui.IStorageEditorInput
        Throws:
        org.eclipse.core.runtime.CoreException
      • getFile

        public org.eclipse.core.resources.IFile getFile()
        Specified by:
        getFile in interface org.eclipse.ui.IFileEditorInput
      • changeLanguageCode

        public void changeLanguageCode()
        Handle to change language code of editor input
      • closeFiles

        public void closeFiles()
        Handle to close files in editor input
      • exists

        public boolean exists()
        Specified by:
        exists in interface org.eclipse.ui.IEditorInput
      • getImageDescriptor

        public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
        Specified by:
        getImageDescriptor in interface org.eclipse.ui.IEditorInput
      • getPersistable

        public org.eclipse.ui.IPersistableElement getPersistable()
        Specified by:
        getPersistable in interface org.eclipse.ui.IEditorInput
      • getToolTipText

        public String getToolTipText()
        Specified by:
        getToolTipText in interface org.eclipse.ui.IEditorInput