Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2014-05-28 14:09:31 +0000
committerChristian W. Damus2014-05-28 14:10:22 +0000
commitf43f1804c19acc5a596a14ae4d573fef16fc1865 (patch)
tree83848bdd16add0a374c9355eaf6ff0d120a6ec3c /plugins/views/properties
parent8a0af2cfa2fc71373b60ca4792c72cde99fe7d35 (diff)
downloadorg.eclipse.papyrus-f43f1804c19acc5a596a14ae4d573fef16fc1865.tar.gz
org.eclipse.papyrus-f43f1804c19acc5a596a14ae4d573fef16fc1865.tar.xz
org.eclipse.papyrus-f43f1804c19acc5a596a14ae4d573fef16fc1865.zip
435420: [Widgets] Clicking a CCombo pastes the selected element's name into it
https://bugs.eclipse.org/bugs/show_bug.cgi?id=435420 Work around a bug in the responder chain management in the Cocoa implementation of SWT.
Diffstat (limited to 'plugins/views/properties')
-rw-r--r--plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java
index f70516c3677..074caeaf9e0 100644
--- a/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java
+++ b/plugins/views/properties/org.eclipse.papyrus.views.properties/src/org/eclipse/papyrus/views/properties/xwt/XWTSection.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
+ * Copyright (c) 2010, 2014 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -8,6 +8,8 @@
*
* Contributors:
* Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ * Christian W. Damus (CEA) - bug 435420
+ *
*****************************************************************************/
package org.eclipse.papyrus.views.properties.xwt;
@@ -21,6 +23,7 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.infra.constraints.ConstraintDescriptor;
import org.eclipse.papyrus.infra.constraints.constraints.Constraint;
import org.eclipse.papyrus.infra.constraints.runtime.ConstraintFactory;
+import org.eclipse.papyrus.infra.widgets.editors.EditorParentComposite;
import org.eclipse.papyrus.views.properties.Activator;
import org.eclipse.papyrus.views.properties.contexts.Section;
import org.eclipse.papyrus.views.properties.contexts.View;
@@ -74,7 +77,7 @@ public class XWTSection extends AbstractPropertySection implements IChangeListen
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
- self = new Composite(parent, SWT.NONE);
+ self = new EditorParentComposite(parent, SWT.NONE);
GridLayout layout = new GridLayout(1, false);
layout.marginHeight = 0;

Back to the top