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/MokaProjectSelectionComponent.java')
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaProjectSelectionComponent.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaProjectSelectionComponent.java b/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaProjectSelectionComponent.java
new file mode 100644
index 00000000000..c5b39c2bb4b
--- /dev/null
+++ b/extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaProjectSelectionComponent.java
@@ -0,0 +1,46 @@
+/*****************************************************************************
+ * 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.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Text;
+
+public final class MokaProjectSelectionComponent extends MokaGroupComponent{
+
+ private final static String PROJECT_SELECTION_BUTTON_NAME = "Browse...";
+
+ public Button projectSelectionButton;
+ public Text projectSelectionText;
+
+ public MokaProjectSelectionComponent(Composite parent, int style, String name, int columns) {
+ super(parent, style, name, columns);
+ this.createProjectionSelectionText();
+ this.createProjectSelectionButton();
+ }
+
+ private void createProjectSelectionButton(){
+ this.projectSelectionButton = new Button(this.group, SWT.NONE);
+ this.projectSelectionButton.setText(PROJECT_SELECTION_BUTTON_NAME);
+ this.projectSelectionButton.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, false, false));
+ }
+
+ private void createProjectionSelectionText(){
+ this.projectSelectionText = new Text(this.group, SWT.BORDER);
+ this.projectSelectionText.setEditable(false);
+ this.projectSelectionText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+ this.projectSelectionText.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
+ }
+} \ No newline at end of file

Back to the top