File tree Expand file tree Collapse file tree 4 files changed +7
-16
lines changed
org.eclipse.gef/src/org/eclipse/gef Expand file tree Collapse file tree 4 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2006, 2024 IBM Corporation and others.
2
+ * Copyright (c) 2006, 2025 IBM Corporation and others.
3
3
*
4
4
* This program and the accompanying materials are made available under the
5
5
* terms of the Eclipse Public License 2.0 which is available at
@@ -69,15 +69,6 @@ public static AbstractUIPlugin getDefault() {
69
69
return singleton ;
70
70
}
71
71
72
- /**
73
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
74
- */
75
- @ Override
76
- public void stop (BundleContext context ) throws Exception {
77
- savePluginPreferences ();
78
- super .stop (context );
79
- }
80
-
81
72
/**
82
73
* Convenience method for getting the current zoom level of the active device.If
83
74
* on MacOS or Linux (x11 window system) or if the device zoom couldn't
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public void widgetSelected(SelectionEvent event) {
296
296
widgets .put (Integer .valueOf (id ), button );
297
297
298
298
if (descriptor != null ) {
299
- button .setImage (new Image (parent .getDisplay (), descriptor . getImageData ()));
299
+ button .setImage (descriptor . createImage (parent .getDisplay ()));
300
300
button .addDisposeListener (e -> {
301
301
Image img = ((Button ) e .getSource ()).getImage ();
302
302
if (img != null && !img .isDisposed ()) {
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2000, 2024 IBM Corporation and others.
2
+ * Copyright (c) 2000, 2025 IBM Corporation and others.
3
3
*
4
4
* This program and the accompanying materials are made available under the
5
5
* terms of the Eclipse Public License 2.0 which is available at
@@ -253,7 +253,7 @@ public void widgetSelected(SelectionEvent event) {
253
253
widgets .put (Integer .valueOf (id ), button );
254
254
255
255
if (descriptor != null ) {
256
- button .setImage (new Image (parent .getDisplay (), descriptor . getImageData ()));
256
+ button .setImage (descriptor . createImage (parent .getDisplay ()));
257
257
button .addDisposeListener (e -> {
258
258
Image img = ((Button ) e .getSource ()).getImage ();
259
259
if (img != null && !img .isDisposed ()) {
Original file line number Diff line number Diff line change 1
1
/*******************************************************************************
2
- * Copyright (c) 2000, 2010 IBM Corporation and others.
2
+ * Copyright (c) 2000, 2025 IBM Corporation and others.
3
3
*
4
4
* This program and the accompanying materials are made available under the
5
5
* terms of the Eclipse Public License 2.0 which is available at
15
15
import java .util .HashMap ;
16
16
import java .util .Map ;
17
17
18
+ import org .eclipse .swt .SWT ;
18
19
import org .eclipse .swt .accessibility .ACC ;
19
20
import org .eclipse .swt .accessibility .AccessibleControlEvent ;
20
21
import org .eclipse .swt .accessibility .AccessibleControlListener ;
28
29
29
30
import org .eclipse .draw2d .EventDispatcher ;
30
31
import org .eclipse .draw2d .IFigure ;
31
- import org .eclipse .draw2d .InputEvent ;
32
32
import org .eclipse .draw2d .SWTEventDispatcher ;
33
33
import org .eclipse .draw2d .geometry .Point ;
34
34
@@ -409,7 +409,7 @@ public void dispatchMouseMoved(org.eclipse.swt.events.MouseEvent me) {
409
409
}
410
410
}
411
411
if (okToDispatch ()) {
412
- if ((me .stateMask & InputEvent . ANY_BUTTON ) != 0 ) {
412
+ if ((me .stateMask & SWT . BUTTON_MASK ) != 0 ) {
413
413
domain .mouseDrag (me , viewer );
414
414
} else {
415
415
domain .mouseMove (me , viewer );
You can’t perform that action at this time.
0 commit comments