Révision 3244
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/commands/StructuresIndexMacro.groovy (revision 3244) | ||
---|---|---|
503 | 503 |
//display the SVG results graphic |
504 | 504 |
monitor.syncExec(new Runnable() { |
505 | 505 |
@Override |
506 |
public void run() { try { OpenSVGGraph.OpenSVGFile(SVGFilePath, "Longueur des structures de "+corpusName) } catch(Exception e) {e.printStackTrace()} }
|
|
506 |
public void run() { try { OpenBrowser.openfile(SVGFilePath) } catch(Exception e) {e.printStackTrace()} }
|
|
507 | 507 |
}) |
508 | 508 |
} catch (Exception e) { |
509 | 509 |
println "** Error: "+e |
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/Index2barplotMacro.groovy (revision 3244) | ||
---|---|---|
41 | 41 |
//display the graphic |
42 | 42 |
monitor.syncExec(new Runnable() { |
43 | 43 |
@Override |
44 |
public void run() { OpenSVGGraph.OpenSVGFile(file.getAbsolutePath(), "Distribution") }
|
|
44 |
public void run() { OpenBrowser.openfile(file.getAbsolutePath()) }
|
|
45 | 45 |
}); |
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/ExecRMacro.groovy (revision 3244) | ||
---|---|---|
41 | 41 |
//display the graphic |
42 | 42 |
monitor.syncExec(new Runnable() { |
43 | 43 |
@Override |
44 |
public void run() { OpenSVGGraph.OpenSVGFile(file.getAbsolutePath(), "Distribution") }
|
|
44 |
public void run() { OpenBrowser.openfile(file.getAbsolutePath()) }
|
|
45 | 45 |
}); |
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/PlotSpecifMacro.groovy (revision 3244) | ||
---|---|---|
101 | 101 |
if (display_chart) { |
102 | 102 |
monitor.syncExec(new Runnable() { |
103 | 103 |
@Override |
104 |
public void run() { OpenSVGGraph.OpenSVGFile(file.getAbsolutePath(), "Specificity distribution") }
|
|
104 |
public void run() { OpenBrowser.openfile(file.getAbsolutePath()) }
|
|
105 | 105 |
}); |
106 | 106 |
} |
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ProgressionSample.groovy (revision 3244) | ||
---|---|---|
60 | 60 |
progression10.toSvg(svgFile10, RDevice.SVG); |
61 | 61 |
progression16.toSvg(svgFile16, RDevice.SVG); |
62 | 62 |
|
63 |
OpenSVGGraph.OpenSVGFile(svgFile5.getAbsolutePath(), "progression5") |
|
64 |
OpenSVGGraph.OpenSVGFile(svgFile10.getAbsolutePath(), "progression10") |
|
65 |
OpenSVGGraph.OpenSVGFile(svgFile16.getAbsolutePath(), "progression16") |
|
63 |
monitor.syncExec(new Runnable() { |
|
64 |
@Override |
|
65 |
public void run() { |
|
66 |
OpenBrowser.openfile(svgFile5.getAbsolutePath()) |
|
67 |
OpenBrowser.openfile(svgFile10.getAbsolutePath()) |
|
68 |
OpenBrowser.openfile(svgFile16.getAbsolutePath()) |
|
69 |
} |
|
70 |
}); |
|
71 |
|
tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/prototypes/ExecuteRscript.groovy (revision 3244) | ||
---|---|---|
32 | 32 |
// $LastChangedBy:$ |
33 | 33 |
// |
34 | 34 |
import org.txm.statsengine.r.core.RWorkspace |
35 |
import org.txm.rcp.commands.OpenBrowser |
|
35 | 36 |
// import org.txm.rcp.commands.* |
36 | 37 |
// uncomment for test |
37 | 38 |
|
... | ... | |
59 | 60 |
// draw the graphic in a new window of TXM |
60 | 61 |
monitor.syncExec(new Runnable() { |
61 | 62 |
@Override |
62 |
public void run() { OpenSVGGraph.OpenSVGFile(f.getAbsolutePath(), "sample plot") }
|
|
63 |
public void run() { OpenBrowser.openfile(f.getAbsolutePath()) }
|
|
63 | 64 |
}); |
64 | 65 |
|
65 | 66 |
|
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenGraph.java (revision 3244) | ||
---|---|---|
109 | 109 |
File graphfile = new File(filepath); |
110 | 110 |
if (filepath.endsWith(".svg") || filepath.endsWith(".SVG")) //$NON-NLS-1$ //$NON-NLS-2$ |
111 | 111 |
{ |
112 |
return OpenSVGGraph.OpenSVGFile(filepath, editorname);
|
|
112 |
return OpenBrowser.openfile(filepath);
|
|
113 | 113 |
} |
114 | 114 |
else if (filepath.endsWith(".png") || filepath.endsWith(".PNG") || //$NON-NLS-1$ //$NON-NLS-2$ |
115 | 115 |
filepath.endsWith(".jpg") || filepath.endsWith(".JPG") || //$NON-NLS-1$ //$NON-NLS-2$ |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/ParametersManager.java (revision 3244) | ||
---|---|---|
308 | 308 |
else if ("CreateFile".equals(widgetName) || "FileSave".equals(widgetName)) { //$NON-NLS-1$ |
309 | 309 |
value = new File(stringValue); |
310 | 310 |
} |
311 |
else if ("Folder".equals(widgetName)) { //$NON-NLS-1$ |
|
311 |
else if ("Folder".equals(widgetName) || "Directory".equals(widgetName)) { //$NON-NLS-1$
|
|
312 | 312 |
value = new File(stringValue); |
313 | 313 |
} |
314 | 314 |
else if ("Query".equals(widgetName)) { //$NON-NLS-1$ |
tmp/org.txm.index.core/groovy/org/txm/macro/r/ExecRMacro.groovy (revision 3244) | ||
---|---|---|
23 | 23 |
r.plot(file,script)println"Result saved in: "+file.getAbsolutePath() |
24 | 24 |
|
25 | 25 |
// display the graphic |
26 |
monitor.syncExec(new Runnable(){@Override public void run(){OpenSVGGraph.OpenSVGFile(file.getAbsolutePath(),"Specificity distribution")}}); |
|
26 |
monitor.syncExec(new Runnable(){@Override public void run(){OpenBrowser.openfile(file.getAbsolutePath())}}); |
tmp/org.txm.analec.rcp/src/org/txm/macro/urs/exploit/UnitsIndexMacro.groovy (revision 3244) | ||
---|---|---|
277 | 277 |
@Override |
278 | 278 |
public void run() { try { |
279 | 279 |
if (UnitsIndexMacro.this.output_histogram) { |
280 |
//OpenSVGGraph.OpenSVGFile(file.getAbsolutePath(), selection.toString()+" Units") |
|
281 | 280 |
OpenBrowser.openfile(file.getAbsolutePath()) |
282 | 281 |
} |
283 | 282 |
if (UnitsIndexMacro.this.output_lexicaltable) { |
Formats disponibles : Unified diff