use of de.janrufmonitor.ui.jface.application.history.History in project janrufmonitor by tbrandt77.
the class HistoryAction method run.
public void run() {
Viewer v = this.m_app.getApplication().getViewer();
if (v != null) {
IStructuredSelection selection = (IStructuredSelection) v.getSelection();
if (!selection.isEmpty()) {
Object o = selection.getFirstElement();
if (o instanceof ICall) {
o = ((ICall) o).getCaller();
}
if (o instanceof ICaller) {
History h = new History(((ICaller) o));
h.open();
}
}
}
}
Aggregations