X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=case-study%2Fjdt-after%2Fui%20refactoring%2Forg%2Feclipse%2Fjdt%2Finternal%2Fui%2Frefactoring%2Factions%2FShowRefactoringHistoryAction.java;fp=case-study%2Fjdt-after%2Fui%20refactoring%2Forg%2Feclipse%2Fjdt%2Finternal%2Fui%2Frefactoring%2Factions%2FShowRefactoringHistoryAction.java;h=10ccfae9653772f92ac09840920caa9f124cd67d;hb=1b2798f607d741df30e5197f427381cbff326adc;hp=0000000000000000000000000000000000000000;hpb=246231e4bd9b24345490f369747c0549ca308c4d;p=ifi-stolz-refaktor.git diff --git a/case-study/jdt-after/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/ShowRefactoringHistoryAction.java b/case-study/jdt-after/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/ShowRefactoringHistoryAction.java new file mode 100644 index 00000000..10ccfae9 --- /dev/null +++ b/case-study/jdt-after/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/ShowRefactoringHistoryAction.java @@ -0,0 +1,60 @@ +/******************************************************************************* + * Copyright (c) 2005, 2008 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.jdt.internal.ui.refactoring.actions; + +import org.eclipse.jface.action.IAction; +import org.eclipse.jface.viewers.ISelection; + +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.IWorkbenchWindowActionDelegate; + +/** + * Action to show the global refactoring history. + * + * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed + */ +public final class ShowRefactoringHistoryAction implements IWorkbenchWindowActionDelegate { + + /** The workbench window, or null */ + private IWorkbenchWindow fWindow= null; + + /** + * {@inheritDoc} + */ + public void dispose() { + // Do nothing + } + + /** + * {@inheritDoc} + */ + public void init(final IWorkbenchWindow window) { + fWindow= window; + } + + /** + * {@inheritDoc} + */ + public void run(final IAction a) { + if (fWindow != null) { + org.eclipse.ltk.ui.refactoring.actions.ShowRefactoringHistoryAction action= new org.eclipse.ltk.ui.refactoring.actions.ShowRefactoringHistoryAction(); + action.init(fWindow); + action.run(a); + } + } + + /** + * {@inheritDoc} + */ + public void selectionChanged(final IAction action, final ISelection selection) { + // Do nothing + } +}