@Override public void readExternal(@NotNull Element breakpointNode) throws InvalidDataException { super.readExternal(breakpointNode); //noinspection HardCodedStringLiteral // final String url = breakpointNode.getAttributeValue("url"); //noinspection HardCodedStringLiteral final String className = breakpointNode.getAttributeValue("class"); if (className != null) { myClassName = className; } //noinspection HardCodedStringLiteral final String packageName = breakpointNode.getAttributeValue("package"); if (packageName != null) { myPackageName = packageName; } // VirtualFile vFile = VirtualFileManager.getInstance().findFileByUrl(url); // if (vFile == null) { // throw new InvalidDataException(DebuggerBundle.message("error.breakpoint.file.not.found", // url)); // } // final Document doc = FileDocumentManager.getInstance().getDocument(vFile); // if (doc == null) { // throw new InvalidDataException(DebuggerBundle.message("error.cannot.load.breakpoint.file", // url)); // } // //// line number // final int line; // try { // //noinspection HardCodedStringLiteral // line = Integer.parseInt(breakpointNode.getAttributeValue("line")); // } // catch (Exception e) { // throw new InvalidDataException("Line number is invalid for breakpoint"); // } // if (line < 0) { // throw new InvalidDataException("Line number is invalid for breakpoint"); // } // // RangeHighlighter highlighter = createHighlighter(myProject, doc, line); // // if (highlighter == null) { // throw new InvalidDataException(""); // } // // myHighlighter = highlighter; // reload(); }
public void readExternal(Element parentNode) throws InvalidDataException { super.readExternal(parentNode); //noinspection HardCodedStringLiteral String className = parentNode.getAttributeValue("class_name"); myClassPattern = className; //noinspection HardCodedStringLiteral String methodName = parentNode.getAttributeValue("method_name"); myMethodName = methodName; if (className == null || methodName == null) { throw new InvalidDataException(); } }