Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.codelist.legacy
Class CodeListPreferenceInitializer

java.lang.Object
  extended by org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
      extended by eu.esdihumboldt.hale.ui.codelist.legacy.CodeListPreferenceInitializer
All Implemented Interfaces:
CodeListPreferenceConstants

public class CodeListPreferenceInitializer
extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
implements CodeListPreferenceConstants

Code list preferences

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.ui.codelist.legacy.CodeListPreferenceConstants
KEY_ATTRIBUTE_PREFIX, KEY_SEARCH_PATH_COUNT, KEY_SEARCH_PATH_PREFIX
 
Constructor Summary
CodeListPreferenceInitializer()
           
 
Method Summary
static void assignCodeList(String attributeIdentifier, URI codeListLocation)
          Assign a code list location to an attribute
static URI getAssignedCodeList(String attributeIdentifier)
          Get the assigned code list location for an attribute
static List<String> getSearchPath()
          Get the search path from the preferences
 void initializeDefaultPreferences()
           
static void setSearchPath(List<String> searchPath)
          Save the search path to the preferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeListPreferenceInitializer

public CodeListPreferenceInitializer()
Method Detail

initializeDefaultPreferences

public void initializeDefaultPreferences()
Specified by:
initializeDefaultPreferences in class org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
See Also:
AbstractPreferenceInitializer.initializeDefaultPreferences()

setSearchPath

public static void setSearchPath(List<String> searchPath)
Save the search path to the preferences

Parameters:
searchPath - the search path

getSearchPath

public static List<String> getSearchPath()
Get the search path from the preferences

Returns:
the search path

assignCodeList

public static void assignCodeList(String attributeIdentifier,
                                  URI codeListLocation)
Assign a code list location to an attribute

Parameters:
attributeIdentifier - the attribute identifier
codeListLocation - the code list location or null

getAssignedCodeList

public static URI getAssignedCodeList(String attributeIdentifier)
Get the assigned code list location for an attribute

Parameters:
attributeIdentifier - the attribute identifier
Returns:
the code list location or null if none is assigned

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d