3.x RC1 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / debug / core / PHPDebugModel.java
index 845a4be..45455ff 100644 (file)
@@ -46,9 +46,9 @@ public class PHPDebugModel {
         *
         * @return plugin identifier
         */
-       public static String getPluginIdentifier() {
-               return PHPDebugCorePlugin.getUniqueIdentifier();
-       }
+//     public static String getPluginIdentifier() {
+//             return PHPDebugCorePlugin.getUniqueIdentifier();
+//     }
        
        /**
         * Creates and returns a line breakpoint in the type with
@@ -85,11 +85,11 @@ public class PHPDebugModel {
                new PHPLineBreakpoint(resource, lineNumber, charStart, charEnd, hitCount, true, attributes);
        }
        
-       public static void createLineBreakpoint(IResource resource, int lineNumber, int hitCount, boolean register, Map attributes) throws CoreException {
+       public static PHPLineBreakpoint createLineBreakpoint(IResource resource, int lineNumber, int hitCount, boolean register, Map attributes) throws CoreException {
                if (attributes == null) {
                        attributes = new HashMap(10);
                }
-               new PHPLineBreakpoint(resource, lineNumber, hitCount, true, attributes);
+               return new PHPLineBreakpoint(resource, lineNumber, hitCount, true, attributes);
        }
        
 
@@ -105,7 +105,7 @@ public class PHPDebugModel {
         * @exception CoreException If this method fails.
         */
        public static PHPLineBreakpoint lineBreakpointExists(int lineNumber) throws CoreException {
-               String modelId= getPluginIdentifier();
+               String modelId= PHPDebugCorePlugin.PLUGIN_ID; // getPluginIdentifier();
                String markerType= PHPLineBreakpoint.getMarkerType();
                IBreakpointManager manager= DebugPlugin.getDefault().getBreakpointManager();
                IBreakpoint[] breakpoints= manager.getBreakpoints(modelId);