Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Sean-M 2013-02-13 15:56:58 -05:00
commit 81aaae09e0
4 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,3 @@
OpenIDE-Module-Name=Timeline
CTL_MakeTimeline="Make Timeline (Beta)"
TimelineProgressDialog.jLabel1.text=Computing timeline . . .
TimelineProgressDialog.jLabel1.text=Creating timeline . . .

View File

@ -430,6 +430,7 @@ public class Simile2 extends CallableSystemAction implements Presenter.Toolbar,
ObservableList<BarChart.Data> bcData = makeObservableListByMonthAllDays(me, ye.getYear());
BarChart.Series<String, Number> series = new BarChart.Series(bcData);
series.setName(me.getMonthName() + " " + ye.getYear());
ObservableList<BarChart.Series<String, Number>> ol = FXCollections.observableArrayList(series);
@ -457,6 +458,10 @@ public class Simile2 extends CallableSystemAction implements Presenter.Toolbar,
dataResult.setNode(d);
}
});
//set result viewer title path with the current date
String dateString = ye.getYear() + "-" + (1+me.getMonthInt()) + "-" + + de.dayNum;
dataResult.setPath(dateString);
}
});
}
@ -906,6 +911,7 @@ public class Simile2 extends CallableSystemAction implements Presenter.Toolbar,
private String makeMacTime(String pathToBodyFile) {
String macpath = "";
final String machome = macRoot.getAbsolutePath();
pathToBodyFile = PlatformUtil.getOSFilePath(pathToBodyFile);
if (PlatformUtil.isWindowsOS()) {
macpath = machome + java.io.File.separator + "mactime.exe";
macpath = PlatformUtil.getOSFilePath(macpath);
@ -914,7 +920,8 @@ public class Simile2 extends CallableSystemAction implements Presenter.Toolbar,
}
String macfile = moduleDir.getAbsolutePath() + java.io.File.separator + mactimeFileName;
macfile = PlatformUtil.getOSFilePath(macfile);
String command = macpath + " -b " + "\"" + pathToBodyFile + "\"" + " -d " + " -y " + ">" + "\"" + macfile + "\"";
String command = macpath + " -b " + pathToBodyFile + " -d " + " -y " + "> " + macfile;
try {
JavaSystemCaller.Exec.execute("\"" + command + "\"");
} catch (InterruptedException ie) {

View File

@ -26,7 +26,7 @@
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="51" max="-2" attributes="0"/>
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace pref="121" max="32767" attributes="0"/>
<EmptySpace pref="131" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>

View File

@ -99,7 +99,7 @@ public class TimelineProgressDialog extends javax.swing.JDialog {
.addGroup(layout.createSequentialGroup()
.addGap(51, 51, 51)
.addComponent(jLabel1)
.addContainerGap(121, Short.MAX_VALUE))
.addContainerGap(131, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)