[yocto] [PATCH 5/8] plugins/sdk.ide: Added empty yocto preference page to project properties
mail at timomueller.eu
mail at timomueller.eu
Tue Dec 4 01:22:20 PST 2012
From: Timo Mueller <timo.mueller at bmw-carit.de>
Adds an empty preference page to projects with the YoctoSDKNature. This
preference page is shown in the standard project properties dialog and
will later allow modifying the yocto settings of the project.
---
.../OSGI-INF/l10n/bundle.properties | 1 +
plugins/org.yocto.sdk.ide/plugin.xml | 14 +++++++++
.../preferences/YoctoSDKProjectPropertyPage.java | 29 ++++++++++++++++++++
3 files changed, 44 insertions(+), 0 deletions(-)
create mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
diff --git a/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties b/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties
index d0bf9b7..a7172be 100644
--- a/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties
+++ b/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties
@@ -5,5 +5,6 @@ command.name = ReconfigureYoctoProject
command.label.0 = Change Yocto Project Settings
command.mnemonic = C
projectType.name.0 = Yocto Project ADT Project
+projectProperties.label.0 = Yocto Project Settings
Bundle-Vendor = yoctoproject.org
Bundle-Name = Yocto Plugin IDE
diff --git a/plugins/org.yocto.sdk.ide/plugin.xml b/plugins/org.yocto.sdk.ide/plugin.xml
index c540b9b..6548ae2 100644
--- a/plugins/org.yocto.sdk.ide/plugin.xml
+++ b/plugins/org.yocto.sdk.ide/plugin.xml
@@ -180,5 +180,19 @@
id="org.yocto.sdk.ide.YoctoConsole">
</CBuildConsole>
</extension>
+ <extension
+ point="org.eclipse.ui.propertyPages">
+ <page
+ adaptable="true"
+ class="org.yocto.sdk.ide.preferences.YoctoSDKProjectPropertyPage"
+ id="org.yocto.sdk.ide.page"
+ name="%projectProperties.label.0"
+ objectClass="org.eclipse.core.resources.IProject">
+ <filter
+ name="projectNature"
+ value="org.yocto.sdk.ide.YoctoSDKNature">
+ </filter>
+ </page>
+ </extension>
</plugin>
diff --git a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
new file mode 100644
index 0000000..265c8dc
--- /dev/null
+++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2012 BMW Car IT GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BMW Car IT GmbH - initial implementation
+ *******************************************************************************/
+package org.yocto.sdk.ide.preferences;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IWorkbenchPropertyPage;
+import org.eclipse.ui.dialogs.PropertyPage;
+
+public class YoctoSDKProjectPropertyPage extends PropertyPage implements
+ IWorkbenchPropertyPage {
+
+ public YoctoSDKProjectPropertyPage() {
+ }
+
+ @Override
+ protected Control createContents(Composite parent) {
+ return null;
+ }
+
+}
--
1.7.7.6
More information about the yocto
mailing list