Search in sources :

Example 1 with LockRangeDialog

use of org.eclipse.tracecompass.internal.tmf.ui.views.xychart.LockRangeDialog in project tracecompass by tracecompass.

the class TmfChartView method createClampAction.

private IAction createClampAction() {
    Action action = new Action(Messages.TmfChartView_LockYAxis, IAction.AS_PUSH_BUTTON) {

        @Override
        public void run() {
            LockRangeDialog rangeDialog = new LockRangeDialog(getSite().getShell(), getChartViewer());
            rangeDialog.open();
        }
    };
    action.setChecked(false);
    return action;
}
Also used : IAction(org.eclipse.jface.action.IAction) Action(org.eclipse.jface.action.Action) LockRangeDialog(org.eclipse.tracecompass.internal.tmf.ui.views.xychart.LockRangeDialog)

Aggregations

Action (org.eclipse.jface.action.Action)1 IAction (org.eclipse.jface.action.IAction)1 LockRangeDialog (org.eclipse.tracecompass.internal.tmf.ui.views.xychart.LockRangeDialog)1