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

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

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

origin: org.eclipse.neoscada.hmi/org.eclipse.scada.ca.ui.editor

@Override
public ConfigurationEditorInput getEditorInput ()
{
  return (ConfigurationEditorInput)super.getEditorInput ();
}
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/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: net.officefloor.eclipse/net.officefloor.ui

.getEditorInput());
origin: org.eclipse.platform/org.eclipse.team.ui

private static boolean matches(IEditorReference editorRef,
    IEditorInput input) {
  if (input instanceof FileEditorInput) {
    IFile file = ((FileEditorInput) input).getFile();
    CompareEditorInput cei = (CompareEditorInput) ((EditorPart) editorRef
        .getPart(false)).getEditorInput();
    Object compareResult = cei.getCompareResult();
    if (compareResult instanceof IAdaptable) {
      IResource r = ((IAdaptable) compareResult).getAdapter(IResource.class);
      if (r != null)
        return file.equals(r);
    }
    if (compareResult instanceof ICompareInput) {
      ICompareInput compareInput = (ICompareInput) compareResult;
      ITypedElement left = compareInput.getLeft();
      if (left instanceof ResourceNode)
        if (file.equals(((ResourceNode) left).getResource()))
          return true;
      ITypedElement right = compareInput.getRight();
      if (right instanceof ResourceNode)
        if (file.equals(((ResourceNode) right).getResource()))
          return true;
    }
  }
  return false;
}
org.eclipse.ui.partEditorPartgetEditorInput

Popular methods of EditorPart

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

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Reference (javax.naming)
  • Best plugins for Eclipse
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