org.argouml.util
Class Trash

java.lang.Object
  |
  +--org.argouml.util.Trash

public class Trash
extends java.lang.Object

In the furture this will be a trash can icon in the project browser. Deleting an object moves it to the trash. You can move things back out of the trash if you like. Eventually you empty the trash. Critics check for relationships between things that will break when the trash is empty. E.g., Class X's superclass is in the trash, you must fix this before you empty the trash.


Field Summary
 java.util.Vector _contents
          Keys are model objects, values are TrashItems with recovery info
protected static Category cat
           
static Trash SINGLETON
           
 
Constructor Summary
protected Trash()
           
 
Method Summary
 void addItemFrom(java.lang.Object obj, java.util.Vector places)
           
 boolean contains(java.lang.Object obj)
           
 void emptyTrash()
           
 int getSize()
           
 void recoverItem(java.lang.Object obj)
           
 void removeItem(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static Category cat

SINGLETON

public static Trash SINGLETON

_contents

public java.util.Vector _contents
Keys are model objects, values are TrashItems with recovery info

Constructor Detail

Trash

protected Trash()
Method Detail

addItemFrom

public void addItemFrom(java.lang.Object obj,
                        java.util.Vector places)

contains

public boolean contains(java.lang.Object obj)

recoverItem

public void recoverItem(java.lang.Object obj)

removeItem

public void removeItem(java.lang.Object obj)

emptyTrash

public void emptyTrash()

getSize

public int getSize()


ArgoUML © 1996-2003 (20040229)ArgoUML Project HomeArgoUML Cookbook