Commit 9888270c authored by Johannes Roith's avatar Johannes Roith

change message box to swt.

parent 0a9d0f24
......@@ -5,6 +5,7 @@ import org.eclipse.ui.IEditorRegistry;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
import org.eclipse.swt.widgets.*;
* The activator class controls the plug-in life cycle
......@@ -33,7 +34,10 @@ public class Activator extends AbstractUIPlugin {
plugin = this;
IEditorRegistry registry = PlatformUI.getWorkbench().getEditorRegistry();
registry.setDefaultEditor("*.minijava", "minijavaplugin.MiniJavaEditor");
javax.swing.JOptionPane.showMessageDialog(null, "Plugin activated", "Success", javax.swing.JOptionPane.INFORMATION_MESSAGE);
MessageBox mb = new MessageBox(PlatformUI.getWorkbench().getDisplay().getActiveShell());
mb.setMessage("hello from minijava!");;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment