Class MdHelpContentFileEditorInput

java.lang.Object
org.eclipse.core.runtime.PlatformObject
com._1c.g5.v8.dt.md.help.ui.editor.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 Details

    • MdHelpContentFileEditorInput

      public MdHelpContentFileEditorInput()
  • Method Details

    • init

      public void init(MdObject model, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.core.resources.IProject project, boolean readOnly)
      Initialize editor input and provide file for metadata model help in local editing language
      Parameters:
      model - the metadata object with help pages, cannot be null
      feature - the help feature, cannot be null
      project - the current project, cannot be null
      readOnly - read only mode in which the editor is opened.
    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object