Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
public class TimeDataSearch extends PlotDataSearch<Instant>
{
/** Find a sample that's bigger or equal to given value
/** Find the sample closest to given value
* @param data Data, must already be locked
* @param time Time near which to look for sample.
* @return Returns index of sample closest to time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,18 +275,19 @@ public void scrollEnabled(final boolean scroll_enabled)

@Override
public void changedAnnotations()
{ setDirty(true); }
{
site.getShell().getDisplay().asyncExec(() -> setDirty(true));
}
};
model.addListener(model_listener);
}

/** Provide custom property sheet for this editor */
@SuppressWarnings("rawtypes")
@Override
public Object getAdapter(final Class adapter)
public <T> T getAdapter(final Class<T> adapter)
{
if (adapter == IPropertySheetPage.class)
return new DataBrowserPropertySheetPage(model, plot.getPlot().getUndoableActionManager());
return adapter.cast(new DataBrowserPropertySheetPage(model, plot.getPlot().getUndoableActionManager()));
return super.getAdapter(adapter);
}

Expand Down
Loading