--- a/core/com.nokia.carbide.cpp.sdk.ui/META-INF/MANIFEST.MF Thu Jul 29 15:30:00 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/META-INF/MANIFEST.MF Thu Jul 29 15:31:01 2010 -0500
@@ -12,7 +12,8 @@
com.nokia.carbide.cpp.sdk.core,
com.nokia.carbide.templatewizard,
com.nokia.cpp.utils.core,
- com.nokia.cpp.utils.ui
+ com.nokia.cpp.utils.ui,
+ com.nokia.carbide.discovery.ui;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Export-Package: com.nokia.carbide.cpp.internal.api.sdk.ui,
com.nokia.carbide.cpp.sdk.ui.shared
--- a/core/com.nokia.carbide.cpp.sdk.ui/plugin.xml Thu Jul 29 15:30:00 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/plugin.xml Thu Jul 29 15:31:01 2010 -0500
@@ -53,6 +53,14 @@
label="%carbcPreference.platformfiltering">
</keyword>
</extension>
+ <extension
+ point="com.nokia.carbide.discovery.ui.portalPageLayer">
+ <portalPageLayer
+ class="com.nokia.carbide.cpp.sdk.ui.SDKPreferencesPortalPageLayer"
+ pageId="com.nokia.carbide.discovery.ui.kitsPage"
+ title="SDKs">
+ </portalPageLayer>
+ </extension>
</plugin>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/SDKPreferencesPortalPageLayer.java Thu Jul 29 15:31:01 2010 -0500
@@ -0,0 +1,48 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+package com.nokia.carbide.cpp.sdk.ui;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IEditorPart;
+
+import com.nokia.carbide.cpp.internal.sdk.ui.SDKPreferencePage;
+import com.nokia.carbide.internal.discovery.ui.extension.IPortalPageLayer;
+
+@SuppressWarnings("restriction")
+public class SDKPreferencesPortalPageLayer implements IPortalPageLayer {
+
+ private SDKPreferencePage preferencePage;
+
+ public Control createControl(Composite parent, IEditorPart part) {
+ preferencePage = new SDKPreferencePage();
+ preferencePage.createControl(parent);
+ return preferencePage.getControl();
+ }
+
+ public void init() {
+ }
+
+ public IActionBar[] createCommandBars(IEditorPart part, IActionUIUpdater updater) {
+ return null;
+ }
+
+ public void dispose() {
+ preferencePage.dispose();
+ }
+
+}