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.net.MalformedURLException;
11 import java.util.ResourceBundle;
13 import org.eclipse.core.runtime.CoreException;
14 import org.eclipse.core.runtime.IPluginDescriptor;
15 import org.eclipse.jface.dialogs.IDialogSettings;
16 import org.eclipse.jface.preference.IPreferenceStore;
17 import org.eclipse.jface.resource.ImageDescriptor;
18 import org.eclipse.jface.resource.ImageRegistry;
19 import org.eclipse.ui.IWorkbench;
20 import org.eclipse.ui.plugin.AbstractUIPlugin;
23 * @author Ali Echihabi
25 * To change the template for this generated type comment go to
26 * Window>Preferences>Java>Code Generation>Code and Comments
28 public class PHPUnitPlugin extends AbstractUIPlugin {
32 private static PHPUnitPlugin plugin;
33 private ResourceBundle resourceBundle;
39 public PHPUnitPlugin(IPluginDescriptor descriptor) {
49 public static PHPUnitPlugin getDefault() {
54 * @see org.eclipse.ui.plugin.AbstractUIPlugin#createImageRegistry()
56 protected ImageRegistry createImageRegistry() {
57 // TODO Auto-generated method stub
58 return super.createImageRegistry();
62 * @see org.eclipse.ui.plugin.AbstractUIPlugin#getDialogSettings()
64 public IDialogSettings getDialogSettings() {
65 // TODO Auto-generated method stub
66 return super.getDialogSettings();
70 * @see org.eclipse.ui.plugin.AbstractUIPlugin#getImageRegistry()
72 public ImageRegistry getImageRegistry() {
73 // TODO Auto-generated method stub
74 return super.getImageRegistry();
78 * @see org.eclipse.ui.plugin.AbstractUIPlugin#getPreferenceStore()
80 public IPreferenceStore getPreferenceStore() {
81 // TODO Auto-generated method stub
82 return super.getPreferenceStore();
86 * @see org.eclipse.ui.plugin.AbstractUIPlugin#getWorkbench()
88 public IWorkbench getWorkbench() {
89 // TODO Auto-generated method stub
90 return super.getWorkbench();
94 * @see org.eclipse.core.runtime.Plugin#initializeDefaultPluginPreferences()
96 protected void initializeDefaultPluginPreferences() {
97 // TODO Auto-generated method stub
98 super.initializeDefaultPluginPreferences();
102 * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore)
104 protected void initializeDefaultPreferences(IPreferenceStore store) {
105 // TODO Auto-generated method stub
106 super.initializeDefaultPreferences(store);
110 * @see org.eclipse.ui.plugin.AbstractUIPlugin#initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry)
112 protected void initializeImageRegistry(ImageRegistry reg) {
113 // TODO Auto-generated method stub
114 super.initializeImageRegistry(reg);
118 * @see org.eclipse.ui.plugin.AbstractUIPlugin#loadDialogSettings()
120 protected void loadDialogSettings() {
121 // TODO Auto-generated method stub
122 super.loadDialogSettings();
128 * @see org.eclipse.ui.plugin.AbstractUIPlugin#refreshPluginActions()
130 protected void refreshPluginActions() {
131 // TODO Auto-generated method stub
132 super.refreshPluginActions();
136 * @see org.eclipse.ui.plugin.AbstractUIPlugin#saveDialogSettings()
138 protected void saveDialogSettings() {
139 // TODO Auto-generated method stub
140 super.saveDialogSettings();
146 * @see org.eclipse.core.runtime.Plugin#shutdown()
148 public void shutdown() throws CoreException {
149 // TODO Auto-generated method stub
154 * @see org.eclipse.core.runtime.Plugin#startup()
156 public void startup() throws CoreException {
157 // TODO Auto-generated method stub
164 public static ImageDescriptor getImageDescriptor(String name) {
166 String iconPath = "icons/";
168 URL installURL = getDefault().getDescriptor().getInstallURL();
169 URL url = new URL(installURL, iconPath + name);
171 System.out.println("url:" + url.toExternalForm());
173 return ImageDescriptor.createFromURL(url);
174 } catch (MalformedURLException e) {
176 return ImageDescriptor.getMissingImageDescriptor();