de.cau.cs.kieler.kiml.grana.util
Class GranaUtil

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.util.GranaUtil

public final class GranaUtil
extends Object

A utility class for grana handlers.

Rating red

Method Summary
static List<AbstractInfoAnalysis> getAnalysesSelection(String preferenceKey)
          Returns an analysis selection from the preference store.
static List<AbstractInfoAnalysis> getLastAnalysesSelection()
          Returns the last analyses selection from the preference store.
static void setAnalysesSelection(String preferenceKey, List<AbstractInfoAnalysis> analyses)
          Sets an analysis selection in the preference store.
static void setLastAnalysesSelection(List<AbstractInfoAnalysis> analyses)
          Sets the last analyses selection in the preference store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLastAnalysesSelection

public static List<AbstractInfoAnalysis> getLastAnalysesSelection()
Returns the last analyses selection from the preference store.

Returns:
the last analyses selection

getAnalysesSelection

public static List<AbstractInfoAnalysis> getAnalysesSelection(String preferenceKey)
Returns an analysis selection from the preference store.

Parameters:
preferenceKey - the key of the preference which stores the given analysis selection
Returns:
the last selected analyses

setLastAnalysesSelection

public static void setLastAnalysesSelection(List<AbstractInfoAnalysis> analyses)
Sets the last analyses selection in the preference store.

Parameters:
analyses - the last analyses selection

setAnalysesSelection

public static void setAnalysesSelection(String preferenceKey,
                                        List<AbstractInfoAnalysis> analyses)
Sets an analysis selection in the preference store.

Parameters:
preferenceKey - the key of the preference which stores the given analysis selection
analyses - the analyses