| 130 | } |
| 131 | |
| 132 | private String parseHTML(String s) { |
| 133 | if (IJ.debugMode) IJ.log("parseHTML:\n"+s); |
| 134 | int index1 = s.indexOf("src=\""); |
| 135 | if (index1>=0) { |
| 136 | int index2 = s.indexOf("\"", index1+5); |
| 137 | if (index2>0) |
| 138 | return s.substring(index1+5, index2); |
| 139 | } |
| 140 | index1 = s.indexOf("href=\""); |
| 141 | if (index1>=0) { |
| 142 | int index2 = s.indexOf("\"", index1+6); |
| 143 | if (index2>0) |
| 144 | return s.substring(index1+6, index2); |
| 145 | } |
| 146 | return s; |
| 147 | } |
| 148 | |
| 149 | @AstroImageJ(reason = "Custom status", modified = true) |
| 150 | public void dragEnter(DropTargetDragEvent e) { |