woproject/projects/wolips/plugins/org.objectstyle.wolips.htmlpreview/java/org/objectstyle/wolips/htmlpreview HtmlPreviewPlugin.java,NONE,1.1
| Newsgroups | gmane.comp.web.webobjects.woproject.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/woproject/woproject/projects/wolips/plugins/org.objectstyle.wolips.htmlpreview/java/org/objectstyle/wolips/htmlpreview
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8018/wolips/plugins/org.objectstyle.wolips.htmlpreview/java/org/objectstyle/wolips/htmlpreview
Added Files:
HtmlPreviewPlugin.java
Log Message:
new htmlpreview plugin
--- NEW FILE: HtmlPreviewPlugin.java ---
package org.objectstyle.wolips.htmlpreview;
import org.eclipse.ui.plugin.*;
import org.eclipse.jface.resource.ImageDescriptor;
import org.osgi.framework.BundleContext;
/**
* The main plugin class to be used in the desktop.
*/
public class HtmlPreviewPlugin extends AbstractUIPlugin {
//The shared instance.
private static HtmlPreviewPlugin plugin;
/**
* The constructor.
*/
public HtmlPreviewPlugin() {
plugin = this;
}
/**
* This method is called upon plug-in activation
*/
public void start(BundleContext context) throws Exception {
super.start(context);
}
/**
* This method is called when the plug-in is stopped
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
plugin = null;
}
/**
* Returns the shared instance.
*
* @return the shared instance.
*/
public static HtmlPreviewPlugin getDefault() {
return plugin;
}
/**
* Returns an image descriptor for the image file at the given
* plug-in relative path.
*
* @param path the path
* @return the image descriptor
*/
public static ImageDescriptor getImageDescriptor(String path) {
return AbstractUIPlugin.imageDescriptorFromPlugin("org.objectstyle.wolips.htmlpreview", path);
}
}
-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click