source: trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/settings/Settings.java @ 16

Last change on this file since 16 was 16, checked in by zeiss, 15 years ago
  • Property svn:mime-type set to text/plain
File size: 621 bytes
Line 
1package de.ugoe.cs.swe.exercises.settings;
2
3import org.eclipse.core.commands.AbstractHandler;
4import org.eclipse.core.commands.ExecutionEvent;
5import org.eclipse.core.commands.ExecutionException;
6import org.eclipse.ui.IWorkbenchWindow;
7import org.eclipse.ui.handlers.HandlerUtil;
8
9public class Settings extends AbstractHandler {
10
11        @Override
12        public Object execute(ExecutionEvent event) throws ExecutionException {
13                IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
14                SettingsDialog dialog = new SettingsDialog(window.getShell());
15                dialog.setTitle("Settings");
16                dialog.open();
17                return null;
18        }
19
20}
Note: See TracBrowser for help on using the repository browser.