Examples of URIEditorInput


Examples of org.eclipse.emf.common.ui.URIEditorInput

          diagram = intializeNewDiagram();
        }
        URI uri = EcoreUtil.getURI(diagram);
        String editorName = uri.lastSegment() + '#'
            + diagram.eResource().getContents().indexOf(diagram);
        IEditorInput editorInput = new URIEditorInput(uri, editorName);
        IWorkbenchPage page = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage();
        page.openEditor(editorInput, getEditorID());
        return CommandResult.newOKCommandResult();
      } catch (Exception ex) {
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

      fireElementMoved(input, newFile == null ? null
          : new FileEditorInput(newFile));
      return;
    }
    // TODO: append suffix to the URI! (use diagram as a parameter)
    fireElementMoved(input, new URIEditorInput(uri));
  }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

        }
      }
      URI uri = EcoreUtil.getURI(diagram);
      String editorName = uri.lastSegment() + '#'
          + diagram.eResource().getContents().indexOf(diagram);
      IEditorInput editorInput = new URIEditorInput(uri, editorName);
      return editorInput;
    }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

      }
    }
    URI uri = EcoreUtil.getURI(diagram);
    String editorName = uri.lastSegment() + '#'
        + diagram.eResource().getContents().indexOf(diagram);
    IEditorInput editorInput = new URIEditorInput(uri, editorName);
    return editorInput;
  }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

  public boolean test(Object receiver, String method, Object[] args,
      Object expectedValue) {
    if (false == receiver instanceof URIEditorInput) {
      return false;
    }
    URIEditorInput editorInput = (URIEditorInput) receiver;
    return "dispel_package_diagram".equals(editorInput.getURI().fileExtension()); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

      }
    }
    URI uri = EcoreUtil.getURI(diagram);
    String editorName = uri.lastSegment()
        + "#" + diagram.eResource().getContents().indexOf(diagram); //$NON-NLS-1$
    IEditorInput editorInput = new URIEditorInput(uri, editorName);
    return editorInput;
  }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

  public boolean test(Object receiver, String method, Object[] args,
      Object expectedValue) {
    if (false == receiver instanceof URIEditorInput) {
      return false;
    }
    URIEditorInput editorInput = (URIEditorInput) receiver;
    return "dispel_diagram".equals(editorInput.getURI().fileExtension()); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

        }
      }
      URI uri = EcoreUtil.getURI(diagram);
      String editorName = uri.lastSegment() + '#'
          + diagram.eResource().getContents().indexOf(diagram);
      IEditorInput editorInput = new URIEditorInput(uri, editorName);
      return editorInput;
    }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

      }
    }
    URI uri = EcoreUtil.getURI(diagram);
    String editorName = uri.lastSegment() + '#'
        + diagram.eResource().getContents().indexOf(diagram);
    IEditorInput editorInput = new URIEditorInput(uri, editorName);
    return editorInput;
  }
View Full Code Here

Examples of org.eclipse.emf.common.ui.URIEditorInput

        }
      }
      URI uri = EcoreUtil.getURI(diagram);
      String editorName = uri.lastSegment() + '#'
          + diagram.eResource().getContents().indexOf(diagram);
      IEditorInput editorInput = new URIEditorInput(uri, editorName);
      return editorInput;
    }
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.