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 | |
---|
1 | package de.ugoe.cs.swe.exercises.settings; |
---|
2 | |
---|
3 | import org.eclipse.core.commands.AbstractHandler; |
---|
4 | import org.eclipse.core.commands.ExecutionEvent; |
---|
5 | import org.eclipse.core.commands.ExecutionException; |
---|
6 | import org.eclipse.ui.IWorkbenchWindow; |
---|
7 | import org.eclipse.ui.handlers.HandlerUtil; |
---|
8 | |
---|
9 | public 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.