Package org.eclipse.ui.ide

Examples of org.eclipse.ui.ide.FileStoreEditorInput


    if (element instanceof IEditorInput) {
      input = (IEditorInput)element;
    } else if (element instanceof IFile) {
      input = new FileEditorInput((IFile)element);
    } else if (element instanceof IFileStore) {
      input = new FileStoreEditorInput((IFileStore)element);
    }
   
    if (input != null) {
      IEditorPart part = page.findEditor(input);
     
View Full Code Here


            .endsWith(".taskpaper"))) {
      IWorkbenchPage page = window.getActivePage();
      try {
        // TaskActivator.getInstance().getClass();
        IFileStore fileStore = EFS.getStore(file.toURI());
        IDE.openEditor(page, new FileStoreEditorInput(fileStore),
            "de.sebastianbenz.task.Task");
      } catch (CoreException e) {
        e.printStackTrace();
      }
    }
View Full Code Here

      IFile file = getWorkspaceFile(fileStore);
      if(file != null)
        newInput = new FileEditorInput(file);
      else {
        IURIEditorInput uriInput = new FileStoreEditorInput(fileStore);
        java.net.URI uri = uriInput.getURI();
        IFile linkedFile = linkedFileHelper.obtainLink(uri, false);

        newInput = new FileEditorInput(linkedFile);
      }
View Full Code Here

    if(part == null)
      return false; // TODO: may be wrong if part not restored See EditorManager.findEditors
    IEditorInput editorInput = part.getEditorInput();
    if(editorInput instanceof FileEditorInput && input instanceof FileStoreEditorInput) {
      FileEditorInput fei = (FileEditorInput) editorInput;
      FileStoreEditorInput fsei = (FileStoreEditorInput) input;
      if(fei.getFile().isLinked() && fei.getURI().equals(fsei.getURI()))
        return true;
    }
    return editorInput.equals(input);
  }
View Full Code Here

      IFile file = getWorkspaceFile(fileStore);
      if(file != null)
        newInput = new FileEditorInput(file);
      else {
        IURIEditorInput uriInput = new FileStoreEditorInput(fileStore);
        java.net.URI uri = uriInput.getURI();
        IFile linkedFile = ExtLinkedFileHelper.obtainLink(uri, false);

        newInput = new FileEditorInput(linkedFile);
      }
View Full Code Here

    if(part == null)
      return false; // TODO: may be wrong if part not restored See EditorManager.findEditors
    IEditorInput editorInput = part.getEditorInput();
    if(editorInput instanceof FileEditorInput && input instanceof FileStoreEditorInput) {
      FileEditorInput fei = (FileEditorInput) editorInput;
      FileStoreEditorInput fsei = (FileStoreEditorInput) input;
      if(fei.getFile().isLinked() && fei.getURI().equals(fsei.getURI()))
        return true;
    }
    return editorInput.equals(input);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.ide.FileStoreEditorInput

Copyright © 2018 www.massapicom. 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.