use of org.yamcs.studio.core.TimeInterval in project yamcs-studio by yamcs.
the class Prefs method getInterval.
public TimeInterval getInterval() {
TimeInterval range;
try {
range = (TimeInterval) getObject(prefs, "archiveRange");
} catch (ClassNotFoundException e) {
// Keep this around for a while until we migrate prefs
range = null;
// to gson. TimeInterval was moved multiple times.
}
if (range == null) {
long missionTime = TimeCatalogue.getInstance().getMissionTime(true);
range = TimeInterval.starting(missionTime - 30 * 24 * 3600);
}
return range;
}
use of org.yamcs.studio.core.TimeInterval in project yamcs-studio by yamcs.
the class ArchiveView method receiveArchiveRecordsFinished.
public void receiveArchiveRecordsFinished() {
TimeInterval interval = archivePanel.getRequestedDataInterval();
new // FIXME new thread because currently RestClients syncs on the call thread causing deadlock
Thread() {
@Override
public void run() {
indexReceiver.getTag(interval);
}
}.start();
}
use of org.yamcs.studio.core.TimeInterval in project yamcs-studio by yamcs.
the class CreateReplayHandler method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
long missionTime = TimeCatalogue.getInstance().getMissionTime(true);
missionTime -= 30 * 1000;
TimeInterval interval = TimeInterval.starting(missionTime);
Display.getDefault().asyncExec(() -> {
CreateReplayDialog dialog = new CreateReplayDialog(Display.getCurrent().getActiveShell());
dialog.initialize(interval);
dialog.open();
});
return null;
}
Aggregations