Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.papyrus.tabbedproperties.core/src/org/eclipse/papyrus/tabbedproperties/core/forms/HorizontalBox.java')
-rw-r--r--core/org.eclipse.papyrus.tabbedproperties.core/src/org/eclipse/papyrus/tabbedproperties/core/forms/HorizontalBox.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/core/org.eclipse.papyrus.tabbedproperties.core/src/org/eclipse/papyrus/tabbedproperties/core/forms/HorizontalBox.java b/core/org.eclipse.papyrus.tabbedproperties.core/src/org/eclipse/papyrus/tabbedproperties/core/forms/HorizontalBox.java
new file mode 100644
index 00000000000..3b8b06accd4
--- /dev/null
+++ b/core/org.eclipse.papyrus.tabbedproperties.core/src/org/eclipse/papyrus/tabbedproperties/core/forms/HorizontalBox.java
@@ -0,0 +1,55 @@
+/*****************************************************************************
+ * Copyright (c) 2008 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.tabbedproperties.core.forms;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants;
+
+/**
+ * This class is used to display all soons in a vertical order.
+ *
+ * @author Patrick Tessier
+ *
+ */
+public class HorizontalBox extends AbstractControlsGroup implements PropertyEditor {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void createDirectChildren() {
+
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Composite createLocalControls(Composite parent) {
+ Composite composite = getWidgetFactory().createComposite(parent);
+ if (parent instanceof ExpandableComposite) {
+ ((ExpandableComposite) parent).setClient(composite);
+ }
+ // Start of user code for create local controls
+ FillLayout layout = new FillLayout(SWT.HORIZONTAL);
+ layout.spacing = ITabbedPropertyConstants.HSPACE;
+ composite.setLayout(layout);
+ // End of user code for create local controls
+ return composite;
+ }
+
+}

Back to the top