X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/PHPUnitPlugin.java b/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/PHPUnitPlugin.java index fb89999..6daaad4 100644 --- a/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/PHPUnitPlugin.java +++ b/net.sourceforge.phpeclipse.phpunit/src/net/sourceforge/phpeclipse/phpunit/PHPUnitPlugin.java @@ -1,75 +1,45 @@ -/* - * 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.util.ResourceBundle; +package net.sourceforge.phpeclipse.phpunit; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IPluginDescriptor; -import org.eclipse.core.runtime.Platform; +//import org.eclipse.core.runtime.IPluginDescriptor; import org.eclipse.jface.dialogs.IDialogSettings; import org.eclipse.jface.preference.IPreferenceStore; 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$ + + public static final String PLUGIN_ID = "net.sourceforge.phpeclipse.phpunit"; //$NON-NLS-1$ /** * @param descriptor */ - public PHPUnitPlugin(IPluginDescriptor descriptor) { - - super(descriptor); - - System.out.println("desc: " + descriptor.getInstallURL()); - - - plugin= this; - - - String pathSuffix= "icons/"; //$NON-NLS-1$ - - System.out.println("" + Platform.getLocation()); - - System.out.println("" + Platform.getPluginStateLocation(plugin)); - - System.out.println("" + Platform.getLogFileLocation()); - - - - - - - } - - public String getPath() { - return plugin.getDescriptor().getInstallURL().getFile(); - } - - +// 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() { @@ -77,7 +47,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { return super.createImageRegistry(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#getDialogSettings() */ public IDialogSettings getDialogSettings() { @@ -85,7 +57,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { return super.getDialogSettings(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#getImageRegistry() */ public ImageRegistry getImageRegistry() { @@ -93,7 +67,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { return super.getImageRegistry(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#getPreferenceStore() */ public IPreferenceStore getPreferenceStore() { @@ -101,7 +77,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { return super.getPreferenceStore(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#getWorkbench() */ public IWorkbench getWorkbench() { @@ -109,7 +87,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { return super.getWorkbench(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.core.runtime.Plugin#initializeDefaultPluginPreferences() */ protected void initializeDefaultPluginPreferences() { @@ -117,7 +97,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.initializeDefaultPluginPreferences(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore) */ protected void initializeDefaultPreferences(IPreferenceStore store) { @@ -125,7 +107,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.initializeDefaultPreferences(store); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry) */ protected void initializeImageRegistry(ImageRegistry reg) { @@ -133,7 +117,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.initializeImageRegistry(reg); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#loadDialogSettings() */ protected void loadDialogSettings() { @@ -141,9 +127,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.loadDialogSettings(); } - - - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#refreshPluginActions() */ protected void refreshPluginActions() { @@ -151,7 +137,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.refreshPluginActions(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.ui.plugin.AbstractUIPlugin#saveDialogSettings() */ protected void saveDialogSettings() { @@ -159,9 +147,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.saveDialogSettings(); } - - - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.core.runtime.Plugin#shutdown() */ public void shutdown() throws CoreException { @@ -169,7 +157,9 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.shutdown(); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see org.eclipse.core.runtime.Plugin#startup() */ public void startup() throws CoreException { @@ -177,6 +167,4 @@ public class PHPUnitPlugin extends AbstractUIPlugin { super.startup(); } - - }