import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
-import org.eclipse.jface.text.IDocument;
+//import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.texteditor.IEditorStatusLine;
-import org.eclipse.ui.texteditor.ITextEditor;
+//import org.eclipse.ui.texteditor.ITextEditor;
/**
* Toggles a line breakpoint in a Java editor.
ITextSelection textSelection = (ITextSelection) selection;
// IType type = getType(textSelection);
IEditorInput editorInput = editorPart.getEditorInput();
- IDocument document = ((ITextEditor) editorPart)
- .getDocumentProvider().getDocument(editorInput);
+// IDocument document = ((ITextEditor) editorPart)
+// .getDocumentProvider().getDocument(editorInput);
int lineNumber = textSelection.getStartLine() + 1;
- int offset = textSelection.getOffset();
+ //int offset = textSelection.getOffset();
try {
// if (type == null) {
// IClassFile classFile=
// breakpoint, true );
//
PHPLineBreakpoint existingBreakpoint = PHPDebugModel
- .lineBreakpointExists(lineNumber); // typeName,
+ .lineBreakpointExists(resource, lineNumber); // typeName,
// lineNumber);
if (existingBreakpoint != null) {
DebugPlugin.getDefault().getBreakpointManager()
public static String resolveMethodSignature(IType type,
String methodSignature) throws JavaModelException {
String[] parameterTypes = Signature.getParameterTypes(methodSignature);
- int length = length = parameterTypes.length;
+ int length = parameterTypes.length;
String[] resolvedParameterTypes = new String[length];
for (int i = 0; i < length; i++) {