import net.sourceforge.phpeclipse.xdebug.php.launching.IXDebugConstants;
-//import org.eclipse.ui.plugin.AbstractUIPlugin;// *;
import org.eclipse.ui.preferences.ScopedPreferenceStore;
-//import org.eclipse.core.resources.IWorkspace;
-//import org.eclipse.core.resources.ResourcesPlugin;
-//import org.eclipse.core.resources.IWorkspace;
-//import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Plugin;
-//import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.IBreakpointManager;
import org.eclipse.debug.core.model.IBreakpoint;
import org.eclipse.jface.preference.IPreferenceStore;
-//import org.eclipse.jface.resource.ImageDescriptor;
import org.osgi.framework.BundleContext;
public class XDebugCorePlugin extends Plugin {
* The constructor.
*/
public XDebugCorePlugin() {
+ super();
plugin = this;
}
return plugin;
}
- /*public static IWorkspace getWorkspace() {
- return ResourcesPlugin.getWorkspace();
- }*/
-
public static IBreakpoint[] getBreakpoints() {
return getBreakpointManager().getBreakpoints(IXDebugConstants.ID_PHP_DEBUG_MODEL);
}
- public static /*static*/ IBreakpointManager getBreakpointManager() {
+ public static IBreakpointManager getBreakpointManager() {
return DebugPlugin.getDefault().getBreakpointManager();
- }
+ }
public static void log(int severity, String message) {
Status status = new Status(severity, PLUGIN_ID, IStatus.OK, message, null) ;
return PLUGIN_ID;
}
- public void setProxyPort(int port) {
+ /*public void setProxyPort(int port) {
if(fXDebugProxy!=null) {
if (fXDebugProxy.isRunning()) {
fXDebugProxy.stop();
}
fXDebugProxy=null;
}
- }
+ }*/
public XDebugProxy getXDebugProxy() {
if (fXDebugProxy == null) {