fix compiler warnings

This commit is contained in:
2020-03-13 22:25:42 +01:00
parent c76805d133
commit 306e20d14f
10 changed files with 3 additions and 18 deletions

View File

@ -1,4 +1,3 @@
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\

View File

@ -139,6 +139,7 @@ public class AboutDialog extends Dialog {
// links are activated on mouse down when the control key is held down
// if ((event.stateMask & SWT.MOD1) != 0) {
try {
@SuppressWarnings("deprecation")
int offset = ((StyledText)event.widget).getOffsetAtLocation(new Point (event.x, event.y));
StyleRange style = ((StyledText)event.widget).getStyleRangeAtOffset(offset);
if (style != null && style.underline && style.underlineStyle == SWT.UNDERLINE_LINK) {

View File

@ -8,7 +8,6 @@ import java.util.List;
import com.minres.scviewer.database.IHierNode;
import com.minres.scviewer.database.IWaveform;
import com.minres.scviewer.database.IWaveformDb;
import com.minres.scviewer.database.IWaveformEvent;
import com.minres.scviewer.database.RelationType;
import com.minres.scviewer.e4.application.Messages;

View File

@ -301,7 +301,6 @@ public class WaveformViewer implements IFileChangeListener, IPreferenceChangeLis
});
*/
waveformPane.getWaveformControl().addListener(SWT.KeyDown, new Listener() {
@SuppressWarnings("null")
@Override
public void handleEvent(Event e) {
/*