示例#1
0
 /**
  * Get the server property of the project from the supplied key
  *
  * @param key java.lang.String
  * @deprecated we cannont use persistent properties because they are not stored in the repository
  * @since 1.0.0
  */
 protected String getProjectServerValue(String key) {
   if (key == null) return null;
   try {
     QualifiedName wholeName = qualifiedKey(key);
     return getProject().getPersistentProperty(wholeName);
   } catch (CoreException exception) {
     // If we can't find it assume it is null
     exception.printStackTrace();
     return null;
   }
 }
示例#2
0
 /**
  * Set the server property of the project from the supplied value
  *
  * @param key java.lang.String
  * @param value String
  * @deprecated we cannont use persistent properties because they are not stored in the repository
  */
 protected void setProjectServerValue(String key, String value) {
   if (key != null) {
     try {
       QualifiedName wholeName = qualifiedKey(key);
       getProject().setPersistentProperty(wholeName, value);
     } catch (CoreException exception) {
       // If we can't find it assume it is null
       exception.printStackTrace();
       return;
     }
   }
 }