Package org.eclipse.dltk.internal.ui.editor

Examples of org.eclipse.dltk.internal.ui.editor.ExternalStorageEditorInput


    IEditorPart editor = getEditor();
    if (editor != null) {
      IEditorInput input = editor.getEditorInput();

      if (input instanceof ExternalStorageEditorInput) {
        ExternalStorageEditorInput external = (ExternalStorageEditorInput) input;
        IStorage storage = external.getStorage();
        if (storage != null) {
          if (storage instanceof ExternalSourceModule) {
            ExternalSourceModule externalSourceModule = (ExternalSourceModule) storage;
            return externalSourceModule;
          }
View Full Code Here


    }
    if (element instanceof ILineBreakpoint) {
      return getLineBreakpointEditorInput(element);
    }
    if (element instanceof IStorage) {
      return new ExternalStorageEditorInput((IStorage) element);
    }
    if (element instanceof IFileStore) {
      IFileStore fileStore = (IFileStore) element;
      NonExistingPHPFileEditorInput nonExistingEditorInput = NonExistingPHPFileEditorInput
          .findEditorInput(new Path(fileStore.toURI().getPath()));
View Full Code Here

          .getInstance()
          .createWorkspaceScope(true, PHPLanguageToolkit.getDefault());
      Openable openable = fac.createOpenable(path.toString(), scope);

      if (openable instanceof IStorage) {
        return new ExternalStorageEditorInput((IStorage) openable);
      }

      // Support external files opened using File -> Open
      File localFile = new File(location);
      if (localFile.exists()) {
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.ui.editor.ExternalStorageEditorInput

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.