|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to a storage mechanism for making dialog settings persistent. The store manages a collection of key/value pairs. The keys must be strings and the values can be either, strings or array of strings. Convenience API to convert primitive types to strings is provided.
Method Summary | |
IDialogSettings | addNewSection(String name)
Create a new section in the receiver and return it. |
void | addSection(IDialogSettings section)
Add a section in the receiver. |
String | get(String key)
Returns the value of the given key in this dialog settings. |
String[] | getArray(String key)
Returns the value, an array of strings, of the given key in this dialog settings. |
boolean | getBoolean(String key)
Convenience API. |
double | getDouble(String key)
Convenience API. |
float | getFloat(String key)
Convenience API. |
int | getInt(String key)
Convenience API. |
long | getLong(String key)
Convenience API. |
String | getName()
Returns the IDialogSettings name. |
IDialogSettings | getSection(String sectionName)
Returns the section with the given name in this dialog settings. |
IDialogSettings[] | getSections()
Returns all the sections in this dialog settings. |
void | load(Reader reader)
Load a dialog settings from a stream and fill the receiver with its content. |
void | load(String fileName)
Load a dialog settings from a file and fill the receiver with its content. |
void | put(String key,
boolean value)
Convenience API. |
void | put(String key,
double value)
Convenience API. |
void | put(String key,
float value)
Convenience API. |
void | put(String key,
int value)
Convenience API. |
void | put(String key,
long value)
Convenience API. |
void | put(String key,
String value)
Adds the pair key/value to this dialog settings. |
void | put(String key,
String[] value)
Adds the pair key/value to this dialog settings. |
void | save(String fileName)
Save a dialog settings to a file. |
void | save(Writer writer)
Save a dialog settings to a stream |
Method Detail |
public IDialogSettings addNewSection(String name)
public void addSection(IDialogSettings section)
public String get(String key)
public String[] getArray(String key)
public boolean getBoolean(String key)
public double getDouble(String key) throws NumberFormatException
public float getFloat(String key) throws NumberFormatException
public int getInt(String key) throws NumberFormatException
public long getLong(String key) throws NumberFormatException
public String getName()
public IDialogSettings getSection(String sectionName)
public IDialogSettings[] getSections()
public void load(Reader reader) throws IOException
public void load(String fileName) throws IOException
public void put(String key, String[] value)
public void put(String key, double value)
public void put(String key, float value)
public void put(String key, int value)
public void put(String key, long value)
public void put(String key, String value)
public void put(String key, boolean value)
public void save(Writer writer) throws IOException
public void save(String fileName) throws IOException
|
Eclipse Platform Release 3.0 | ||||||||||
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. and others 2000, 2004. All rights reserved.