MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / run

Method run

ij/src/main/java/ij/plugin/RoiReader.java:17–31  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

15 final int polygon=0, rect=1, oval=2, line=3,freeLine=4, segLine=5, noRoi=6,freehand=7, traced=8;
16
17 public void run(String arg) {
18 OpenDialog od = new OpenDialog("Open ROI...", arg);
19 String dir = od.getDirectory();
20 String name = od.getFileName();
21 if (name==null)
22 return;
23 try {
24 openRoi(dir, name);
25 } catch (IOException e) {
26 String msg = e.getMessage();
27 if (msg==null || msg.equals(""))
28 msg = ""+e;
29 IJ.error("ROI Reader", msg);
30 }
31 }
32
33 public void openRoi(String dir, String name) throws IOException {
34 String path = dir+name;

Callers

nothing calls this directly

Calls 6

getDirectoryMethod · 0.95
getFileNameMethod · 0.95
openRoiMethod · 0.95
errorMethod · 0.95
getMessageMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected