Examples of IRegisteredProfile


Examples of org.eclipse.papyrus.uml.extensionpoints.profile.IRegisteredProfile

  }
  public static IRegisteredProfile getRegisteredProfile(String name, String path) {
    Assert.isNotNull(name);
    List<IRegisteredProfile> profiles = Registry.getRegisteredProfiles();
    for(int i = 0; i < profiles.size(); i++) {
      IRegisteredProfile profile = profiles.get(i);

      // name corresponds. is path equal?
      if(name.equals(profile.getName())) {
        // no path indicated => first name that corresponds => profile returned
        if(path == null) {
          return profile;
        } else if(path.equals(profile.getPath())) {
          return profile;
        }
      }
    }
    return null;
View Full Code Here

Examples of org.eclipse.papyrus.uml.extensionpoints.profile.IRegisteredProfile

      return hasChanged;
    }

    for(int i = 0; i < selection.length; i++) {

      IRegisteredProfile currentProfile = (IRegisteredProfile)(selection[i]);
      URI modelUri = currentProfile.getUri();

      PackageImport pi = getModelLibraryImportFromURI(modelUri);

      if(pi != null) {
        currentPackage.getPackageImports().add(pi);
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.