Merge branch 'release/5.0.0' into develop
[taxeditor.git] / eu.etaxonomy.taxeditor.navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / WorkbenchUndoContextAdapterFactory.java
index d99ef7cf8c8076e8ab055653460c44fd43650418..380c9773c55fd6b7c68dd62ec86617a6f922ef23 100644 (file)
@@ -1,8 +1,8 @@
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
-* 
+*
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
@@ -28,15 +28,16 @@ public class WorkbenchUndoContextAdapterFactory implements IAdapterFactory {
        private UndoContext defaultUndoContext;
 
        private static final Class[] ADAPTER_LIST = new Class[] { IUndoContext.class };
-       
+
        /* (non-Javadoc)
         * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
         */
        /** {@inheritDoc} */
-       public Object getAdapter(Object adaptableObject, Class adapterType) {
-               if (IUndoContext.class.equals(adapterType)) {
-                       return NavigationUtil.getWorkbenchUndoContext();
-               }
+       @Override
+    public Object getAdapter(Object adaptableObject, Class adapterType) {
+//             if (IUndoContext.class.equals(adapterType)) {
+//                     return NavigationUtil.getWorkbenchUndoContext();
+//             }
                return null;
        }
 
@@ -58,7 +59,8 @@ public class WorkbenchUndoContextAdapterFactory implements IAdapterFactory {
         *
         * @return an array of {@link java.lang.Class} objects.
         */
-       public Class[] getAdapterList() {
+       @Override
+    public Class[] getAdapterList() {
                return ADAPTER_LIST;
        }
 }