Examples of appendFileExtension()


Examples of org.eclipse.emf.common.util.URI.appendFileExtension()

  public static Resource getModel(Diagram d) {
   
    URI uri = d.eResource().getURI();
    uri = uri.trimFragment();
    uri = uri.trimFileExtension();
    uri = uri.appendFileExtension("dispel");
    ResourceSet rSet = d.eResource().getResourceSet();
    final IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace(
        ).getRoot();
    IResource file = workspaceRoot.findMember(uri.toPlatformString(true));
   
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFileExtension()

  public void execute(ICustomContext context) {
    try {
      URI uri = getDiagram().eResource().getURI();
      URI bpmnUri = uri.trimFragment();
      bpmnUri = bpmnUri.trimFileExtension();
      bpmnUri = bpmnUri.appendFileExtension("bpmn20.xml");

      IProject project = null;
      String parentDiagramName = null;
      if (bpmnUri.isPlatformResource()) {
        String platformString = bpmnUri.toPlatformString(true);
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.