|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.dialogs.ShowRelatedElementsPresetHelper
Show Related Elements Presets helper. Includes methods for serializing and deserializing and also a converter interface for the serializer and deserializer.
| Nested Class Summary | |
static interface |
ShowRelatedElementsPresetHelper.IConversionMethods
Methods for the serializer and deserializer which should be implemented to convert the serialized String into an object and to convert the object into a serialzed String. |
| Field Summary | |
static java.lang.String |
KEY_SEPARATOR
Key separator for serialzing |
static java.lang.String |
VALUE_SEPARATOR
Value separator for serialzing |
| Method Summary | |
static java.lang.String[] |
convertPresetsToString(java.util.List presets,
ShowRelatedElementsPresetHelper.IConversionMethods conversionMethod)
Convert the presets to a string array used for serializing |
static ShowRelatedElementsPreset |
findPresetFromList(java.util.List list,
java.lang.String name)
Convenience method to find a preset from the list. |
static java.util.List |
readPresets(java.lang.String nameToIgnore,
java.lang.String[] settings,
ShowRelatedElementsPresetHelper.IConversionMethods conversionMethod)
Return a list of ShowRelatedElementsPreset objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String KEY_SEPARATOR
public static final java.lang.String VALUE_SEPARATOR
| Method Detail |
public static ShowRelatedElementsPreset findPresetFromList(java.util.List list,
java.lang.String name)
list - List of ShowRelatedElementsPreset objects.name - name to match
public static java.util.List readPresets(java.lang.String nameToIgnore,
java.lang.String[] settings,
ShowRelatedElementsPresetHelper.IConversionMethods conversionMethod)
nameToIgnore - ignore this name when reading in the presets. Can be null if
you do not want to ignore anything and read everything in.settings - string array of settingsconversionMethod - see the IConversionMethods class above
public static java.lang.String[] convertPresetsToString(java.util.List presets,
ShowRelatedElementsPresetHelper.IConversionMethods conversionMethod)
presets - List of ShowRelatedElementsPresets objectsconversionMethod - see the IConversionMethods class above
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.