|
||||||||||
| 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(InputStream inputStream)
Reads the settings for the ToolWindows, already registered into the manager, from the input stream. |
void |
merge(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 |
merge(InputStream inputStream,
PersistenceDelegate.MergePolicy mergePolicy,
PersistenceDelegateCallback callback)
Reads the settings for the ToolWindows, already registered into the manager, from the input stream applying the passed merge policy and using the passed callback. |
void |
save(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. |
void |
save(OutputStream outputStream,
PersistenceDelegateFilter filter)
Writes all settings that the filter accept to the output stream in a format suitable for loading using the apply(java.io.InputStream) method. |
| Method Detail |
|---|
void save(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
RuntimeException - if an error occurred when writing to the ouput stream.apply(java.io.InputStream)
void save(OutputStream outputStream,
PersistenceDelegateFilter filter)
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 streamfilter - a filter used to accept or not each specific part.
RuntimeException - if an error occurred when writing to the ouput stream.PersistenceDelegateFiltervoid apply(InputStream inputStream)
inputStream - the input stream.
RuntimeException - if an error occurred when reading from the
input stream.save(java.io.OutputStream),
PersistenceDelegate.MergePolicy.RESET
void merge(InputStream inputStream,
PersistenceDelegate.MergePolicy mergePolicy)
inputStream - the input stream.mergePolicy - the merget policy used to apply settings.
RuntimeException - if an error occurred when reading from the
input stream.PersistenceDelegate.MergePolicy
void merge(InputStream inputStream,
PersistenceDelegate.MergePolicy mergePolicy,
PersistenceDelegateCallback callback)
inputStream - the input stream.mergePolicy - the merget policy used to apply settings.callback - a callback object instance. It can be null.
RuntimeException - if an error occurred when reading from the
input stream.PersistenceDelegateCallback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||