X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/blobdiff_plain/e3240965ccd65c0d123d05e13d04e7820fe01f85..337f099d214dc0d4bf254f5c867563a38592cce8:/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/WorkbenchUndoContextAdapterFactory.java diff --git a/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/WorkbenchUndoContextAdapterFactory.java b/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/WorkbenchUndoContextAdapterFactory.java index d99ef7cf8..380c9773c 100644 --- a/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/WorkbenchUndoContextAdapterFactory.java +++ b/eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/WorkbenchUndoContextAdapterFactory.java @@ -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; } }