| package org.eclipse.wst.common.tests.collector; |
| import org.eclipse.jface.action.IAction; |
| import org.eclipse.jface.viewers.ISelection; |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.layout.GridData; |
| import org.eclipse.swt.layout.GridLayout; |
| import org.eclipse.swt.widgets.Shell; |
| import org.eclipse.ui.IWorkbenchWindow; |
| import org.eclipse.ui.IWorkbenchWindowActionDelegate; |
| |
| /** |
| * @author jsholl |
| * |
| * To change this generated comment edit the template variable "typecomment": |
| * Window>Preferences>Java>Templates. |
| * To enable and disable the creation of type comments go to |
| * Window>Preferences>Java>Code Generation. |
| */ |
| public class TestCollectorActionDelegate implements IWorkbenchWindowActionDelegate { |
| |
| /** |
| * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#dispose() |
| */ |
| public void dispose() { |
| } |
| |
| /** |
| * @see org.eclipse.ui.IWorkbenchWindowActionDelegate#init(IWorkbenchWindow) |
| */ |
| public void init(IWorkbenchWindow window) { |
| } |
| |
| /** |
| * @see org.eclipse.ui.IActionDelegate#run(IAction) |
| */ |
| public void run(IAction action) { |
| Shell shell = new Shell(); |
| GridLayout gridLayout = new GridLayout(); |
| shell.setLayout(gridLayout); |
| shell.setText("Test Collector"); //$NON-NLS-1$ |
| TestCollectorGUI testCollectorGUI = new TestCollectorGUI(shell, SWT.NULL); |
| GridData gridData = new GridData(GridData.FILL_BOTH); |
| gridData.horizontalSpan = 1; |
| testCollectorGUI.setLayoutData(gridData); |
| |
| shell.setSize(500, 500); |
| shell.open(); |
| } |
| |
| |
| /** |
| * @see org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection) |
| */ |
| public void selectionChanged(IAction action, ISelection selection) { |
| } |
| |
| } |