Permalink
Browse files

minor change.

  • Loading branch information...
1 parent 198f048 commit 56388b5f890e5b83b6ba266cb2ecb1086f1d9146 scela committed Apr 21, 2012
View
4 README
@@ -0,0 +1,4 @@
+A program showing the power of eclipse e4 context functions and object suppliers.
+Called the KnowItAll the program takes a string and based on the contents of the string it goes and fetches the appropriate
+service ranging from web service calls to bing translations. Also there are some special injections when someone needs
+to use an extended object supplier.
@@ -17,6 +17,8 @@
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.services.IServiceConstants;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Shell;
@@ -27,7 +29,6 @@ public void execute(
IEclipseContext context,
@Named(IServiceConstants.ACTIVE_SHELL) Shell shell)
throws InvocationTargetException, InterruptedException {
- FileDialog dialog = new FileDialog(shell);
- dialog.open();
+ MessageDialog.open(SWT.ERROR, shell, "Open Handler Title", "Open handler called", SWT.NONE);
}
}

0 comments on commit 56388b5

Please sign in to comment.