2  * Created on Sep 4, 2004
 
   4  * To change the template for this generated file go to
 
   5  * Window>Preferences>Java>Code Generation>Code and Comments
 
   7 package net.sourceforge.phpeclipse.phpunit;
 
   9 import java.util.ResourceBundle;
 
  11 import org.eclipse.core.runtime.CoreException;
 
  12 import org.eclipse.core.runtime.IPluginDescriptor;
 
  13 import org.eclipse.core.runtime.Platform;
 
  14 import org.eclipse.jface.dialogs.IDialogSettings;
 
  15 import org.eclipse.jface.preference.IPreferenceStore;
 
  16 import org.eclipse.jface.resource.ImageRegistry;
 
  17 import org.eclipse.ui.IWorkbench;
 
  18 import org.eclipse.ui.plugin.AbstractUIPlugin;
 
  21  * @author Ali Echihabi
 
  23  * To change the template for this generated type comment go to
 
  24  * Window>Preferences>Java>Code Generation>Code and Comments
 
  26 public class PHPUnitPlugin extends AbstractUIPlugin {
 
  30         private static PHPUnitPlugin plugin;
 
  31         private ResourceBundle resourceBundle;
 
  32         public static final String PLUGIN_ID= "net.sourceforge.phpeclipse.phpunit"; //$NON-NLS-1$
 
  37         public PHPUnitPlugin(IPluginDescriptor descriptor) {
 
  41                 System.out.println("desc: "  + descriptor.getInstallURL());
 
  47                 String pathSuffix= "icons/"; //$NON-NLS-1$
 
  49                 System.out.println("" + Platform.getLocation());
 
  51                 System.out.println("" + Platform.getPluginStateLocation(plugin));
 
  53                 System.out.println("" + Platform.getLogFileLocation());
 
  62         public String getPath() {
 
  63                 return plugin.getDescriptor().getInstallURL().getFile();
 
  68         public static PHPUnitPlugin getDefault() {
 
  73          * @see org.eclipse.ui.plugin.AbstractUIPlugin#createImageRegistry()
 
  75         protected ImageRegistry createImageRegistry() {
 
  76                 // TODO Auto-generated method stub
 
  77                 return super.createImageRegistry();
 
  81          * @see org.eclipse.ui.plugin.AbstractUIPlugin#getDialogSettings()
 
  83         public IDialogSettings getDialogSettings() {
 
  84                 // TODO Auto-generated method stub
 
  85                 return super.getDialogSettings();
 
  89          * @see org.eclipse.ui.plugin.AbstractUIPlugin#getImageRegistry()
 
  91         public ImageRegistry getImageRegistry() {
 
  92                 // TODO Auto-generated method stub
 
  93                 return super.getImageRegistry();
 
  97          * @see org.eclipse.ui.plugin.AbstractUIPlugin#getPreferenceStore()
 
  99         public IPreferenceStore getPreferenceStore() {
 
 100                 // TODO Auto-generated method stub
 
 101                 return super.getPreferenceStore();
 
 105          * @see org.eclipse.ui.plugin.AbstractUIPlugin#getWorkbench()
 
 107         public IWorkbench getWorkbench() {
 
 108                 // TODO Auto-generated method stub
 
 109                 return super.getWorkbench();
 
 113          * @see org.eclipse.core.runtime.Plugin#initializeDefaultPluginPreferences()
 
 115         protected void initializeDefaultPluginPreferences() {
 
 116                 // TODO Auto-generated method stub
 
 117                 super.initializeDefaultPluginPreferences();
 
 121          * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore)
 
 123         protected void initializeDefaultPreferences(IPreferenceStore store) {
 
 124                 // TODO Auto-generated method stub
 
 125                 super.initializeDefaultPreferences(store);
 
 129          * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry)
 
 131         protected void initializeImageRegistry(ImageRegistry reg) {
 
 132                 // TODO Auto-generated method stub
 
 133                 super.initializeImageRegistry(reg);
 
 137          * @see org.eclipse.ui.plugin.AbstractUIPlugin#loadDialogSettings()
 
 139         protected void loadDialogSettings() {
 
 140                 // TODO Auto-generated method stub
 
 141                 super.loadDialogSettings();
 
 147          * @see org.eclipse.ui.plugin.AbstractUIPlugin#refreshPluginActions()
 
 149         protected void refreshPluginActions() {
 
 150                 // TODO Auto-generated method stub
 
 151                 super.refreshPluginActions();
 
 155          * @see org.eclipse.ui.plugin.AbstractUIPlugin#saveDialogSettings()
 
 157         protected void saveDialogSettings() {
 
 158                 // TODO Auto-generated method stub
 
 159                 super.saveDialogSettings();
 
 165          * @see org.eclipse.core.runtime.Plugin#shutdown()
 
 167         public void shutdown() throws CoreException {
 
 168                 // TODO Auto-generated method stub
 
 173          * @see org.eclipse.core.runtime.Plugin#startup()
 
 175         public void startup() throws CoreException {
 
 176                 // TODO Auto-generated method stub