-/*
- * Created on Sep 4, 2004
+/*************************************************************************
+ * @author Ali Echihabi (ali_echihabi@ieee.org, ali.echihabi@souss.ca)
*
- * To change the template for this generated file go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package net.sourceforge.phpeclipse.phpunit;
+ * Plugin for PHP unit Testing.
+ * www.phpeclipse.de
+ *
+ *************************************************************************/
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.ResourceBundle;
+package net.sourceforge.phpeclipse.phpunit;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPluginDescriptor;
+//import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.plugin.AbstractUIPlugin;
-/**
- * @author Ali Echihabi
- *
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
public class PHPUnitPlugin extends AbstractUIPlugin {
-
-
private static PHPUnitPlugin plugin;
- private ResourceBundle resourceBundle;
+ public static final String PLUGIN_ID = "net.sourceforge.phpeclipse.phpunit"; //$NON-NLS-1$
/**
* @param descriptor
*/
- public PHPUnitPlugin(IPluginDescriptor descriptor) {
- super(descriptor);
-
- plugin = this;
-
-
-
-
- }
+// public PHPUnitPlugin(IPluginDescriptor descriptor) {
+//
+// super(descriptor);
+//
+// plugin = this;
+//
+// }
public static PHPUnitPlugin getDefault() {
return plugin;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#createImageRegistry()
*/
protected ImageRegistry createImageRegistry() {
return super.createImageRegistry();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#getDialogSettings()
*/
public IDialogSettings getDialogSettings() {
return super.getDialogSettings();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#getImageRegistry()
*/
public ImageRegistry getImageRegistry() {
return super.getImageRegistry();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#getPreferenceStore()
*/
public IPreferenceStore getPreferenceStore() {
return super.getPreferenceStore();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#getWorkbench()
*/
public IWorkbench getWorkbench() {
return super.getWorkbench();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.core.runtime.Plugin#initializeDefaultPluginPreferences()
*/
protected void initializeDefaultPluginPreferences() {
super.initializeDefaultPluginPreferences();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore)
*/
protected void initializeDefaultPreferences(IPreferenceStore store) {
super.initializeDefaultPreferences(store);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry)
*/
protected void initializeImageRegistry(ImageRegistry reg) {
super.initializeImageRegistry(reg);
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#loadDialogSettings()
*/
protected void loadDialogSettings() {
super.loadDialogSettings();
}
-
-
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#refreshPluginActions()
*/
protected void refreshPluginActions() {
super.refreshPluginActions();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#saveDialogSettings()
*/
protected void saveDialogSettings() {
super.saveDialogSettings();
}
-
-
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.core.runtime.Plugin#shutdown()
*/
public void shutdown() throws CoreException {
super.shutdown();
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see org.eclipse.core.runtime.Plugin#startup()
*/
public void startup() throws CoreException {
super.startup();
}
- /**
- * @param string
- */
- public static ImageDescriptor getImageDescriptor(String name) {
-
- String iconPath = "icons/";
- try {
- URL installURL = getDefault().getDescriptor().getInstallURL();
- URL url = new URL(installURL, iconPath + name);
-
- System.out.println("url:" + url.toExternalForm());
-
- return ImageDescriptor.createFromURL(url);
- } catch (MalformedURLException e) {
- // should not happen
- return ImageDescriptor.getMissingImageDescriptor();
- }
-
-
- }
-
}