Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31105/java/org/objectstyle/wolips/componenteditor
Modified Files:
ComponenteditorPlugin.java
Log Message:
reenable componenteditor menu i.e switch to html with command alt 2
Index: ComponenteditorPlugin.java
===================================================================
RCS file: /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/ComponenteditorPlugin.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ComponenteditorPlugin.java 2 Oct 2005 14:33:55 -0000 1.1
+++ ComponenteditorPlugin.java 26 Jan 2006 08:13:36 -0000 1.2
@@ -45,9 +45,7 @@
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.forms.FormColors;
import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.objectstyle.wolips.componenteditor.editor.ComponentEditor;
import org.objectstyle.wolips.ui.plugins.AbstractWOLipsUIPlugin;
import org.osgi.framework.BundleContext;
@@ -60,13 +58,9 @@
// The shared instance.
private static ComponenteditorPlugin plugin;
- private FormColors formColors;
-
public static String ComponentEditorID = "org.objectstyle.wolips.wodclipse.mpe.ComponentEditor";
public static String WOOEditorID = "org.eclipse.ui.DefaultTextEditor";
-
- private ComponentEditor activeComponentEditor;
/**
* The constructor.
@@ -87,16 +81,8 @@
* This method is called when the plug-in is stopped
*/
public void stop(BundleContext context) throws Exception {
- try {
- if (formColors != null) {
- formColors.dispose();
- formColors = null;
- }
- } finally {
- super.stop(context);
- }
+ super.stop(context);
plugin = null;
- activeComponentEditor = null;
}
/**
* Returns the shared instance.
@@ -115,19 +101,11 @@
*/
public static ImageDescriptor getImageDescriptor(String path) {
return AbstractUIPlugin.imageDescriptorFromPlugin(
- "org.objectstyle.wolips.wodclipse", path);
+ "org.objectstyle.wolips.componenteditor", path);
}
public Image getImage(String key) {
return getImageRegistry().get(key);
}
- public ComponentEditor getActiveComponentEditor() {
- return activeComponentEditor;
- }
-
- public void setActiveComponentEditor(ComponentEditor activeComponentEditor) {
- this.activeComponentEditor = activeComponentEditor;
- }
-
}
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.