Tabnine Logo
EditorPart
Code IndexAdd Tabnine to your IDE (free)

How to use
EditorPart
in
org.eclipse.ui.part

Best Java code snippets using org.eclipse.ui.part.EditorPart (Showing top 20 results out of 315)

origin: org.eclipse.platform/org.eclipse.ui.workbench

  @Override
  public void dispose() {
    super.dispose();
    parentControl = null;
  }
}
origin: org.eclipse.neoscada.hmi/org.eclipse.scada.ca.ui.editor

@Override
protected void setInput ( final IEditorInput input )
{
  this.factoryInput = (FactoryEditorInput)input;
  refresh ();
  super.setInput ( input );
}
origin: org.eclipse/org.eclipse.wst.server.ui

/**
 * Updates the error message shown in the editor.
 */
public void updateErrorMessage() {
  super.firePropertyChange(PROP_ERROR);
}
origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * If there is an adapter registered against the subclass of
 * MultiPageEditorPart return that. Otherwise, delegate to the internal
 * editor.
 *
 * @see org.eclipse.ui.part.WorkbenchPart#getAdapter(java.lang.Class)
 */
@Override
public <T> T getAdapter(Class<T> adapter) {
  T result = super.getAdapter(adapter);
  // restrict delegating to the UI thread for bug 144851
  if (result == null && Display.getCurrent()!=null) {
    IEditorPart innerEditor = getActiveEditor();
    // see bug 138823 - prevent some subclasses from causing
    // an infinite loop
    if (innerEditor != null && innerEditor != this) {
      result = Adapters.adapt(innerEditor, adapter);
    }
  }
  return result;
}
origin: org.eclipse.neoscada.hmi/org.eclipse.scada.ca.ui.editor

@Override
public ConfigurationEditorInput getEditorInput ()
{
  return (ConfigurationEditorInput)super.getEditorInput ();
}
origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor

  return (fSourceViewer == null ? null : (T) fSourceViewer);
return super.getAdapter(required);
origin: org.eclipse/org.eclipse.jst.pagedesigner

  public IFile getFile() {
    if (_propertySheetPage != null) {
      IEditorInput input = _propertySheetPage.getEditor()
          .getEditorInput();
      if (input instanceof IFileEditorInput) {
        return ((IFileEditorInput) input).getFile();
      }
    }
    return null;
  }
}
origin: org.eclipse.platform/org.eclipse.compare

@Override
public void dispose() {
  IEditorInput input= getEditorInput();
  if (input instanceof IPropertyChangeNotifier)
    ((IPropertyChangeNotifier)input).removePropertyChangeListener(this);
  super.dispose();
}
origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * @see IReusableEditor#setInput(org.eclipse.ui.IEditorInput)
 */
@Override
public void setInput(IEditorInput input) {
  super.setInput(input);
  setPartName(input.getName());
  if (fText != null) {
    fText.setText(input.getToolTipText());
  }
}
origin: org.eclipse/org.eclipse.compare

public Object getAdapter(Class key) {
  
  if (key.equals(IContentOutlinePage.class)) {
    Object object= getCompareConfiguration().getProperty(CompareConfiguration.USE_OUTLINE_VIEW);
    if (object instanceof Boolean && ((Boolean)object).booleanValue()) {
      if (fOutlinePage != null) {
        if (fOutlinePage.getControl() != null && fOutlinePage.getControl().isDisposed()) {
          fOutlinePage = null;
        } else {
          return fOutlinePage;
        }
      }
      fOutlinePage= new CompareOutlinePage(this);
      return fOutlinePage;
    }
  }
  
  if (key == IShowInSource.class
      || key == OutlineViewerCreator.class
      || key == IFindReplaceTarget.class) {
    Object input = getEditorInput();
    if (input != null) {
      return Utilities.getAdapter(input, key);
    }
  }
  
  return super.getAdapter(key);
}

origin: org.eclipse/org.eclipse.wst.server.ui

/**
 * Set an error message for this page.
 * 
 * @param error java.lang.String
 */
public void setErrorMessage(String error) {
  if (error == null && errorMessage == null)
    return;
  
  if (error != null && error.equals(errorMessage))
    return;
  
  errorMessage = error;
  super.firePropertyChange(PROP_ERROR);
}
origin: org.eclipse/org.eclipse.jst.pagedesigner

public IProject getProject() {
  if (_propertySheetPage != null) {
    IEditorInput input = _propertySheetPage.getEditor()
        .getEditorInput();
    if (input instanceof IFileEditorInput) {
      return ((IFileEditorInput) input).getFile().getProject();
    }
  }
  return null;
}
origin: org.eclipse/org.eclipse.compare

public void dispose() {

  IEditorInput input= getEditorInput();
  if (input instanceof IPropertyChangeNotifier)
    ((IPropertyChangeNotifier)input).removePropertyChangeListener(this);
              
  super.dispose();
}
    
origin: org.openl.rules/org.openl.rules.eclipse.ui

/**
 * @see IReusableEditor#setInput(org.eclipse.ui.IEditorInput)
 */
@Override
public void setInput(IEditorInput input) {
  super.setInput(input);
  setPartName(input.getName());
  if (fText != null) {
    fText.setText(input.getToolTipText());
  }
}
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

return super.getAdapter(required);
origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor

@Override
protected void firePropertyChange(int property) {
  super.firePropertyChange(property);
  updatePropertyDependentActions();
}
origin: net.officefloor.eclipse/net.officefloor.ui

.getEditorInput());
origin: org.eclipse/org.eclipse.wst.server.ui

/**
 * Dispose of the editor.
 */
public void dispose() {
  super.dispose();
  
  Iterator iterator = getSections().iterator();
  while (iterator.hasNext()) {
    ServerEditorSection section = (ServerEditorSection) iterator.next();
    section.dispose();
  }
  
  if (toolkit != null) {
    toolkit.dispose();
    toolkit = null;
  }
  
  commandManager = null;
  sectionToInsertionId = null;
  sections = null;
}
origin: org.eclipse.platform/org.eclipse.debug.ui

@Override
public void setInput(IEditorInput input) {
  super.setInput(input);
  setPartName(input.getName());
  if (fText != null) {
    fText.setText(getText());
  }
  firePropertyChange(PROP_INPUT);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

return super.getAdapter(required);
org.eclipse.ui.partEditorPart

Javadoc

Abstract base implementation of all workbench editors.

This class should be subclassed by clients wishing to define new editors. The name of the subclass should be given as the "class" attribute in a editor extension contributed to the workbench's view extension point (named "org.eclipse.ui.editors"). For example, the plug-in's XML markup might contain:

 
<extension point="org.eclipse.ui.editors"> 
<editor id="com.example.myplugin.ed" 
name="My Editor" 
icon="./images/cedit.gif" 
extensions="foo" 
class="com.example.myplugin.MyFooEditor" 
contributorClass="com.example.myplugin.MyFooEditorContributor" 
/> 
</extension> 
where com.example.myplugin.MyEditor is the name of the EditorPart subclass.

Subclasses must implement the following methods:

  • IEditorPart.init - to initialize editor when assigned its site
  • IWorkbenchPart.createPartControl - to create the editor's controls
  • IWorkbenchPart.setFocus - to accept focus
  • IEditorPart.isDirty - to decide whether a significant change has occurred
  • IEditorPart.doSave - to save contents of editor
  • IEditorPart.doSaveAs - to save contents of editor
  • IEditorPart.isSaveAsAllowed - to control Save As

Subclasses may extend or reimplement the following methods as required:

  • IExecutableExtension.setInitializationData - extend to provide additional initialization when editor extension is instantiated
  • IWorkbenchPart.dispose - extend to provide additional cleanup
  • IAdaptable.getAdapter - reimplement to make the editor adaptable

Most used methods

  • dispose
  • setInput
    Sets the input to this editor. This method simply updates the internal member variable.Unlike most o
  • getAdapter
  • firePropertyChange
  • getEditorInput
  • addPropertyListener
  • getPartName
  • getSite
  • getTitle
  • internalSetPartName
  • isDirty
  • removePropertyListener
  • isDirty,
  • removePropertyListener,
  • setDefaultPartName,
  • setFocus,
  • setPartName,
  • setTitle

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now