File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
src/main/java/com/github/celldynamics/quimp/plugin/protanalysis Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import com .github .celldynamics .quimp .QParamsQconf ;
8
8
import com .github .celldynamics .quimp .QuimpException ;
9
+ import com .github .celldynamics .quimp .QuimpException .MessageSinkTypes ;
9
10
import com .github .celldynamics .quimp .filesystem .FileExtensions ;
10
11
import com .github .celldynamics .quimp .filesystem .QconfLoader ;
11
12
import com .github .celldynamics .quimp .plugin .qanalysis .STmap ;
12
13
import com .github .celldynamics .quimp .utils .graphics .PolarPlot ;
13
14
15
+ import ij .IJ ;
16
+
14
17
/**
15
18
* Action for generating polar plots for selected point.
16
19
*
@@ -57,6 +60,10 @@ public void actionPerformed(ActionEvent e) {
57
60
.toString ();
58
61
pp .generatePlot (fileToSave );
59
62
logger .info ("Polar plot saved in " + fileToSave );
63
+ if (ui .getModel ().getSink () == MessageSinkTypes .GUI
64
+ || ui .getModel ().getSink () == MessageSinkTypes .IJERROR ) {
65
+ IJ .log ("Polar plot saved in " + fileToSave );
66
+ }
60
67
h ++;
61
68
} catch (IOException ex ) {
62
69
new QuimpException (ex , ui .getModel ().getSink ()).handleException (null ,
Original file line number Diff line number Diff line change 13
13
14
14
import com .github .celldynamics .quimp .QParamsQconf ;
15
15
import com .github .celldynamics .quimp .QuimpException ;
16
+ import com .github .celldynamics .quimp .QuimpException .MessageSinkTypes ;
16
17
import com .github .celldynamics .quimp .filesystem .QconfLoader ;
17
18
import com .github .celldynamics .quimp .plugin .AbstractPluginOptions ;
18
19
import com .github .celldynamics .quimp .plugin .qanalysis .STmap ;
19
20
21
+ import ij .IJ ;
22
+
20
23
/**
21
24
* Action (referenced as ActionListener) for saving tracks to csv if "Track" button is hit.
22
25
*
@@ -62,9 +65,13 @@ public void actionPerformed(ActionEvent arg0) {
62
65
pw .flush ();
63
66
pw .close ();
64
67
logger .info ("Saved tracks in " + fileToSave .toString ());
68
+ if (ui .getModel ().getSink () == MessageSinkTypes .GUI
69
+ || ui .getModel ().getSink () == MessageSinkTypes .IJERROR ) {
70
+ IJ .log ("Saved tracks in " + fileToSave .toString ());
71
+ }
65
72
} catch (IOException e ) {
66
73
new QuimpException (e , ui .getModel ().getSink ()).handleException (null ,
67
- "Exception thrown when saving maps " );
74
+ "Exception thrown when saving tracks " );
68
75
break ;
69
76
}
70
77
}
You can’t perform that action at this time.
0 commit comments