Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

javax.ide.model.java.source
Interface TreeTransaction


public interface TreeTransaction

A TreeTransaction is a set of changes made to the Tree model that are logically grouped into a single undoable change.


Method Summary
 void abort()
          Aborts this multi-tree transaction.
 javax.swing.undo.UndoableEdit commit()
          Logically ends a transaction, writes changes to the underlying file (if any), and releases all acquired resources.
 FileT getFile()
          Gets the file involved in this transaction.
 TreeManager getOwningManager()
          Gets the owning manager.
 

Method Detail

abort

void abort()
Aborts this multi-tree transaction. All changes are undone and all acquired resources are released.

Throws:
java.lang.IllegalStateException - if this transaction has already ended.

commit

javax.swing.undo.UndoableEdit commit()
Logically ends a transaction, writes changes to the underlying file (if any), and releases all acquired resources.

Returns:
An UndoableEdit that can undo all the changes made during this transaction.
Throws:
java.lang.IllegalStateException - if this transaction has already ended.

getFile

FileT getFile()
Gets the file involved in this transaction.

Returns:
The file involved in this transaction.

getOwningManager

TreeManager getOwningManager()
Gets the owning manager.

Returns:
The owning manager.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.