Package org.eclipse.emf.common.ui

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


        }
      }
      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

      }
    }
    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

  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

      }
    }
    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

  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

        }
      }
      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

      }
    }
    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

        }
      }
      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

      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

TOP

Related Classes of org.eclipse.emf.common.ui.URIEditorInput

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.