From c962d1b35dc84793a028cc4d4dec29c6ae3d1a5e Mon Sep 17 00:00:00 2001 From: Patrick Ziegler Date: Tue, 29 Jul 2025 19:05:49 +0200 Subject: [PATCH] Disable "Basic UI" mode by default With https://github.com/eclipse-windowbuilder/windowbuilder/pull/156, a new mode was added that supresses e.g. the buttons generated in the error dialog. This mode is activated via a preference, but can't be done within the UI. Meaning that those buttons are never visible to the user and thus make error reporting more difficult. Given that this was added as a new functionality, the mode needs to be opt-in, rather than opt-out. --- .../wb/internal/core/editor/errors/ExceptionComposite.java | 4 ++-- .../wb/internal/core/editor/errors/WarningComposite.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/ExceptionComposite.java b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/ExceptionComposite.java index 56975bc38..393afc96d 100644 --- a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/ExceptionComposite.java +++ b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/ExceptionComposite.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2023 Google, Inc. + * Copyright (c) 2011, 2025 Google, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -64,7 +64,7 @@ public ExceptionComposite(Composite parent, int style) { wbBasic = InstanceScope.INSTANCE.getNode( IEditorPreferenceConstants.WB_BASIC_UI_PREFERENCE_NODE).getBoolean( IEditorPreferenceConstants.WB_BASIC_UI, - true); + false); // create GUI elements GridLayoutFactory.create(this); { diff --git a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/WarningComposite.java b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/WarningComposite.java index 999fc49be..b4d453d0c 100644 --- a/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/WarningComposite.java +++ b/org.eclipse.wb.core/src/org/eclipse/wb/internal/core/editor/errors/WarningComposite.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2023 Google, Inc. + * Copyright (c) 2011, 2025 Google, Inc. and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at @@ -57,7 +57,7 @@ public WarningComposite(Composite parent, int style) { wbBasic = InstanceScope.INSTANCE.getNode( IEditorPreferenceConstants.WB_BASIC_UI_PREFERENCE_NODE).getBoolean( IEditorPreferenceConstants.WB_BASIC_UI, - true); + false); GridLayoutFactory.create(this); { Composite titleComposite = new Composite(this, SWT.NONE);