Révision 2508
| tmp/org.txm.statsengine.core/src/org/txm/statsengine/core/StatsEngine.java (revision 2508) | ||
|---|---|---|
| 3 | 3 |
import org.txm.core.engines.Engine; |
| 4 | 4 |
import org.txm.core.results.TXMResult; |
| 5 | 5 |
|
| 6 |
//FIXME: useless class |
|
| 7 | 6 |
public abstract class StatsEngine implements Engine {
|
| 8 |
|
|
| 7 |
|
|
| 9 | 8 |
public static final String EXTENSION_POINT_ID = "org.txm.statsengine.core.StatsEngine"; //$NON-NLS-1$ |
| 10 |
|
|
| 9 |
|
|
| 11 | 10 |
@Override |
| 12 | 11 |
public abstract String getName(); |
| 13 | 12 |
|
| ... | ... | |
| 16 | 15 |
return; |
| 17 | 16 |
} |
| 18 | 17 |
|
| 18 |
@Override |
|
| 19 | 19 |
public String getDetails() {
|
| 20 | 20 |
return ""; |
| 21 | 21 |
} |
| tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/preferences/RPreferences.java (revision 2508) | ||
|---|---|---|
| 92 | 92 |
|
| 93 | 93 |
// FIXME: SJ: some code in this method should be done only at TXM first run |
| 94 | 94 |
|
| 95 |
|
|
| 96 | 95 |
Preferences preferences = this.getDefaultPreferencesNode(); |
| 97 | 96 |
|
| 98 | 97 |
preferences.putBoolean(IS_MANDATORY, false); |
| ... | ... | |
| 143 | 142 |
File rpluginDir = new File(bundleDir, "res"); //$NON-NLS-1$ |
| 144 | 143 |
File OSDir = new File(rpluginDir, os); |
| 145 | 144 |
File execFile = new File(OSDir, "bin/" + extraSubPath + "R" + ext); //$NON-NLS-1$ //$NON-NLS-2$ |
| 146 |
execFile.setExecutable(true); |
|
| 147 | 145 |
|
| 146 |
if (!execFile.setExecutable(true)) {
|
|
| 147 |
Log.severe(TXMCoreMessages.bind("Error while setting execution file rights to: {0}.", execFile.getAbsolutePath()));
|
|
| 148 |
} |
|
| 148 | 149 |
|
| 150 |
|
|
| 149 | 151 |
if (!osName.contains("windows")) { //$NON-NLS-1$
|
| 150 | 152 |
try {
|
| 151 | 153 |
Log.fine(TXMCoreMessages.bind("Setting execution file rights to: {0}.", OSDir.getAbsolutePath()));
|
| ... | ... | |
| 167 | 169 |
} |
| 168 | 170 |
|
| 169 | 171 |
if (!execFile.canExecute()) {
|
| 170 |
Log.severe(TXMCoreMessages.bind("File right setting error, can not execute: {0}.", execFile));
|
|
| 172 |
Log.severe(TXMCoreMessages.bind("File rights setting error, can not execute: {0}.", execFile));
|
|
| 171 | 173 |
return; |
| 172 | 174 |
} |
| 173 | 175 |
|
Formats disponibles : Unified diff