# HG changeset patch # User dadubrow # Date 1280435461 18000 # Node ID 4b40d8fd03b763ff1ea06d2ea1e636d7b9479a90 # Parent 743cc54fdffef9fd155675c3fb3378cb0141aed4 add portal page layer with sdk prefs diff -r 743cc54fdffe -r 4b40d8fd03b7 core/com.nokia.carbide.cpp.sdk.ui/META-INF/MANIFEST.MF --- 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 diff -r 743cc54fdffe -r 4b40d8fd03b7 core/com.nokia.carbide.cpp.sdk.ui/plugin.xml --- 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"> + + + + diff -r 743cc54fdffe -r 4b40d8fd03b7 core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/SDKPreferencesPortalPageLayer.java --- /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(); + } + +}