Eclipse Platform
Release 3.1

org.eclipse.ui.preferences
Interface IWorkingCopyManager


public interface IWorkingCopyManager

IWorkingCopyManager is the interface for the working copy support for references to shared preference nodes.

Since:
3.1

Method Summary
 void applyChanges()
          Apply the changes for all working copies, to their original preference nodes.
 IEclipsePreferences getWorkingCopy(IEclipsePreferences original)
          Return a working copy instance based on the given preference node.
 

Method Detail

getWorkingCopy

public IEclipsePreferences getWorkingCopy(IEclipsePreferences original)
Return a working copy instance based on the given preference node. If a working copy already exists then return it, otherwise create one and keep track of it for other clients who are looking for it.

Parameters:
original - the original node
Returns:
the working copy node

applyChanges

public void applyChanges()
                  throws BackingStoreException
Apply the changes for all working copies, to their original preference nodes. Alternatively, if a client wishes to apply the changes for a single working copy they can call #flush on that working copy node.

Throws:
BackingStoreException - if there were problems accessing the backing store

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.