refactor editor actions to work in form editor
diff --git a/plugins/org.eclipse.datatools.sqltools.routineeditor/src/org/eclipse/datatools/sqltools/routineeditor/internal/RoutineEditorActivator.java b/plugins/org.eclipse.datatools.sqltools.routineeditor/src/org/eclipse/datatools/sqltools/routineeditor/internal/RoutineEditorActivator.java
index be6f32b..67dd5e1 100644
--- a/plugins/org.eclipse.datatools.sqltools.routineeditor/src/org/eclipse/datatools/sqltools/routineeditor/internal/RoutineEditorActivator.java
+++ b/plugins/org.eclipse.datatools.sqltools.routineeditor/src/org/eclipse/datatools/sqltools/routineeditor/internal/RoutineEditorActivator.java
@@ -54,10 +54,10 @@
 	 * This method is called when the plug-in is stopped
 	 */
 	public void stop(BundleContext context) throws Exception {
-		super.stop(context);
 		plugin = null;
         SQLToolsProfileListenersManager pManager = SQLToolsProfileListenersManager.getInstance();
         pManager.removeProfileListener(_toolsLaunchProfileListener);
+        super.stop(context);
 	}
 
 	/**