Révision 1795
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/utils/JobHandler.java (revision 1795) | ||
|---|---|---|
| 127 | 127 |
if (currentMonitor != null) {
|
| 128 | 128 |
currentMonitor.done(); |
| 129 | 129 |
} |
| 130 |
|
|
| 130 | 131 |
} |
| 131 | 132 |
|
| 132 | 133 |
public void acquireSemaphore() {
|
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenSVGGraph.java (revision 1795) | ||
|---|---|---|
| 47 | 47 |
import org.txm.rcp.editors.input.SVGGraphicEditorInput; |
| 48 | 48 |
import org.txm.rcp.messages.TXMUIMessages; |
| 49 | 49 |
import org.txm.rcp.swt.dialog.LastOpened; |
| 50 |
// TODO: Auto-generated Javadoc |
|
| 51 | 50 |
/** |
| 52 |
* open a SVG file in an editor @ author mdecorde. |
|
| 51 |
* open a SVG file in an editor |
|
| 52 |
* |
|
| 53 |
* @author mdecorde. |
|
| 53 | 54 |
*/ |
| 54 | 55 |
//FIXME: SJ: this class doesn't work anymore |
| 55 | 56 |
//FIXME: SJ: this souldn't use TXMEditor system |
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 1795) | ||
|---|---|---|
| 1032 | 1032 |
|
| 1033 | 1033 |
List<TXMResult> results = this.getResult().getDeepChildren(); |
| 1034 | 1034 |
|
| 1035 |
|
|
| 1036 | 1035 |
for (int i = 0; i < results.size(); i++) {
|
| 1037 | 1036 |
ArrayList<TXMEditor> editors = SWTEditorsUtils.getEditors(results.get(i)) ; |
| 1038 | 1037 |
for (int j = 0; j < editors.size(); j++) {
|
| tmp/org.txm.properties.core/src/org/txm/properties/core/functions/Properties.java (revision 1795) | ||
|---|---|---|
| 319 | 319 |
buff.append("<li> " + s + " : "); //$NON-NLS-1$ //$NON-NLS-2$
|
| 320 | 320 |
for (String v : propertiesValues.get(s)) |
| 321 | 321 |
buff.append(v + ", "); //$NON-NLS-1$ |
| 322 |
buff.append("..."); //$NON-NLS-1$
|
|
| 322 |
if (propertiesValues.get(s).size() >= this.pMaxPropertiesToDisplay) {
|
|
| 323 |
buff.append("..."); //$NON-NLS-1$
|
|
| 324 |
} |
|
| 323 | 325 |
buff.append("</li>\n"); //$NON-NLS-1$
|
| 324 | 326 |
} |
| 325 | 327 |
} |
| ... | ... | |
| 373 | 375 |
subbuffer.append("</li>\n"); //$NON-NLS-1$
|
| 374 | 376 |
} |
| 375 | 377 |
} |
| 378 |
|
|
| 379 |
if (properties.size() == 0) {
|
|
| 380 |
subbuffer.append("<p>--</p>\n"); //$NON-NLS-1$
|
|
| 381 |
} |
|
| 382 |
|
|
| 376 | 383 |
subbuffer.append("</ul>\n</li>\n"); //$NON-NLS-1$
|
| 377 | 384 |
if (nbOfValues > 0) {
|
| 378 | 385 |
buff.append(subbuffer); |
| tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/data/MatrixImpl.java (revision 1795) | ||
|---|---|---|
| 317 | 317 |
* @param colseparator the colseparator |
| 318 | 318 |
* @param txtseparator the txtseparator |
| 319 | 319 |
*/ |
| 320 |
@Deprecated |
|
| 320 | 321 |
public void exportData(File f, String colseparator, String txtseparator) {
|
| 321 | 322 |
try {
|
| 322 | 323 |
org.txm.statsengine.r.core.RWorkspace |
| ... | ... | |
| 615 | 616 |
t3 <- t2[1:nrow(t2),]; |
| 616 | 617 |
colnames(t3) <- header; |
| 617 | 618 |
*/ |
| 618 |
rw.voidEval("tmpmat <- as.matrix(read.table(file=\"" + path + "\", quote=\""+txtseparator.replace("\"", "\\\"")+"\", sep=\""+colseparator+"\", row.names=1, skip=1, fileEncoding=\""+encoding+"\"));"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
| 619 |
rw.voidEval("tmpheader <- scan(file=\"" + path + "\", what = character(), nlines=1, quote=\""+txtseparator.replace("\"", "\\\"")+"\", sep=\""+colseparator+"\", fileEncoding=\""+encoding+"\");"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
| 619 |
rw.voidEval("tmpmat <- as.matrix(read.table(file=\"" + path + "\", sep=\""+colseparator+"\", row.names=1, skip=1, fileEncoding=\""+encoding+"\"));"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
| 620 |
rw.voidEval("tmpheader <- scan(file=\"" + path + "\", what = character(), nlines=1, sep=\""+colseparator+"\", fileEncoding=\""+encoding+"\");"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
| 620 | 621 |
rw.voidEval("tmpheader <- tmpheader[2:length(tmpheader)];"); //$NON-NLS-1$
|
| 621 | 622 |
rw.voidEval("tmpmat <- tmpmat[1:nrow(tmpmat),];"); //$NON-NLS-1$
|
| 622 | 623 |
rw.voidEval("colnames(tmpmat) <- tmpheader"); //$NON-NLS-1$
|
| tmp/org.txm.edition.rcp/src/org/txm/edition/rcp/handlers/BackToText.java (revision 1795) | ||
|---|---|---|
| 339 | 339 |
return true; |
| 340 | 340 |
|
| 341 | 341 |
} catch (Exception err) {
|
| 342 |
Log.severe(NLS.bind("Full text display failed: {0}", err)); //$NON-NLS-1$
|
|
| 342 |
Log.severe(NLS.bind("** Text display failed: {0}", err)); //$NON-NLS-1$
|
|
| 343 | 343 |
Log.printStackTrace(err); |
| 344 | 344 |
} |
| 345 | 345 |
return false; |
Formats disponibles : Unified diff