Skip to content

Commit

Permalink
Stash
Browse files Browse the repository at this point in the history
  • Loading branch information
ptziegler committed Apr 30, 2024
1 parent 121b2d5 commit 1234a65
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

/**
* A Canvas that contains {@link Figure Figures}.
Expand Down Expand Up @@ -117,6 +115,7 @@ public RootFigure getRootFigure() {
* Sets draw cached mode.
*/
public void setDrawCached(boolean value) {
System.out.println("m_drawCached -> " + value);
m_drawCached = value;
}

Expand All @@ -137,12 +136,7 @@ public Point computeSize(int wHint, int hHint, boolean changed) {
//
////////////////////////////////////////////////////////////////////////////
private void hookControlEvents() {
addListener(SWT.Dispose, new Listener() {
@Override
public void handleEvent(Event event) {
disposeBufferedImage();
}
});
addListener(SWT.Dispose, event -> disposeBufferedImage());
}

private void handlePaint(GC paintGC, int x, int y, int width, int height) {
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.wb.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<useUIThread>true</useUIThread>
<application>org.eclipse.ui.ide.workbench</application>
<includes>
<include>**/org.eclipse.wb.tests.designer.WindowBuilderTests.java</include>
<include>**/org.eclipse.wb.tests.designer.swt.model.menu.MenuProblemsTest.java</include>
</includes>
<dependencies>
<!-- required for PlatformAdmin to work-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void test_AsyncMessagesSupport_andMenuGEF() throws Exception {
*
* @throws Exception
*/
@Test
// @Test
public void test_cascadeSubMenu_andRCP() throws Exception {
CompositeInfo shellInfo =
openComposite(
Expand Down Expand Up @@ -170,7 +170,7 @@ public void test_cascadeSubMenu_andRCP() throws Exception {
* This case is not problem, because {@link EditPart} for {@link MenuInfo} is first, so we click
* it.
*/
@Test
// @Test
public void test_TableColumn_PopupMenu_menuFirst() throws Exception {
check_TableColumn_PopupMenu(
"public class Test extends Shell {",
Expand All @@ -196,7 +196,7 @@ public void test_TableColumn_PopupMenu_menuFirst() throws Exception {
* {@link EditPart} of {@link MenuInfo} is second, so we should place it on menu primary layer to
* make it above {@link TableColumnInfo}.
*/
@Test
// @Test
public void test_TableColumn_PopupMenu_menuSecond() throws Exception {
check_TableColumn_PopupMenu(
"public class Test extends Shell {",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public EventSender moveTo(int x, int y) {
Event event = createEvent(x, y, 0);
m_control.notifyListeners(SWT.MouseMove, event);
// process "async" runnables
waitEventLoop(10);
waitEventLoop(0);
return this;
}

Expand Down

0 comments on commit 1234a65

Please sign in to comment.