Example #1
0
 /*
  * @see org.argouml.profile.ProfileManager#lookForRegisteredProfile(java.lang.String)
  */
 public Profile lookForRegisteredProfile(String value) {
   if (value != null) {
     List<Profile> registeredProfiles = getRegisteredProfiles();
     for (Profile profile : registeredProfiles) {
       if (value.equalsIgnoreCase(profile.getProfileIdentifier())) {
         return profile;
       }
     }
   }
   return null;
 }
Example #2
0
 private void updateDefaultProfilesConfiguration() {
   if (!disableConfigurationUpdate) {
     StringBuffer buf = new StringBuffer();
     for (Profile p : defaultProfiles) {
       if (p instanceof UserDefinedProfile) {
         buf.append("U" + ((UserDefinedProfile) p).getModelFile().toURI().toASCIIString());
       } else {
         buf.append("C" + p.getProfileIdentifier());
       }
       buf.append(DIRECTORY_SEPARATOR);
     }
     Configuration.setString(KEY_DEFAULT_PROFILES, buf.toString());
   }
 }