release/2.1.2 #24
|
@ -249,6 +249,10 @@ public class WaveformViewer implements IFileChangeListener, IPreferenceChangeLis
|
||||||
});
|
});
|
||||||
waveformPane = factory.createPanel(parent);
|
waveformPane = factory.createPanel(parent);
|
||||||
waveformPane.setMaxTime(0);
|
waveformPane.setMaxTime(0);
|
||||||
|
|
||||||
|
//set selection to empty selection when opening a new waveformPane
|
||||||
|
selectionService.setSelection(new StructuredSelection());
|
||||||
|
|
||||||
waveformPane.addPropertyChangeListener(IWaveformViewer.CURSOR_PROPERTY, new PropertyChangeListener() {
|
waveformPane.addPropertyChangeListener(IWaveformViewer.CURSOR_PROPERTY, new PropertyChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void propertyChange(PropertyChangeEvent evt) {
|
public void propertyChange(PropertyChangeEvent evt) {
|
||||||
|
@ -268,11 +272,13 @@ public class WaveformViewer implements IFileChangeListener, IPreferenceChangeLis
|
||||||
eventBroker.post(WaveStatusBarControl.MARKER_DIFF, waveformPane.getScaledTime(cursor - time));
|
eventBroker.post(WaveStatusBarControl.MARKER_DIFF, waveformPane.getScaledTime(cursor - time));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
waveformPane.addSelectionChangedListener(new ISelectionChangedListener() {
|
waveformPane.addSelectionChangedListener(new ISelectionChangedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void selectionChanged(SelectionChangedEvent event) {
|
public void selectionChanged(SelectionChangedEvent event) {
|
||||||
if (event.getSelection() instanceof IStructuredSelection)
|
if (event.getSelection() instanceof IStructuredSelection) {
|
||||||
selectionService.setSelection(event.getSelection());
|
selectionService.setSelection(event.getSelection());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
waveformPane.getWaveformControl().addMouseTrackListener(new MouseTrackListener() {
|
waveformPane.getWaveformControl().addMouseTrackListener(new MouseTrackListener() {
|
||||||
|
|
Loading…
Reference in New Issue