blob: b0f47bc738c08ca983a2a1da2d33c4d9ca4aef49 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 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.update.internal.ui.views;
import org.eclipse.jface.action.Action;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.update.internal.ui.UpdateUIMessages;
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(UpdateUIMessages.ShowActivitiesDialog_title);
dialog.open();
}
}