Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaGroupComponent.java')
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaGroupComponent.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaGroupComponent.java b/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaGroupComponent.java
new file mode 100644
index 00000000000..f64d3e16281
--- /dev/null
+++ b/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaGroupComponent.java
@@ -0,0 +1,39 @@
+/*****************************************************************************
+ * Copyright (c) 2014 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:
+ * CEA LIST - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.moka.ui.launch;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Group;
+
+public abstract class MokaGroupComponent extends Composite{
+
+ public Group group;
+
+ public MokaGroupComponent(Composite parent, int style, String name, int columns) {
+ super(parent, style);
+ this.setLayout(new GridLayout());
+ this.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ this.group = new Group(this, SWT.NONE);
+ this.initializeGroup(name, columns);
+ }
+
+ protected void initializeGroup(String name, int columns){
+ GridLayout layout = new GridLayout();
+ layout.numColumns = columns;
+ this.group.setText(name);
+ this.group.setLayout(layout);
+ this.group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ }
+}

Back to the top