source: trunk/de.ugoe.cs.swe.exercises/src/de/ugoe/cs/swe/exercises/svn/Settings.java @ 3

Last change on this file since 3 was 3, checked in by zeiss, 15 years ago
  • Property svn:mime-type set to text/plain
File size: 616 bytes
Line 
1package de.ugoe.cs.swe.exercises.svn;
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.