|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistenceDelegate
This interface provides useful methods to save and load the tool window manager's workspace.
When you request to save the workspace, all settings of ToolWindows with relative descriptors are saved.
To obtain an instance of PersistenceDelegate you have to invoke the method getPersistenceDelegate
of ToolWindowManager interface. So you can obtain a persistence delegate specific to a
particular tool window manager.
ToolWindowManager| Nested Class Summary | |
|---|---|
static class |
PersistenceDelegate.MergePolicy
|
| Method Summary | |
|---|---|
void |
apply(java.io.InputStream inputStream)
Reads the settings for the ToolWindows, already registered into the manager, from the input stream. |
void |
merge(java.io.InputStream inputStream,
PersistenceDelegate.MergePolicy mergePolicy)
Reads the settings for the ToolWindows, already registered into the manager, from the input stream applying the passed merge policy |
void |
save(java.io.OutputStream outputStream)
Writes all settings of ToolWindows with relative descriptors to the output stream in a format suitable for loading using the apply(java.io.InputStream) method. |
| Method Detail |
|---|
void save(java.io.OutputStream outputStream)
apply(java.io.InputStream) method.
After the entries have been written, the output stream is flushed. The output stream remains open after this method returns.
Look at the specific implementation for the data format.
outputStream - an output stream
java.lang.RuntimeException - if an error occurred when writing to the ouput stream.apply(java.io.InputStream)void apply(java.io.InputStream inputStream)
inputStream - the input stream.
java.lang.RuntimeException - if an error occurred when reading from the
input stream.save(java.io.OutputStream)
void merge(java.io.InputStream inputStream,
PersistenceDelegate.MergePolicy mergePolicy)
inputStream - the input stream.mergePolicy - the merget policy used to apply settings.
java.lang.RuntimeException - if an error occurred when reading from the
input stream.PersistenceDelegate.MergePolicy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||