# HG changeset patch # User timkelly # Date 1274997590 18000 # Node ID 7fc85d03006afb7ec421013f0ddb4a088d99e6c1 # Parent 46e446d635ccbdd62178d23167fc3c2016ba9a35 fix bug 11390 diff -r 46e446d635cc -r 7fc85d03006a core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/shared/BuildTargetsPage.java --- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/shared/BuildTargetsPage.java Thu May 27 13:16:19 2010 -0500 +++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/shared/BuildTargetsPage.java Thu May 27 16:59:50 2010 -0500 @@ -239,7 +239,6 @@ if (Window.OK == PreferencesUtil.createPreferenceDialogOn(getShell(), "com.nokia.carbide.cpp.sdk.ui.preferences.BuildPlatformFilterPage", null, null, 0).open()){ //$NON-NLS-1$ inited = false; setVisible(true); - drawSDKConfigView(getControl().getParent()); TemplateSDKFilter filter = filterCheckbox.getSelection() ? templateFilter : null; filteringContentProviderWrapper.setFilter(filter); @@ -256,11 +255,10 @@ private void drawSDKConfigView(Composite parent) { - if (viewer == null){ - viewer = new ContainerCheckedTreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); - viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH)); - viewer.setLabelProvider(new LabelProvider()); - } + viewer = new ContainerCheckedTreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); + viewer.getTree().setLayoutData(new GridData(GridData.FILL_BOTH)); + viewer.setLabelProvider(new LabelProvider()); + TreeNodeContentProvider treeNodeContentProvider = new TreeNodeContentProvider(); filteringContentProviderWrapper = new FilteringContentProviderWrapper(treeNodeContentProvider);