org.netbeans.modules.editor.fold/1 1.5.22

Class FoldHierarchyTransaction

  extended by org.netbeans.spi.editor.fold.FoldHierarchyTransaction

public final class FoldHierarchyTransaction
extends Object

Class encapsulating a modification of the code folding hierarchy.
It's provided by FoldOperation.openTransaction().
It can accumulate arbitrary number of changes of various folds by being passed as argument to particular methods in the FoldOperation.
Only one transaction can be active at the time.
Once all the modifications are done the transaction must be committed by commit() which creates a FoldHierarchyEvent and fires it to the listeners automatically.
Once the transaction is committed no additional changes can be made to it.
There is currently no way to rollback the transaction.

Method Summary
 void commit()
          Commit this transaction.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public void commit()
Commit this transaction.
Transaction can only be committed once.

IllegalStateException - if the transaction is attempted to be commited more than once.

org.netbeans.modules.editor.fold/1 1.5.22

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.