pl.edu.agh.cast.resources
Class BaseProjectUtil

java.lang.Object
  extended by pl.edu.agh.cast.resources.BaseProjectUtil

public class BaseProjectUtil
extends Object

Utility methods for operating on projects. Uses Eclipse Preferences mechanism to fetch project properties.

Author:
AGH CAST Team

Field Summary
static String PROJECT_DISPLAY_NAME_PROPERTY
          Project display name property used.
static String PROJECT_ID_PROPERTY
          Project id property.
 
Constructor Summary
BaseProjectUtil()
           
 
Method Summary
static String getProperty(org.eclipse.core.resources.IProject project, String propertyId)
          Reads projects properties using Eclipse Preferences mechanism.
static void setProperty(org.eclipse.core.resources.IProject project, String propertyId, String value)
          Sets property for given project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_DISPLAY_NAME_PROPERTY

public static final String PROJECT_DISPLAY_NAME_PROPERTY
Project display name property used.

See Also:
Constant Field Values

PROJECT_ID_PROPERTY

public static final String PROJECT_ID_PROPERTY
Project id property.

See Also:
Constant Field Values
Constructor Detail

BaseProjectUtil

public BaseProjectUtil()
Method Detail

getProperty

public static String getProperty(org.eclipse.core.resources.IProject project,
                                 String propertyId)
Reads projects properties using Eclipse Preferences mechanism.

Parameters:
project - project which properties are read
propertyId - id of property to read
Returns:
property with given id found for specified project

setProperty

public static void setProperty(org.eclipse.core.resources.IProject project,
                               String propertyId,
                               String value)
Sets property for given project.

Parameters:
project - project which property is to be set
propertyId - property id
value - new value of property


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.