Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2015-04-22 17:06:14 +0000
committerMarc Khouzam2015-04-22 17:06:14 +0000
commitd92be4a40e289e5acca4549b6535bc9d6ee8af6b (patch)
tree42bbfcee384cc41a438ba0d4c9aa1524ab02b7c6 /dsf-gdb/org.eclipse.cdt.examples.dsf.gdb
parent9a17afc6022ae2b15169635d769cba7d8a881b46 (diff)
downloadorg.eclipse.cdt-d92be4a40e289e5acca4549b6535bc9d6ee8af6b.tar.gz
org.eclipse.cdt-d92be4a40e289e5acca4549b6535bc9d6ee8af6b.tar.xz
org.eclipse.cdt-d92be4a40e289e5acca4549b6535bc9d6ee8af6b.zip
Clarify where the extra tab comes from
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Diffstat (limited to 'dsf-gdb/org.eclipse.cdt.examples.dsf.gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.examples.dsf.gdb/src/org/eclipse/cdt/examples/dsf/gdb/ui/ExtendedTab.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.examples.dsf.gdb/src/org/eclipse/cdt/examples/dsf/gdb/ui/ExtendedTab.java b/dsf-gdb/org.eclipse.cdt.examples.dsf.gdb/src/org/eclipse/cdt/examples/dsf/gdb/ui/ExtendedTab.java
index 028dd9dbb5b..2d6a59417eb 100644
--- a/dsf-gdb/org.eclipse.cdt.examples.dsf.gdb/src/org/eclipse/cdt/examples/dsf/gdb/ui/ExtendedTab.java
+++ b/dsf-gdb/org.eclipse.cdt.examples.dsf.gdb/src/org/eclipse/cdt/examples/dsf/gdb/ui/ExtendedTab.java
@@ -14,9 +14,14 @@ import org.eclipse.cdt.launch.ui.CLaunchConfigurationTab;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.internal.ui.IInternalDebugUIConstants;
+import org.eclipse.debug.internal.ui.SWTFactory;
import org.eclipse.debug.ui.DebugUITools;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
public class ExtendedTab extends CLaunchConfigurationTab {
@@ -37,6 +42,21 @@ public class ExtendedTab extends CLaunchConfigurationTab {
@Override
public void createControl(Composite parent) {
+ Composite comp = new Composite(parent, SWT.NONE);
+ setControl(comp);
+ GridLayout layout = new GridLayout();
+ comp.setLayout(layout);
+
+ SWTFactory.createVerticalSpacer(comp, 10);
+
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 1;
+ comp.setLayoutData(gd);
+ Label l = new Label(comp, SWT.NONE);
+ l.setText("This tab is contributed by org.eclipse.cdt.example.dsf.gdb"); //$NON-NLS-1$
+ gd = new GridData();
+ gd.horizontalSpan = 2;
+ l.setLayoutData(gd);
}
@Override

Back to the top