diff options
author | Camilo Bernal | 2012-08-13 16:37:17 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2012-08-14 14:24:57 +0000 |
commit | c8c54cd6f9c13a78c42c8263e3a01c10dbb68190 (patch) | |
tree | 890a940081c41f10729cdf9064f72f1cff8e86b6 /oprofile | |
parent | f76f4f3b3fdba19a9c31de63078c97577348dab6 (diff) | |
download | org.eclipse.linuxtools-c8c54cd6f9c13a78c42c8263e3a01c10dbb68190.tar.gz org.eclipse.linuxtools-c8c54cd6f9c13a78c42c8263e3a01c10dbb68190.tar.xz org.eclipse.linuxtools-c8c54cd6f9c13a78c42c8263e3a01c10dbb68190.zip |
Remove check when creating control for Oprofile/Perf event tabs.
When creating control for Oprofile/Perf event tabs we do not need to
check for number of children in the parent composite, this condition
is only triggered when clicking on a snapshot configuration, which
does not require the resulting functionality of the condition.
Change-Id: I121f5111a0e11f22cdf2e26559b2ace2cc815b0d
Reviewed-on: https://git.eclipse.org/r/7205
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'oprofile')
-rw-r--r-- | oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/OprofileEventConfigTab.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/OprofileEventConfigTab.java b/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/OprofileEventConfigTab.java index 17d0410da5..715917352f 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/OprofileEventConfigTab.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/OprofileEventConfigTab.java @@ -86,16 +86,9 @@ public class OprofileEventConfigTab extends AbstractLaunchConfigurationTab { * @param parent the parent composite */ public void createControl(Composite parent) { - Composite top; - - if(parent.getChildren().length > 0){ - top = (Composite) parent.getChildren()[0]; - } else { - top = new Composite(parent, SWT.NONE); - setControl(top); - top.setLayout(new GridLayout()); - } - + Composite top = new Composite(parent, SWT.NONE); + setControl(top); + top.setLayout(new GridLayout()); this.top = top; } /** |