svn commit: r16274 - trunk/src/argouml-core-model/src/org/argouml/model

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-12-07 12:30:19-0800
New Revision: 16274

Removed:
   trunk/src/argouml-core-model/src/org/argouml/model/MementoCreationObserver.java
Modified:
   trunk/src/argouml-core-model/src/org/argouml/model/Model.java

Log:
Remove deprecated MementoCreationObserver

Removed: trunk/src/argouml-core-model/src/org/argouml/model/MementoCreationObserver.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/MementoCreationObserver.java?view=markup&pathrev=16273

Modified: trunk/src/argouml-core-model/src/org/argouml/model/Model.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/Model.java?view=diff&pathrev=16274&r1=16273&r2=16274
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/Model.java	(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/Model.java	2008-12-07 12:30:19-0800
@@ -91,11 +91,6 @@
     /**
      * The register for the observer.
      */
-    private static MementoCreationObserver mementoCreationObserver;
-
-    /**
-     * The register for the observer.
-     */
     private static ModelCommandCreationObserver modelCommandCreationObserver;
 
     /**
@@ -498,21 +493,6 @@
         return impl != null;
     }
 
-    /**
-     * Allows an external system to register itself to receive mementos created
-     * by the model implementation.
-     * 
-     * @see ModelMemento
-     * 
-     * @param observer the interested party
-     * @deprecated for 0.25.4 by bobtarling. Use
-     *             {@link #setModelCommandCreationObserver}.
-     */
-    @Deprecated
-    public static void setMementoCreationObserver(
-            MementoCreationObserver observer) {
-        mementoCreationObserver = observer;
-    }
 
     /**
      * Allows an external system to register itself to receive commands
@@ -526,17 +506,6 @@
         modelCommandCreationObserver = observer;
     }
 
-    /**
-     * Gets the external class responsible for handling mementos.
-     * 
-     * @return the MementoCreationObserver
-     * @deprecated for 0.25.4 by bobtarling. Use
-     *             {@link #getModelCommandCreationObserver}.
-     */
-    @Deprecated
-    public static MementoCreationObserver getMementoCreationObserver() {
-        return mementoCreationObserver;
-    }
 
     /**
      * Gets the external class responsible for handling commands.
@@ -547,21 +516,6 @@
         return modelCommandCreationObserver;
     }
 
-    /**
-     * Notify any observer that a command has been created.
-     * 
-     * @param memento The newly created memento.
-     * @deprecated for 0.25.4 by bobtarling. Use
-     *             {@link #notifyModelCommandCreationObserver}.
-     */
-    @Deprecated
-    public static void notifyMementoCreationObserver(
-            ModelMemento memento) {
-        MementoCreationObserver mco = getMementoCreationObserver();
-        if (mco != null) {
-            mco.mementoCreated(memento);
-        }
-    }
 
     /**
      * Notify any observer that a command has been created and execute

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=980873

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.