站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

FoldHierarchyTransaction (NetBeans Code Folding API) - NetBeans API Javadoc 5.0.0

 

org.netbeans.spi.editor.fold
Class FoldHierarchyTransaction

java.lang.Object
  extended byorg.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

commit

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

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

 

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