Examples of IEditorInput


Examples of org.eclipse.ui.IEditorInput

    IWorkbenchPage page = OwlUI.getPage();
    if (page != null) {
      IEditorReference[] editorReferences = page.getEditorReferences();
      for (IEditorReference reference : editorReferences) {
        try {
          IEditorInput editorInput = reference.getEditorInput();
          if (editorInput instanceof FeedViewInput) {
            FeedView feedView = (FeedView) reference.getEditor(true);
            feedView.updateColumns();
          }
        } catch (PartInitException e) {
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

  private void editorActivated(IEditorPart part) {
    if (!fLinkingEnabled || !fViewSite.getPage().isPartVisible(this) || part == null)
      return;

    /* Try to select and reveal editor input in the Explorer */
    IEditorInput editorInput = part.getEditorInput();
    if (editorInput instanceof FeedViewInput) {
      FeedViewInput feedViewInput = (FeedViewInput) editorInput;
      fViewer.setSelection(new StructuredSelection(feedViewInput.getMark()), true);
    }
  }
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

   * @return IEditorReference
   */
  public static IEditorReference findEditor(IEditorReference[] editorReferences, Object input) {
    for (IEditorReference reference : editorReferences) {
      try {
        IEditorInput editorInput = reference.getEditorInput();
        if (editorInput instanceof FeedViewInput) {
          FeedViewInput feedViewInput = (FeedViewInput) editorInput;
          if (feedViewInput.getMark().equals(input))
            return reference;
        }
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

    IWorkbenchPage page = OwlUI.getPage();
    if (page != null) {
      IEditorReference[] editorReferences = page.getEditorReferences();
      for (IEditorReference reference : editorReferences) {
        try {
          IEditorInput editorInput = reference.getEditorInput();
          if (editorInput instanceof FeedViewInput) {
            FeedView feedView = (FeedView) reference.getEditor(true);
            feedView.updateFilterAndGrouping(true);
          }
        } catch (PartInitException e) {
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

  private void editorActivated(IEditorPart part) {
    if (!fLinkingEnabled || !fViewSite.getPage().isPartVisible(this) || part == null)
      return;

    /* Try to select and reveal editor input in the Explorer */
    IEditorInput editorInput = part.getEditorInput();
    if (editorInput instanceof FeedViewInput) {
      FeedViewInput feedViewInput = (FeedViewInput) editorInput;
      IMark mark = feedViewInput.getMark();

      /* Change Set if required */
 
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

    /* (non-Javadoc)
     * @see org.eclipse.debug.ui.ILaunchShortcut#launch(org.eclipse.ui.IEditorPart, java.lang.String)
     */
    public void launch(IEditorPart editor, String mode) {
        IEditorInput input = editor.getEditorInput();
        IJavaElement je = (IJavaElement) input.getAdapter(IJavaElement.class);
        if (je != null) {
            searchAndLaunch(new Object[] { je}, mode, true);
        } else {
            MessageDialog.openError(getShell(), "Launch failed", "The active editor does not contain a main type.");
        }
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

     * Sets editor input only if buffer was actually opened.
     * @param force if <code>true</code> initialize no matter what
     * @param reuseSource true to show source code if available
     */
    public void doSetInput(boolean force, boolean reuseSource) {
        IEditorInput input = getEditorInput();
        input = doOpenBuffer(input, force, reuseSource);
        if (input != null) {
            try {
                doSetInput(input);
            } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

        }
        return doOpenBuffer(classFile, externalClass);
    }

    private IEditorInput doOpenBuffer(IClassFile classFile, boolean externalClass) {
        IEditorInput input = null;
        if (classFile == null) {
            return null;
        }
        if (externalClass) {
            // TODO create external input, but we need a file object here...
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

        return result;
    }

    public IClassFile getClassFile() {
        IEditorInput editorInput = getEditorInput();
        if (!(editorInput instanceof IClassFileEditorInput)) {
            return null;
        }
        return ((IClassFileEditorInput) editorInput).getClassFile();
    }
View Full Code Here

Examples of org.eclipse.ui.IEditorInput

        if (debugType == null) {
            return region;
        }

        boolean externalClass = editor.getEditorInput() instanceof ExternalClassFileEditorInput;
        IEditorInput input = null;
        // check if it is a inner class from the class in editor
        if (!hasInnerClass(debugType, parent)) {
            // not only inner classes could be defined in the same source file, but also
            // local types (non public non inner classes in the same source file)
            IClassFile classFile = getLocalTypeClass(debugType, parent);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.