blob: 12583a3038572f0dee092b20e8c220e8a7ff8be9 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.update.internal.ui.views;
import org.eclipse.jface.action.Action;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.update.internal.ui.UpdateUI;
import org.eclipse.update.internal.ui.wizards.ShowActivitiesDialog;
public class ShowActivitiesAction extends Action {
Shell shell;
public ShowActivitiesAction(Shell parentShell, String text) {
super(text);
this.shell = parentShell;
}
public void run() {
ShowActivitiesDialog dialog = new ShowActivitiesDialog(shell);
dialog.create();
dialog.getShell().setText(UpdateUI.getString("ShowActivitiesDialog.title")); //$NON-NLS-1$
dialog.open();
}
}