Skip to contentSkip to conversation

Add neon-master

PATCH New Tim Orling 1 participant 9 messages Aug 11, 2016

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

cover Add neon-master

[YOCTO #9562]
Minimum required java version for Neon is 1.8.

[YOCTO #9907]
Update to latest Eclipse release (Neon v4.6).

[YOCTO #9908]
Cleanup excessive number of compiler warnings.

This series is also staged at:
http://git.yoctoproject.org/cgit/cgit.cgi/eclipse-poky-contrib/log/?h=neon-master-next

Tim Orling (8):
Update to Neon (4.6.0) release
fix the build
add script to update java version; update all to JavaSE-1.8 org.yocto.sdk/feature.xml: clean up unused dependencies org.yocto.bc.ui: cleanup unused imports; fix generics warnings org.yocto.remote.utils: fix or supress warnings org.yocto.sdk.ide: remove InvokeAction usage org.yocto.sdk.remotetools: SubProgressMonitor -> SubMonitor

 .../org.yocto.bc.headless.build/build.properties   |   4 +-
 .../org.yocto.doc.headless.build/build.properties  |   4 +-
 .../org.yocto.sdk.headless.build/build.properties  |   4 +-
 features/org.yocto.sdk/feature.xml                 |   3 -
 .../build.properties                               |   4 +-
 plugins/org.yocto.bc.ui/.classpath                 |   2 +-
 plugins/org.yocto.bc.ui/META-INF/MANIFEST.MF       |   6 +-
 .../src/org/yocto/bc/bitbake/BBRecipe.java         |  12 +-
 .../src/org/yocto/bc/bitbake/BBSession.java        | 126 +++++++++++----------
 .../org/yocto/bc/bitbake/ProjectInfoHelper.java    |   3 -
 .../src/org/yocto/bc/ui/Activator.java             |  37 +++---
 .../ui/actions/AbstractBitbakeCommandAction.java   |   5 +-
 .../yocto/bc/ui/actions/LaunchToasterDialog.java   |  17 +--
 .../bc/ui/actions/LaunchVariableWizardAction.java  |   3 +-
 .../org/yocto/bc/ui/builder/BitbakeBuilder.java    |   6 +-
 .../yocto/bc/ui/builder/ToggleNatureAction.java    |   5 +-
 .../src/org/yocto/bc/ui/decorators/ReadOnly.java   |   9 +-
 .../bc/ui/editors/bitbake/BBVariableTextHover.java |   2 +-
 .../yocto/bc/ui/filesystem/CustomLocalFile.java    |   1 +
 .../src/org/yocto/bc/ui/filesystem/OEFile.java     |   4 +-
 .../org/yocto/bc/ui/filesystem/OEFileSystem.java   |   6 +-
 .../org/yocto/bc/ui/filesystem/OEIgnoreFile.java   |  11 +-
 .../src/org/yocto/bc/ui/filesystem/Policy.java     |   4 +-
 .../perspectives/BitbakeCommanderPerspective.java  |  13 +--
 .../org/yocto/bc/ui/popup/actions/NewAction.java   |   1 -
 .../yocto/bc/ui/views/RecipeContentProvider.java   |   7 +-
 .../src/org/yocto/bc/ui/views/RecipeView.java      |   2 -
 .../bc/ui/wizards/BitbakeRecipeUIElement.java      |   6 +-
 .../org/yocto/bc/ui/wizards/FiniteStateWizard.java |  10 +-
 .../yocto/bc/ui/wizards/FiniteStateWizardPage.java |  26 ++---
 .../bc/ui/wizards/NewBitBakeFileRecipeWizard.java  |   5 +-
 .../ui/wizards/NewBitBakeFileRecipeWizardPage.java |  13 +--
 .../ui/wizards/importProject/BBCProjectPage.java   |   2 +-
 .../importProject/ImportYoctoProjectWizard.java    |  11 +-
 .../yocto/bc/ui/wizards/install/InstallWizard.java |  16 +--
 .../yocto/bc/ui/wizards/install/OptionsPage.java   |  19 +---
 .../BBConfigurationInitializeOperation.java        |   1 -
 .../newproject/CreateBBCProjectOperation.java      |   4 +-
 .../yocto/bc/ui/wizards/variable/VariablePage.java |  13 ++-
 .../bc/ui/wizards/variable/VariableWizard.java     |   8 +-
 plugins/org.yocto.cmake.managedbuilder/.classpath  |   2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |   6 +-
 .../META-INF/MANIFEST.MF                           |   5 +-
 plugins/org.yocto.doc.user/.classpath              |   2 +-
 plugins/org.yocto.doc.user/META-INF/MANIFEST.MF    |   2 +-
 plugins/org.yocto.remote.utils/.classpath          |   2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |   6 +-
 .../org.yocto.remote.utils/META-INF/MANIFEST.MF    |   2 +-
 .../org/yocto/remote/utils/OutputProcessor.java    |   2 +
 .../src/org/yocto/remote/utils/RemoteHelper.java   |  31 ++---
 .../src/org/yocto/remote/utils/RemoteMachine.java  |   9 +-
 .../org/yocto/remote/utils/TerminalHandler.java    |   1 +
 plugins/org.yocto.sdk.ide.doc.user/.classpath      |   2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |   6 +-
 .../META-INF/MANIFEST.MF                           |   2 +-
 plugins/org.yocto.sdk.ide/.classpath               |   2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |   6 +-
 plugins/org.yocto.sdk.ide/META-INF/MANIFEST.MF     |   3 +-
 plugins/org.yocto.sdk.ide/build.properties         |   3 +-
 .../src/org/yocto/sdk/ide/YoctoSDKChecker.java     |   1 -
 .../yocto/sdk/ide/actions/InvokeSyncAction.java    | 110 ------------------
 .../yocto/sdk/ide/actions/ReconfigYoctoAction.java |  44 -------
 .../sdk/ide/actions/ReconfigYoctoHandler.java      |  71 ++++--------
 .../natures/YoctoSDKAutotoolsProjectNature.java    |   1 +
 .../src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java |   5 -
 plugins/org.yocto.sdk.remotetools/.classpath       |   2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |   6 +-
 .../org.yocto.sdk.remotetools/META-INF/MANIFEST.MF |   2 +-
 plugins/org.yocto.sdk.remotetools/build.properties |   3 +-
 .../org/yocto/sdk/remotetools/YoctoJSONHelper.java |   6 +
 .../yocto/sdk/remotetools/actions/BaseModel.java   |  12 +-
 .../sdk/remotetools/actions/OprofileModel.java     |   6 +-
 .../sdk/remotetools/actions/PowertopModel.java     |   6 +-
 .../sdk/remotetools/actions/SystemtapHandler.java  |   2 +
 .../actions/SystemtapSettingDialog.java            |   1 +
 .../yocto/sdk/remotetools/actions/Ust2Model.java   |  16 +--
 .../yocto/sdk/remotetools/views/BaseFileView.java  |   1 +
 .../sdk/remotetools/views/TerminalViewTab.java     |   6 +-
 .../sdk/remotetools/views/TerminalViewer.java      |   3 +-
 .../remotetools/wizards/bsp/PropertiesPage.java    |   1 +
 scripts/build.sh                                   |   9 +-
 scripts/change-java-version.sh                     |  94 +++++++++++++++
 scripts/setup.sh                                   |  36 +++---
 83 files changed, 432 insertions(+), 541 deletions(-)
 delete mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/InvokeSyncAction.java
 delete mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoAction.java
 create mode 100755 scripts/change-java-version.sh
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/8 Update to Neon (4.6.0) release

[YOCTO #9907]

---
 scripts/build.sh |  2 +-
 scripts/setup.sh | 36 +++++++++++++++++++-----------------
 2 files changed, 20 insertions(+), 18 deletions(-)
scripts/build.sh +1 -1
index cc696e7..4cbb273 100755
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-#setup Yocto Eclipse plug-in build environment for Mars
+#setup Yocto Eclipse plug-in build environment for Neon
 #comment out the following line if you wish to use your own http proxy settings
 #export http_proxy=http://proxy.yourproxyinfo.com:8080
 
scripts/setup.sh +19 -17
index 233309f..30f4463 100755
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-#setup Yocto Eclipse plug-in build environment for Mars
+#setup Yocto Eclipse plug-in build environment for Neon
 #comment out the following line if you wish to use your own http proxy settings
 #export http_proxy=http://proxy.yourproxyinfo.com:8080
 
@@ -69,12 +69,12 @@ fi
 
 # prepare the base Eclipse installation in folder "eclipse"
 ep_rel="R-"
-ep_ver="4.5.2"
-ep_date="-201602121500"
+ep_ver="4.6"
+ep_date="-201606061100"
 P2_disabled=false
 P2_no_dropins=false
 
-if [ ! -f eclipse/plugins/org.eclipse.swt_3.104.2.v20160212-1350.jar ]; then
+if [ ! -f eclipse/plugins/org.eclipse.swt_3.105.0.v20160603-0902.jar ]; then
 
   pushd .
 
@@ -222,38 +222,40 @@ update_feature_remote()
 #Main Site
 if [[ "$1" = "--upstream" ]]
 then
-        MAIN_SITE="http://download.eclipse.org/releases/mars"
-        DEPRECATED_SITE="http://download.eclipse.org/releases/luna"
+        MAIN_SITE="http://download.eclipse.org/releases/neon"
+        DEPRECATED_SITE="http://download.eclipse.org/releases/mars"
         TM_SITE="http://download.eclipse.org/tm/updates/4.0/GA"
+        TM_TERMINAL_SITE="http://download.eclipse.org/tm/terminal/marketplace"
 else
         MAIN_SITE="http://downloads.yoctoproject.org/eclipse/mars/"
-        TM_SITE="http://downloads.yoctoproject.org/eclipse/tm/updates/4.0/"
         DEPRECATED_SITE="http://downloads.yoctoproject.org/eclipse/luna/ftp.osuosl.org/pub/eclipse/releases/luna"
+        TM_SITE="http://downloads.yoctoproject.org/eclipse/tm/updates/4.0/"
+        TM_TERMINAL_SITE="http://downloads.yoctoproject.org/eclipse/tm/terminal/marketplace"
 fi
 
 #Update Site - always use updates from upstream
-UPDATE_SITE="http://download.eclipse.org/eclipse/updates/4.5"
+UPDATE_SITE="http://download.eclipse.org/eclipse/updates/4.6"
 
 #CDT related
 echo -e "\nPlease wait. Installing CDT.SDK.FEATURE.GROUP"
-CDTFEAT="8.8.1"
+CDTFEAT="9.0.0"
 update_feature_remote ${MAIN_SITE} org.eclipse.cdt.sdk.feature.group ${CDTFEAT}
 
 echo -e "\nPlease wait. Installing CDT.LAUNCH.REMOTE.FEATURE.GROUP"
-CDTREMOTEVER="8.8.1"
+CDTREMOTEVER="9.0.0"
 update_feature_remote ${MAIN_SITE} org.eclipse.cdt.launch.remote.feature.group ${CDTREMOTEVER}
 
 #TM Terminal (was RSE) related
 echo -e "\nPlease wait. Installing TM.TERMINAL.FEATURE.FEATURE.GROUP"
-TMTERMVER="4.0.0"
-update_feature_remote ${MAIN_SITE} org.eclipse.tm.terminal.feature.feature.group ${TMTERMVER}
+TMTERMVER="4.1.0"
+update_feature_remote ${TM_TERMINAL_SITE} org.eclipse.tm.terminal.feature.feature.group ${TMTERMVER}
 
 echo -e "\nPlease wait. Installing TM.TERMINAL.VIEW.RSE.FEATURE.GROUP"
-TMTERMVIEWRSEVER="4.0.0"
-update_feature_remote ${MAIN_SITE} org.eclipse.tm.terminal.view.rse.feature.feature.group ${TMTERMVIEWRSEVER}
+TMTERMVIEWRSEVER="4.1.0"
+update_feature_remote ${TM_TERMINAL_SITE} org.eclipse.tm.terminal.view.rse.feature.feature.group ${TMTERMVIEWRSEVER}
 
 echo -e "\nPlease wait. Installing TM.TERMINAL.CONTROL.FEATURE.GROUP"
-TMCONTROLVER="4.0.0"
+TMCONTROLVER="4.1.0"
 update_feature_remote ${MAIN_SITE} org.eclipse.tm.terminal.control.feature.feature.group ${TMCONTROLVER}
 
 #RSE_SDK
@@ -268,10 +270,10 @@ update_feature_remote ${TM_SITE} org.eclipse.rse.terminals.feature.group ${RSETE
 
 #AUTOTOOLS
 echo -e "\nPlease wait. Installing AUTOTOOLS.FEATURE.GROUP"
-ATVER="8.8.1"
+ATVER="9.0.0"
 update_feature_remote ${MAIN_SITE} org.eclipse.cdt.autotools.feature.group ${ATVER}
 
-#Lttng2 
+#Lttng2
 TMF_CTF_REL="1.0.0"
 echo -e "\nPlease wait. Installing TRACECOMPASS.LTTNG2.UST.FEATURE.GROUP"
 update_feature_remote ${MAIN_SITE} org.eclipse.tracecompass.lttng2.ust.feature.group ${TMF_CTF_REL}
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH 2/8 fix the build

In reply to Tim Orling

- scripts/build.sh: explicitly build org.yocto.utils
- also drop org.eclipse.cdt.debug.mi (upstream change)

---
 plugins/org.yocto.bc.ui/META-INF/MANIFEST.MF                       | 2 +-
 plugins/org.yocto.sdk.ide/META-INF/MANIFEST.MF                     | 1 -
 .../src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java                 | 5 -----
 scripts/build.sh                                                   | 7 ++++++-
 4 files changed, 7 insertions(+), 8 deletions(-)
plugins/org.yocto.bc.ui/META-INF/MANIFEST.MF +1 -1
index 4922f30..213d80f 100644
@@ -16,7 +16,7 @@ Require-Bundle: org.eclipse.ui,
  org.eclipse.ui.ide,
  org.eclipse.ui.console,
  org.eclipse.core.filesystem,
- org.yocto.remote.utils;bundle-version="1.0.0"
+ org.yocto.remote.utils
 Eclipse-LazyStart: true
 Bundle-ClassPath: .
 Import-Package: org.eclipse.rse.core.model,
plugins/org.yocto.sdk.ide/META-INF/MANIFEST.MF +0 -1
index b0972ba..92741e0 100644
@@ -14,7 +14,6 @@ Require-Bundle: org.eclipse.ui,
  org.eclipse.rse.ui;bundle-version="3.3.100",
  org.eclipse.rse.subsystems.files.core;bundle-version="3.3.1",
  org.eclipse.cdt.launch.remote;bundle-version="2.4.0",
- org.eclipse.cdt.debug.mi.core;bundle-version="7.3.0",
  org.eclipse.cdt.debug.core;bundle-version="7.3.0",
  org.eclipse.cdt.debug.ui;bundle-version="7.3.0",
  org.eclipse.ui.ide;bundle-version="3.9.0",
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/utils/YoctoSDKUtils.java +0 -5
index d49281e..d4ee8ab 100644
@@ -38,7 +38,6 @@ import org.eclipse.cdt.core.model.CoreModel;
 import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
 import org.eclipse.cdt.core.settings.model.ICProjectDescription;
 import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
-import org.eclipse.cdt.debug.mi.core.IMILaunchConfigurationConstants;
 import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants;
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.runtime.CoreException;
@@ -337,14 +336,10 @@ public class YoctoSDKUtils {
 			ILaunchConfigurationWorkingCopy w_copy = configType.newInstance(project, configName);
 			Set<String> modes=new HashSet<String>();
 			modes.add("debug");
-			w_copy.setAttribute(IMILaunchConfigurationConstants.ATTR_GDB_INIT, sDebugInitFile); // CDI
 			w_copy.setAttribute(IGDBLaunchConfigurationConstants.ATTR_GDB_INIT, sDebugInitFile); // DSF
-			w_copy.setAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_AUTO_SOLIB, false); // CDI
 			w_copy.setAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_AUTO_SOLIB, false); // DSF
-			w_copy.setAttribute(IMILaunchConfigurationConstants.ATTR_DEBUG_NAME, strDebugger); // CDI
 			w_copy.setAttribute(IGDBLaunchConfigurationConstants.ATTR_DEBUG_NAME, strDebugger); // DSF
 
-			w_copy.setAttribute(IMILaunchConfigurationConstants.ATTR_DEBUGGER_PROTOCOL, "mi"); // CDI
 
 			w_copy.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, projectName);
 			if (!project.hasNature(YoctoSDKEmptyProjectNature.YoctoSDK_EMPTY_NATURE_ID)) {
scripts/build.sh +6 -1
index 4cbb273..c8969b8 100755
@@ -132,14 +132,17 @@ cd ${TOP}
 echo -e "\nGenerate Yocto documentation\n"
 ${GIT_DIR}/scripts/generate-doc.sh ${DOC_REF} ${GIT_DIR} || fail $? "generate documentation"
 
-#build 
+#build
+java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.utils.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} || fail $? "normal build"
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.bc.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} || fail $? "normal build"
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.doc.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} || fail $? "normal build"
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.sdk.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} || fail $? "normal build"
 
 if [ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.sdk-${RELEASE}.zip ] &&
+	[ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.utils-${RELEASE}.zip ] &&
 	[ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.bc-${RELEASE}.zip ] &&
 	[ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.doc-${RELEASE}.zip ]; then
+  cp -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.utils-${RELEASE}.zip ./org.yocto.bc-${RELEASE}-${DATE}.zip
   cp -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.bc-${RELEASE}.zip ./org.yocto.bc-${RELEASE}-${DATE}.zip
   cp -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.doc-${RELEASE}.zip ./org.yocto.doc-${RELEASE}-${DATE}.zip
   cp -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.sdk-${RELEASE}.zip ./org.yocto.sdk-${RELEASE}-${DATE}.zip
@@ -149,12 +152,14 @@ else
 fi
 
 #build archive for update site
+java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.utils.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} -Dp2.gathering=true || fail $? "archive build"
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.bc.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} -Dp2.gathering=true || fail $? "archive build"
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.doc.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} -Dp2.gathering=true || fail $? "archive build"
 java -jar ${LAUNCHER} -application org.eclipse.ant.core.antRunner -buildfile ${BUILDFILE} -DbaseLocation=${ECLIPSE_BASE} -Dbuilder=${GIT_DIR}/features/org.yocto.sdk.headless.build -DbuildDirectory=${BUILD_DIR} -DotherSrcDirectory=${GIT_DIR} -DbuildId=${RELEASE} -Dp2.gathering=true || fail $? "archive build"
 
 #clean up
 if [ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.sdk-${RELEASE}-group.group.group.zip ] &&
+	[ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.utils-${RELEASE}-group.group.group.zip ] &&
 	[ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.bc-${RELEASE}-group.group.group.zip ] &&
 	[ -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.doc-${RELEASE}-group.group.group.zip ]; then
   cp -f ${BUILD_DIR}/I.${RELEASE}/org.yocto.sdk-${RELEASE}-group.group.group.zip ./org.yocto.sdk-${RELEASE}-${DATE}-archive.zip
Signature · 1 line
2.7.4
author
#3 lore raw

PATCH 3/8 add script to update java version; update all to JavaSE-1.8

In reply to Tim Orling

[YOCTO #9562]

Minimum required java version for Neon is 1.8

---
 .../org.yocto.bc.headless.build/build.properties   |  4 +-
 .../org.yocto.doc.headless.build/build.properties  |  4 +-
 .../org.yocto.sdk.headless.build/build.properties  |  4 +-
 .../build.properties                               |  4 +-
 plugins/org.yocto.bc.ui/.classpath                 |  2 +-
 plugins/org.yocto.bc.ui/META-INF/MANIFEST.MF       |  2 +-
 plugins/org.yocto.cmake.managedbuilder/.classpath  |  2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |  6 +-
 .../META-INF/MANIFEST.MF                           |  5 +-
 plugins/org.yocto.doc.user/.classpath              |  2 +-
 plugins/org.yocto.doc.user/META-INF/MANIFEST.MF    |  2 +-
 plugins/org.yocto.remote.utils/.classpath          |  2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |  6 +-
 .../org.yocto.remote.utils/META-INF/MANIFEST.MF    |  2 +-
 plugins/org.yocto.sdk.ide.doc.user/.classpath      |  2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |  6 +-
 .../META-INF/MANIFEST.MF                           |  2 +-
 plugins/org.yocto.sdk.ide/.classpath               |  2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |  6 +-
 plugins/org.yocto.sdk.ide/META-INF/MANIFEST.MF     |  2 +-
 plugins/org.yocto.sdk.ide/build.properties         |  3 +-
 plugins/org.yocto.sdk.remotetools/.classpath       |  2 +-
 .../.settings/org.eclipse.jdt.core.prefs           |  6 +-
 .../org.yocto.sdk.remotetools/META-INF/MANIFEST.MF |  2 +-
 plugins/org.yocto.sdk.remotetools/build.properties |  3 +-
 scripts/change-java-version.sh                     | 94 ++++++++++++++++++++++
 26 files changed, 137 insertions(+), 40 deletions(-)
 create mode 100755 scripts/change-java-version.sh
features/org.yocto.bc.headless.build/build.properties +2 -2
index 7c27054..20995d4 100644
@@ -247,10 +247,10 @@ javacVerbose=true
 #compilerArg=
 
 # Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
-javacSource=1.7
+javacSource=1.8
 
 # Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
-javacTarget=1.7
+javacTarget=1.8
 
 #individualSourceBundles=true
 
features/org.yocto.doc.headless.build/build.properties +2 -2
index 8ffd039..99d8322 100644
@@ -247,10 +247,10 @@ javacVerbose=true
 #compilerArg=
 
 # Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
-javacSource=1.7
+javacSource=1.8
 
 # Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
-javacTarget=1.7
+javacTarget=1.8
 
 #individualSourceBundles=true
 
features/org.yocto.sdk.headless.build/build.properties +2 -2
index 1e8e6ca..4b64f41 100644
@@ -247,10 +247,10 @@ javacVerbose=true
 #compilerArg=
 
 # Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
-javacSource=1.7
+javacSource=1.8
 
 # Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
-javacTarget=1.7
+javacTarget=1.8
 
 #individualSourceBundles=true
 
features/org.yocto.utils.headless.build/build.properties +2 -2
index 9c3e516..f9bc94b 100644
@@ -247,10 +247,10 @@ javacVerbose=true
 #compilerArg=
 
 # Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
-javacSource=1.7
+javacSource=1.8
 
 # Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
-javacTarget=1.7
+javacTarget=1.8
 
 #individualSourceBundles=true
 
plugins/org.yocto.bc.ui/.classpath +1 -1
index 3bc2475..22f3064 100644
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
plugins/org.yocto.bc.ui/META-INF/MANIFEST.MF +1 -1
index 213d80f..7b725ca 100644
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
 Bundle-Name: %Bundle-Name
 Bundle-SymbolicName: org.yocto.bc.ui;singleton:=true
 Bundle-Version: 1.4.1.qualifier
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
 Bundle-Activator: org.yocto.bc.ui.Activator
 Bundle-Vendor: %Bundle-Vendor
 Require-Bundle: org.eclipse.ui,
plugins/org.yocto.cmake.managedbuilder/.classpath +1 -1
index 098194c..eca7bdb 100644
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="src" path="src"/>
 	<classpathentry kind="output" path="bin"/>
plugins/org.yocto.cmake.managedbuilder/.settings/org.eclipse.jdt.core.prefs +3 -3
index 56e2566..ce97b29 100644
@@ -1,8 +1,8 @@
 #Wed Jul 14 11:43:59 CEST 2010
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8
plugins/org.yocto.cmake.managedbuilder/META-INF/MANIFEST.MF +4 -1
index fd1e3de..6a1193a 100644
@@ -12,5 +12,8 @@ Require-Bundle: org.eclipse.cdt.managedbuilder.core,
  org.eclipse.ui.console;bundle-version="3.5.0",
  org.eclipse.ui;bundle-version="3.6.2",
  org.yocto.sdk.ide
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
 Bundle-ActivationPolicy: lazy
+Export-Package: org.yocto.cmake.managedbuilder,
+ org.yocto.cmake.managedbuilder.job,
+ org.yocto.cmake.managedbuilder.util
plugins/org.yocto.doc.user/.classpath +1 -1
index 67e2a52..075009d 100644
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
plugins/org.yocto.doc.user/META-INF/MANIFEST.MF +1 -1
index c8cd638..f6833a0 100644
@@ -6,4 +6,4 @@ Bundle-Version: 1.4.1.qualifier
 Bundle-ClassPath: org.yocto.doc.user
 Bundle-Vendor: %Bundle-Vendor
 Require-Bundle: org.eclipse.help
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
plugins/org.yocto.remote.utils/.classpath +1 -1
index 098194c..eca7bdb 100644
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="src" path="src"/>
 	<classpathentry kind="output" path="bin"/>
plugins/org.yocto.remote.utils/.settings/org.eclipse.jdt.core.prefs +3 -3
index f42de36..0c68a61 100644
@@ -1,7 +1,7 @@
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8
plugins/org.yocto.remote.utils/META-INF/MANIFEST.MF +1 -1
index db9150c..f60cc96 100644
@@ -11,7 +11,7 @@ Require-Bundle: org.eclipse.ui,
  org.eclipse.rse.subsystems.terminals.core;bundle-version="1.0.300";visibility:=reexport,
  org.eclipse.rse.ui
 Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
 Import-Package: org.eclipse.core.internal.filesystem,
  org.eclipse.core.internal.resources,
  org.eclipse.core.resources,
plugins/org.yocto.sdk.ide.doc.user/.classpath +1 -1
index 67e2a52..075009d 100644
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
plugins/org.yocto.sdk.ide.doc.user/.settings/org.eclipse.jdt.core.prefs +3 -3
index 1232d8e..65fc94b 100644
@@ -1,8 +1,8 @@
 #Fri Mar 04 13:59:33 CET 2011
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8
plugins/org.yocto.sdk.ide.doc.user/META-INF/MANIFEST.MF +1 -1
index 0215a52..d420c28 100644
@@ -6,4 +6,4 @@ Bundle-Version: 1.4.1.qualifier
 Bundle-ClassPath: org.yocto.sdk.ide.doc.user
 Bundle-Vendor: %Bundle-Vendor
 Require-Bundle: org.eclipse.ui.cheatsheets
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
plugins/org.yocto.sdk.ide/.classpath +1 -1
index 098194c..eca7bdb 100644
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="src" path="src"/>
 	<classpathentry kind="output" path="bin"/>
plugins/org.yocto.sdk.ide/.settings/org.eclipse.jdt.core.prefs +3 -3
index e779f8b..efa0708 100644
@@ -1,8 +1,8 @@
 #Mon May 03 15:24:21 PDT 2010
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8
plugins/org.yocto.sdk.ide/META-INF/MANIFEST.MF +1 -1
index 92741e0..077ba87 100644
@@ -26,7 +26,7 @@ Require-Bundle: org.eclipse.ui,
  org.eclipse.cdt.managedbuilder.ui;bundle-version="8.2.0",
  org.eclipse.core.expressions;bundle-version="3.4.500",
  org.eclipse.cdt.dsf.gdb;bundle-version="4.7.0"
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
 Bundle-ActivationPolicy: lazy
 Export-Package: org.yocto.sdk.ide,
  org.yocto.sdk.ide.natures,
plugins/org.yocto.sdk.ide/build.properties +1 -2
index e763a45..738398f 100644
@@ -5,5 +5,4 @@ bin.includes = META-INF/,\
                plugin.xml,\
                templates/,\
                OSGI-INF/
-src.includes = templates/,\
-               OSGI-INF/
+src.includes = templates/
plugins/org.yocto.sdk.remotetools/.classpath +1 -1
index d95593a..f49769d 100644
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="lib" path="lib/json-simple-1.1.1.jar"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
 	<classpathentry kind="src" path="src"/>
 	<classpathentry kind="output" path="bin"/>
plugins/org.yocto.sdk.remotetools/.settings/org.eclipse.jdt.core.prefs +3 -3
index 120d493..cbe8361 100644
@@ -1,8 +1,8 @@
 #Wed Aug 11 12:07:02 CST 2010
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8
plugins/org.yocto.sdk.remotetools/META-INF/MANIFEST.MF +1 -1
index 48864ad..10e0975 100644
@@ -11,7 +11,7 @@ Require-Bundle: org.eclipse.ui,
  org.eclipse.ui.console;bundle-version="3.5.100",
  org.eclipse.tracecompass.tmf.core;bundle-version="1.2.0"
 Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
 Import-Package: org.eclipse.core.resources,
  org.eclipse.rse.internal.terminals.ui,
  org.eclipse.rse.internal.terminals.ui.views,
plugins/org.yocto.sdk.remotetools/build.properties +2 -1
index de68275..1d21e82 100644
@@ -6,5 +6,6 @@ bin.includes = plugin.xml,\
                icons/,\
                OSGI-INF/l10n/bundle.properties,\
                lib/,\
-               lib/json-simple-1.1.1.jar
+               lib/json-simple-1.1.1.jar,\
+               OSGI-INF/
 src.includes = lib/
scripts/change-java-version.sh new file +94 -0

94 lines not on this page · raw message

Signature · 1 line
2.7.4
author
#4 lore raw

PATCH 4/8 org.yocto.sdk/feature.xml: clean up unused dependencies

In reply to Tim Orling

[YOCTO #9908]

---
 features/org.yocto.sdk/feature.xml | 3 ---
 1 file changed, 3 deletions(-)
features/org.yocto.sdk/feature.xml +0 -3
index 9ab19af..f0f4e38 100644
@@ -67,9 +67,6 @@
       <import plugin="org.eclipse.ui.ide"/>
       <import plugin="org.eclipse.ui.console"/>
       <import plugin="org.eclipse.core.filesystem"/>
-      <import feature="org.eclipse.rse" version="3.7.0" match="greaterOrEqual"/>
-      <import feature="org.eclipse.tm.terminal.control.feature" version="4.0.0" match="greaterOrEqual"/>
-      <import feature="org.eclipse.rse.terminals" version="3.7.0" match="greaterOrEqual"/>
    </requires>
 
    <plugin
Signature · 1 line
2.7.4
author
#6 lore raw

PATCH 6/8 org.yocto.remote.utils: fix or supress warnings

In reply to Tim Orling

[YOCTO #9908]

Replace SubProgressMonitor usage with SubMonitor

---
 .../org/yocto/remote/utils/OutputProcessor.java    |  2 ++
 .../src/org/yocto/remote/utils/RemoteHelper.java   | 31 +++++++++++-----------
 .../src/org/yocto/remote/utils/RemoteMachine.java  |  9 +++----
 .../org/yocto/remote/utils/TerminalHandler.java    |  1 +
 4 files changed, 23 insertions(+), 20 deletions(-)
plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/OutputProcessor.java +2 -0
index 401a782..45df3b1 100644
@@ -21,6 +21,7 @@ import org.eclipse.rse.internal.services.shells.TerminalServiceHostShell;
 import org.eclipse.rse.services.shells.HostShellProcessAdapter;
 import org.eclipse.rse.services.shells.IHostShell;
 
+@SuppressWarnings("restriction")
 public abstract class OutputProcessor{
 	private static final int ERROR_BUFFER = 1;
 	private static final int OUTPUT_BUFFER = 2;
@@ -37,6 +38,7 @@ public abstract class OutputProcessor{
 		this.cmdHandler = cmdHandler;
 		this.task = task;
 	}
+
 	public ProcessStreamBuffer processOutput() throws Exception{
 		if (hostShell == null)
 			throw new Exception("An error has occured while trying to run remote command!");
plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/RemoteHelper.java +16 -15
index 285b7cf..0532341 100644
@@ -43,7 +43,7 @@ import org.eclipse.core.runtime.MultiStatus;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.Path;
 import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.core.runtime.SubMonitor;
 import org.eclipse.osgi.util.NLS;
 import org.eclipse.rse.core.IRSECoreRegistry;
 import org.eclipse.rse.core.IRSECoreStatusCodes;
@@ -76,6 +76,7 @@ import org.eclipse.rse.subsystems.terminals.core.ITerminalServiceSubSystem;
 import org.eclipse.rse.ui.RSEUIPlugin;
 import org.eclipse.ui.console.MessageConsole;
 
+@SuppressWarnings("restriction")
 public class RemoteHelper {
 	private final static String EXIT_CMD = "exit"; //$NON-NLS-1$
 	private final static String CMD_DELIMITER = ";"; //$NON-NLS-1$
@@ -235,7 +236,7 @@ public class RemoteHelper {
 		try {
 			fileService = getConnectedRemoteFileService(
 							connection,
-							new SubProgressMonitor(monitor, 5));
+							SubMonitor.convert(monitor, 5));
 			InputStream  inputStream = FileLocator.openStream(
 				    Activator.getDefault().getBundle(), new Path(locaPathInPlugin), false);
 			Path remotePath = new Path(remoteExePath);
@@ -255,12 +256,12 @@ public class RemoteHelper {
 			bos.close();
 			fileService.upload(tempFile, remotePath.removeLastSegments(1)
 					.toString(), remotePath.lastSegment(), true, null, null,
-					new SubProgressMonitor(monitor, 80));
+					SubMonitor.convert(monitor, 80));
 			// Need to change the permissions to match the original file
 			// permissions because of a bug in upload
 			remoteShellExec(
 					connection,
-					"", "chmod", "+x " + spaceEscapify(remotePath.toString()), new SubProgressMonitor(monitor, 5)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+					"", "chmod", "+x " + spaceEscapify(remotePath.toString()), SubMonitor.convert(monitor, 5)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 
 		} finally {
 			monitor.done();
@@ -278,18 +279,18 @@ public class RemoteHelper {
 		try {
 			fileService = getConnectedRemoteFileService(
 							connection,
-							new SubProgressMonitor(monitor, 10));
+							SubMonitor.convert(monitor, 10));
 			File file = new File(localExePath);
 			monitor.worked(5);
 			Path remotePath = new Path(remoteExePath);
 			fileService.download(remotePath.removeLastSegments(1).toString(),
 					remotePath.lastSegment(),file,true, null,
-					new SubProgressMonitor(monitor, 85));
+					SubMonitor.convert(monitor, 85));
 			// Need to change the permissions to match the original file
 			// permissions because of a bug in upload
 			//RemoteApplication p = remoteShellExec(
 			//		config,
-			//		"", "chmod", "+x " + spaceEscapify(remotePath.toString()), new SubProgressMonitor(monitor, 5)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+			//		"", "chmod", "+x " + spaceEscapify(remotePath.toString()), SubMonitor.convert(monitor, 5)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
 			//Thread.sleep(500);
 			//p.destroy();
 
@@ -340,14 +341,14 @@ public class RemoteHelper {
 		try {
 			shellService = (IShellService) getConnectedShellService(
 							connection,
-							new SubProgressMonitor(monitor, 7));
+							SubMonitor.convert(monitor, 7));
 
 			// This is necessary because runCommand does not actually run the
 			// command right now.
 			String env[] = new String[0];
 			try {
 				IHostShell hostShell = shellService.launchShell(
-						"", env, new SubProgressMonitor(monitor, 3)); //$NON-NLS-1$
+						"", env, SubMonitor.convert(monitor, 3)); //$NON-NLS-1$
 				hostShell.writeToShell(remoteCommand);
 				p = new HostShellProcessAdapter(hostShell);
 			} catch (Exception e) {
@@ -530,12 +531,12 @@ public class RemoteHelper {
 
 		IShellService shellService;
 		try {
-			shellService = (IShellService) getConnectedShellService(connection, new SubProgressMonitor(monitor, 7));
+			shellService = (IShellService) getConnectedShellService(connection, SubMonitor.convert(monitor, 7));
 
 			String env[] = getRemoteMachine(connection).prepareEnvString(monitor);
 
 			try {
-				IHostShell hostShell = shellService.runCommand(cmd.getInitialDirectory(), remoteCommand, env, new SubProgressMonitor(monitor, 3));
+				IHostShell hostShell = shellService.runCommand(cmd.getInitialDirectory(), remoteCommand, env, SubMonitor.convert(monitor, 3));
 				return hostShell;
 			} catch (Exception e) {
 				e.printStackTrace();
@@ -551,9 +552,9 @@ public class RemoteHelper {
 		monitor.beginTask(Messages.InfoDownload, 100);
 
 		try {
-			IFileService fileService = getConnectedRemoteFileService(connection, new SubProgressMonitor(monitor, 10));
+			IFileService fileService = getConnectedRemoteFileService(connection, SubMonitor.convert(monitor, 10));
 			Path remotePath = new Path(remoteFilePath);
-			IHostFile remoteFile = fileService.getFile(remotePath.removeLastSegments(1).toString(), remotePath.lastSegment(), new SubProgressMonitor(monitor, 5));
+			IHostFile remoteFile = fileService.getFile(remotePath.removeLastSegments(1).toString(), remotePath.lastSegment(), SubMonitor.convert(monitor, 5));
 			return remoteFile;
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -568,7 +569,7 @@ public class RemoteHelper {
 		monitor.beginTask(Messages.InfoDownload, 100);
 
 		try {
-			IFileService fileService = getConnectedRemoteFileService(connection, new SubProgressMonitor(monitor, 10));
+			IFileService fileService = getConnectedRemoteFileService(connection, SubMonitor.convert(monitor, 10));
 
 			return fileService.getInputStream(parentPath, remoteFilePath, false, monitor);
 		} catch (Exception e) {
@@ -649,7 +650,7 @@ public class RemoteHelper {
 		ISystemRegistry sr = RSECorePlugin.getTheSystemRegistry();
 		ISubSystemConfiguration[] configurations = sr.getSubSystemConfigurationsBySystemType(getSSHSystemType(), true);
 		
-		ArrayList configList = new ArrayList();
+		ArrayList<ISubSystemConfigurator> configList = new ArrayList<ISubSystemConfigurator>();
 		for (int i = 0; i < configurations.length; i++){
 			ISubSystemConfiguration configuration = configurations[i];
 			
plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/RemoteMachine.java +4 -5
index 92cfc15..8e02f37 100644
@@ -17,14 +17,12 @@ import java.util.Map;
 
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.OperationCanceledException;
 import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.core.runtime.SubMonitor;
 import org.eclipse.rse.core.model.IHost;
 import org.eclipse.rse.core.subsystems.ISubSystem;
 import org.eclipse.rse.internal.services.local.shells.LocalShellService;
-import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
 import org.eclipse.rse.services.files.IFileService;
 import org.eclipse.rse.services.shells.IHostShell;
 import org.eclipse.rse.services.shells.IShellService;
@@ -32,6 +30,7 @@ import org.eclipse.rse.subsystems.files.core.servicesubsystem.IFileServiceSubSys
 import org.eclipse.rse.subsystems.shells.core.subsystems.servicesubsystem.IShellServiceSubSystem;
 import org.eclipse.ui.console.MessageConsole;
 
+@SuppressWarnings("restriction")
 public class RemoteMachine {
 	public static final String PROXY = "proxy";
 
@@ -76,11 +75,11 @@ public class RemoteMachine {
 
 			environment = new HashMap<String, String>();
 
-			IShellService shellService = getShellService(new SubProgressMonitor(monitor, 7));
+			IShellService shellService = getShellService(SubMonitor.convert(monitor, 7));
 
 			ProcessStreamBuffer buffer = null;
 			try {
-				SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 3);
+				SubMonitor subMonitor = SubMonitor.convert(monitor, 3);
 				IHostShell hostShell = shellService.runCommand("", "env" + " ; echo " + RemoteHelper.TERMINATOR + "; exit;", new String[]{}, subMonitor);
 				buffer = RemoteHelper.processOutput(subMonitor, hostShell, cmdHandler);
 				for(int i = 0; i < buffer.getOutputLines().size(); i++) {
plugins/org.yocto.remote.utils/src/org/yocto/remote/utils/TerminalHandler.java +1 -0
index af5a5da..90ed28f 100644
@@ -34,6 +34,7 @@ import org.eclipse.swt.widgets.Shell;
 import org.eclipse.tm.internal.terminal.control.ITerminalViewControl;
 import org.eclipse.tm.internal.terminal.provisional.api.ITerminalConnector;
 
+@SuppressWarnings("restriction")
 abstract public class TerminalHandler extends AbstractHandler {
 
 
Signature · 1 line
2.7.4
author
#7 lore raw

PATCH 7/8 org.yocto.sdk.ide: remove InvokeAction usage

In reply to Tim Orling

[YOCTO #9908]

Dropped from CDT 9.0.0 (that work is done by handlers now) Suppress restriction warnings
Cleanup unused imports

---
 .../src/org/yocto/sdk/ide/YoctoSDKChecker.java     |   1 -
 .../yocto/sdk/ide/actions/InvokeSyncAction.java    | 110 ---------------------
 .../yocto/sdk/ide/actions/ReconfigYoctoAction.java |  44 ---------
 .../sdk/ide/actions/ReconfigYoctoHandler.java      |  71 ++++---------
 .../natures/YoctoSDKAutotoolsProjectNature.java    |   1 +
 5 files changed, 21 insertions(+), 206 deletions(-)
 delete mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/InvokeSyncAction.java
 delete mode 100644 plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoAction.java
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoSDKChecker.java +0 -1
index 8e48852..d1d74f2 100644
@@ -22,7 +22,6 @@ import java.io.InputStream;
 import java.io.InputStreamReader;
 
 import org.eclipse.jface.preference.IPreferenceStore;
-import org.yocto.sdk.ide.natures.YoctoSDKProjectNature;
 import org.yocto.sdk.ide.utils.YoctoSDKUtils;
 import org.yocto.sdk.ide.utils.YoctoSDKUtilsConstants;
 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/InvokeSyncAction.java deleted +0 -110

110 lines not on this page · raw message

plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoAction.java deleted +0 -44

44 lines not on this page · raw message

plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoHandler.java +20 -51

88 lines not on this page · raw message

plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/natures/YoctoSDKAutotoolsProjectNature.java +1 -0
index ce80d77..db63639 100644
@@ -21,6 +21,7 @@ import org.yocto.sdk.ide.YoctoUIElement;
 import org.yocto.sdk.ide.utils.ProjectPreferenceUtils;
 import org.yocto.sdk.ide.utils.YoctoSDKUtils;
 
+@SuppressWarnings("restriction")
 public class YoctoSDKAutotoolsProjectNature extends YoctoSDKProjectNature {
 	public static final  String YoctoSDK_AUTOTOOLS_NATURE_ID = YoctoSDKPlugin.getUniqueIdentifier() + ".YoctoSDKAutotoolsNature";
 
Signature · 1 line
2.7.4
author
#5 lore raw

PATCH 5/8 org.yocto.bc.ui: cleanup unused imports; fix generics warnings

In reply to Tim Orling

[YOCTO #9908]

Also add any required unimplemented methods
Fix deprecated Eclipse-LazyStart: true in META-INF/MANIFEST

---
 plugins/org.yocto.bc.ui/META-INF/MANIFEST.MF       |   2 +-
 .../src/org/yocto/bc/bitbake/BBRecipe.java         |  12 +-
 .../src/org/yocto/bc/bitbake/BBSession.java        | 126 +++++++++++----------
 .../org/yocto/bc/bitbake/ProjectInfoHelper.java    |   3 -
 .../src/org/yocto/bc/ui/Activator.java             |  37 +++---
 .../ui/actions/AbstractBitbakeCommandAction.java   |   5 +-
 .../yocto/bc/ui/actions/LaunchToasterDialog.java   |  17 +--
 .../bc/ui/actions/LaunchVariableWizardAction.java  |   3 +-
 .../org/yocto/bc/ui/builder/BitbakeBuilder.java    |   6 +-
 .../yocto/bc/ui/builder/ToggleNatureAction.java    |   5 +-
 .../src/org/yocto/bc/ui/decorators/ReadOnly.java   |   9 +-
 .../bc/ui/editors/bitbake/BBVariableTextHover.java |   2 +-
 .../yocto/bc/ui/filesystem/CustomLocalFile.java    |   1 +
 .../src/org/yocto/bc/ui/filesystem/OEFile.java     |   4 +-
 .../org/yocto/bc/ui/filesystem/OEFileSystem.java   |   6 +-
 .../org/yocto/bc/ui/filesystem/OEIgnoreFile.java   |  11 +-
 .../src/org/yocto/bc/ui/filesystem/Policy.java     |   4 +-
 .../perspectives/BitbakeCommanderPerspective.java  |  13 +--
 .../org/yocto/bc/ui/popup/actions/NewAction.java   |   1 -
 .../yocto/bc/ui/views/RecipeContentProvider.java   |   7 +-
 .../src/org/yocto/bc/ui/views/RecipeView.java      |   2 -
 .../bc/ui/wizards/BitbakeRecipeUIElement.java      |   6 +-
 .../org/yocto/bc/ui/wizards/FiniteStateWizard.java |  10 +-
 .../yocto/bc/ui/wizards/FiniteStateWizardPage.java |  26 ++---
 .../bc/ui/wizards/NewBitBakeFileRecipeWizard.java  |   5 +-
 .../ui/wizards/NewBitBakeFileRecipeWizardPage.java |  13 +--
 .../ui/wizards/importProject/BBCProjectPage.java   |   2 +-
 .../importProject/ImportYoctoProjectWizard.java    |  11 +-
 .../yocto/bc/ui/wizards/install/InstallWizard.java |  16 +--
 .../yocto/bc/ui/wizards/install/OptionsPage.java   |  19 +---
 .../BBConfigurationInitializeOperation.java        |   1 -
 .../newproject/CreateBBCProjectOperation.java      |   4 +-
 .../yocto/bc/ui/wizards/variable/VariablePage.java |  13 ++-
 .../bc/ui/wizards/variable/VariableWizard.java     |   8 +-
 34 files changed, 187 insertions(+), 223 deletions(-)
plugins/org.yocto.bc.ui/META-INF/MANIFEST.MF +1 -1
index 7b725ca..ebe0173 100644
@@ -17,7 +17,7 @@ Require-Bundle: org.eclipse.ui,
  org.eclipse.ui.console,
  org.eclipse.core.filesystem,
  org.yocto.remote.utils
-Eclipse-LazyStart: true
+Bundle-ActivationPolicy: lazy
 Bundle-ClassPath: .
 Import-Package: org.eclipse.rse.core.model,
  org.eclipse.rse.services.clientserver.messages,
plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBRecipe.java +4 -8
index 2b355ba..65512fd 100644
@@ -12,14 +12,6 @@ package org.yocto.bc.bitbake;
 
 import java.io.IOException;
 
-import org.eclipse.jface.preference.JFacePreferences;
-import org.eclipse.jface.resource.JFaceResources;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.console.ConsolePlugin;
-import org.eclipse.ui.console.IConsole;
-import org.eclipse.ui.console.MessageConsole;
-import org.eclipse.ui.console.MessageConsoleStream;
-
 /**
  * Represents the bitbake environment of a recipe package.
  * @author kgilmer
@@ -47,4 +39,8 @@ public class BBRecipe extends BBSession {
 	protected String getDefaultDepends() {
 		return this.filePath;
 	}
+
+	public BBSession getSession() {
+		return session;
+	}
 }
plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/BBSession.java +67 -59

330 lines not on this page · raw message

plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ProjectInfoHelper.java +0 -3
index c8a425c..df5d803 100644
@@ -13,15 +13,12 @@ package org.yocto.bc.bitbake;
 
 import java.io.BufferedReader;
 import java.io.File;
-import java.io.FileOutputStream;
 import java.io.FileReader;
 import java.io.IOException;
 
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.ResourcesPlugin;
 
-import org.yocto.bc.ui.model.ProjectInfo;
-
 /**
  * A helper class for ProjectInfo related tasks.
  * 
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/Activator.java +18 -19
index 64c9b71..34baae5 100644
@@ -19,7 +19,6 @@ import java.util.Hashtable;
 import java.util.Iterator;
 import java.util.Map;
 
-import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.IResourceChangeEvent;
 import org.eclipse.core.resources.IResourceChangeListener;
@@ -35,7 +34,6 @@ import org.yocto.bc.bitbake.BBSession;
 import org.yocto.bc.bitbake.ProjectInfoHelper;
 import org.yocto.bc.bitbake.ShellSession;
 import org.yocto.bc.ui.model.ProjectInfo;
-import org.yocto.bc.ui.wizards.newproject.CreateBBCProjectOperation;
 
 public class Activator extends AbstractUIPlugin {
 
@@ -46,16 +44,16 @@ public class Activator extends AbstractUIPlugin {
 
 	// The shared instance
 	private static Activator plugin;
-	private static Map shellMap;
-	private static Map projInfoMap;
-	private static Hashtable bbSessionMap;
-	private static Hashtable bbRecipeMap;
+	private static Map<String, ShellSession> shellMap;
+	private static Map<String, ProjectInfo> projInfoMap;
+	private static Hashtable<String,BBSession> bbSessionMap;
+	private static Hashtable<String,BBRecipe> bbRecipeMap;
 
 	private IResourceChangeListener listener = new BCResourceChangeListener();
 
 	public static BBRecipe getBBRecipe(BBSession session, String filePath) throws IOException {
 		if (bbRecipeMap == null) {
-			bbRecipeMap = new Hashtable();
+			bbRecipeMap = new Hashtable<String, BBRecipe>();
 		}
 
 		String key = session.getProjInfoRoot() + filePath;
@@ -76,7 +74,7 @@ public class Activator extends AbstractUIPlugin {
 	 */
 	public static BBSession getBBSession(String projectRoot, Writer out) throws IOException {
 		if (bbSessionMap == null) {
-			bbSessionMap = new Hashtable();
+			bbSessionMap = new Hashtable<String, BBSession>();
 		}
 		
 		BBSession bbs = (BBSession) bbSessionMap.get(projectRoot);
@@ -97,7 +95,7 @@ public class Activator extends AbstractUIPlugin {
 	 */
 	public static BBSession getBBSession(String projectRoot) throws IOException {
 		if (bbSessionMap == null) {
-			bbSessionMap = new Hashtable();
+			bbSessionMap = new Hashtable<String, BBSession>();
 		}
 		
 		BBSession bbs = (BBSession) bbSessionMap.get(projectRoot);
@@ -132,7 +130,7 @@ public class Activator extends AbstractUIPlugin {
 
 	public static ProjectInfo getProjInfo(String location) throws CoreException, InvocationTargetException, InterruptedException {
 		if (projInfoMap == null) {
-			projInfoMap = new Hashtable();
+			projInfoMap = new Hashtable<String, ProjectInfo>();
 		}
 
 		ProjectInfo pi = (ProjectInfo) projInfoMap.get(location);
@@ -151,19 +149,20 @@ public class Activator extends AbstractUIPlugin {
 	}
 
 	public static void notifyAllBBSession(IResource[] added, IResource[] removed, IResource[] changed) {
-		Iterator iter;
+		Iterator<BBRecipe> recipe_iter;
+		Iterator<BBSession> session_iter;
 		if(bbRecipeMap != null) {
-			iter = bbRecipeMap.values().iterator();
-			while(iter.hasNext()) {
-				BBRecipe p = (BBRecipe)iter.next();
+			recipe_iter = bbRecipeMap.values().iterator();
+			while(recipe_iter.hasNext()) {
+				BBRecipe p = (BBRecipe)recipe_iter.next();
 				p.changeNotified(added, removed, changed);
 			}
 		}
 
 		if(bbSessionMap != null) {
-			iter= bbSessionMap.values().iterator();
-			while(iter.hasNext()) {
-				BBSession p = (BBSession)iter.next();
+			session_iter= bbSessionMap.values().iterator();
+			while(session_iter.hasNext()) {
+				BBSession p = (BBSession)session_iter.next();
 				p.changeNotified(added, removed, changed);
 			}
 		}
@@ -176,7 +175,7 @@ public class Activator extends AbstractUIPlugin {
 	 */
 	private static ShellSession getShellSession(String absolutePath, Writer out) throws IOException {
 		if (shellMap == null) {
-			shellMap = new Hashtable();
+			shellMap = new Hashtable<String, ShellSession>();
 		}
 		
 		ShellSession ss = (ShellSession) shellMap.get(absolutePath);
@@ -190,7 +189,7 @@ public class Activator extends AbstractUIPlugin {
 
 	public static void putProjInfo(String location, ProjectInfo pinfo) {
 		if (projInfoMap == null) {
-			projInfoMap = new Hashtable();
+			projInfoMap = new Hashtable<String, ProjectInfo>();
 		}
 		
 		
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/actions/AbstractBitbakeCommandAction.java +2 -3
index 43ef424..6215ff1 100644
@@ -32,7 +32,6 @@ import org.eclipse.ui.console.MessageConsoleStream;
 
 import org.yocto.bc.bitbake.BBLanguageHelper;
 import org.yocto.bc.bitbake.BBSession;
-import org.yocto.bc.bitbake.ICommandResponseHandler;
 import org.yocto.bc.ui.Activator;
 import org.yocto.bc.ui.builder.BitbakeCommanderNature;
 
@@ -55,12 +54,12 @@ public abstract class AbstractBitbakeCommandAction implements IWorkbenchWindowAc
 	protected IFile recipe;
 	protected BBSession bbs;
 
-	private Color commandColor, responseColor, errorColor;
+	private Color commandColor, errorColor;
 	private boolean errorOccurred = false;
 
 	public AbstractBitbakeCommandAction() {
 		commandColor = JFaceResources.getColorRegistry().get(JFacePreferences.ACTIVE_HYPERLINK_COLOR);
-		responseColor = JFaceResources.getColorRegistry().get(JFacePreferences.HYPERLINK_COLOR);
+		JFaceResources.getColorRegistry().get(JFacePreferences.HYPERLINK_COLOR);
 		errorColor = JFaceResources.getColorRegistry().get(JFacePreferences.ERROR_COLOR);
 	}
 
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/actions/LaunchToasterDialog.java +5 -12
index 124ae39..1957525 100644
@@ -14,8 +14,6 @@ import java.io.File;
 import java.io.IOException;
 import java.net.URL;
 import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.Map.Entry;
@@ -28,28 +26,21 @@ import org.eclipse.jface.dialogs.IDialogConstants;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Combo;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Shell;
 import org.yocto.bc.ui.builder.BitbakeBuilder;
-import org.yocto.bc.ui.builder.BitbakeCommanderNature;
 
 public class LaunchToasterDialog extends Dialog {
-	private String title;
-	private Button buildButton;
 	private Combo toaster_url;
 	private IProject project;
-	private Shell shell;
 	private URL toaster_server;
 
 	public LaunchToasterDialog(Shell parentShell, String dialogTitle, IProject project) {
         super(parentShell);
-        this.shell = parentShell;
         this.project = project;
-        this.title = dialogTitle;
         setShellStyle(getShellStyle() | SWT.RESIZE);
 	}
 
@@ -68,7 +59,6 @@ public class LaunchToasterDialog extends Dialog {
 	}
 
 	private void createComposite(Composite composite) throws Exception{
-		Label root_label, sysroot_label;
 		GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, false);
 		GridLayout layout = new GridLayout(2, false);
 		composite.setLayout(layout);
@@ -102,6 +92,7 @@ public class LaunchToasterDialog extends Dialog {
 		return toaster_server ;
 	}
 
+	@SuppressWarnings("unused")
 	private boolean isSubDirectory(File baseDir, File subDir) throws IOException {
 		baseDir = baseDir.getCanonicalFile();
 		subDir = subDir.getCanonicalFile();
@@ -116,6 +107,7 @@ public class LaunchToasterDialog extends Dialog {
 		return false;
 	}
 
+	@SuppressWarnings("unused")
 	private void initializeBuildCombo()
 	{
 		ArrayList<String> items = new ArrayList<String> ();
@@ -133,9 +125,9 @@ public class LaunchToasterDialog extends Dialog {
 						Map<String, String> args = cmd.getArguments();
 						if ((args != null) && !args.isEmpty())
 						{
-							Iterator entries = args.entrySet().iterator();
+							Iterator<Entry<String, String>> entries = args.entrySet().iterator();
 							while (entries.hasNext()) {
-								Entry thisEntry = (Entry) entries.next();
+								Entry<String, String> thisEntry = (Entry<String, String>) entries.next();
 								String key = (String)thisEntry.getKey();
 							}
 						}
@@ -147,6 +139,7 @@ public class LaunchToasterDialog extends Dialog {
 		}
 	}
 
+	@SuppressWarnings("unused")
 	private String[] getValues(String value) {
 		if ((value != null) && !value.isEmpty())
 		{
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/actions/LaunchVariableWizardAction.java +1 -2
index eaf716e..8bd9162 100644
@@ -22,7 +22,6 @@ import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.wizard.WizardDialog;
 import org.eclipse.ui.IWorkbenchWindow;
 import org.eclipse.ui.IWorkbenchWindowActionDelegate;
-
 import org.yocto.bc.ui.Activator;
 import org.yocto.bc.ui.builder.BitbakeCommanderNature;
 import org.yocto.bc.ui.wizards.variable.VariableWizard;
@@ -35,7 +34,7 @@ import org.yocto.bc.ui.wizards.variable.VariableWizard;
 public class LaunchVariableWizardAction implements IWorkbenchWindowActionDelegate {
 
 	private IWorkbenchWindow window;
-	private Map session;
+	private Map<String, Object> session;
 
 	public void dispose() {
 	}
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/builder/BitbakeBuilder.java +5 -1
index aead213..8d1f868 100644
@@ -36,6 +36,7 @@ public class BitbakeBuilder extends IncrementalProjectBuilder {
 		 * @see org.eclipse.core.resources.IResourceDeltaVisitor#visit(org.eclipse.core.resources.IResourceDelta)
 		 */
 		public boolean visit(IResourceDelta delta) throws CoreException {
+			@SuppressWarnings("unused")
 			IResource resource = delta.getResource();
 			switch (delta.getKind()) {
 			case IResourceDelta.ADDED:
@@ -98,6 +99,7 @@ public class BitbakeBuilder extends IncrementalProjectBuilder {
 
 	private SAXParserFactory parserFactory;
 
+	@SuppressWarnings("unused")
 	private void addMarker(IFile file, String message, int lineNumber,
 			int severity) {
 		try {
@@ -119,7 +121,7 @@ public class BitbakeBuilder extends IncrementalProjectBuilder {
 	 *      java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
 	 */
 	@Override
-	protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
+	protected IProject[] build(int kind, Map<String, String> args, IProgressMonitor monitor)
 			throws CoreException {
 		if (kind == FULL_BUILD) {
 			fullBuild(monitor);
@@ -146,6 +148,7 @@ public class BitbakeBuilder extends IncrementalProjectBuilder {
 		}
 	}*/
 
+	@SuppressWarnings("unused")
 	private void deleteMarkers(IFile file) {
 		try {
 			file.deleteMarkers(MARKER_TYPE, false, IResource.DEPTH_ZERO);
@@ -161,6 +164,7 @@ public class BitbakeBuilder extends IncrementalProjectBuilder {
 		}*/
 	}
 
+	@SuppressWarnings("unused")
 	private SAXParser getParser() throws ParserConfigurationException,
 			SAXException {
 		if (parserFactory == null) {
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/builder/ToggleNatureAction.java +3 -2
index f25148d..0c52ca6 100644
@@ -33,14 +33,15 @@ public class ToggleNatureAction implements IObjectActionDelegate {
 	 */
 	public void run(IAction action) {
 		if (selection instanceof IStructuredSelection) {
-			for (Iterator it = ((IStructuredSelection) selection).iterator(); it
+			for (@SuppressWarnings("unchecked")
+			Iterator<IStructuredSelection> it = ((IStructuredSelection) selection).iterator(); it
 					.hasNext();) {
 				Object element = it.next();
 				IProject project = null;
 				if (element instanceof IProject) {
 					project = (IProject) element;
 				} else if (element instanceof IAdaptable) {
-					project = (IProject) ((IAdaptable) element)
+					project = ((IAdaptable) element)
 							.getAdapter(IProject.class);
 				}
 				if (project != null) {
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/decorators/ReadOnly.java +6 -3
index 0bb3c20..2241fd1 100644
@@ -14,12 +14,15 @@ import java.net.URL;
 
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.ResourceAttributes;
+import org.eclipse.core.runtime.FileLocator;
 import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.jface.viewers.IDecoration;
 import org.eclipse.jface.viewers.ILabelProviderListener;
 import org.eclipse.jface.viewers.ILightweightLabelDecorator;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.FrameworkUtil;
+import org.yocto.bc.ui.Activator;
 
 /**
  * An example showing how to control when an element is decorated. This example
@@ -68,8 +71,8 @@ public class ReadOnly implements ILightweightLabelDecorator {
 		ResourceAttributes attrs = resource.getResourceAttributes();
 		if(attrs!=null) {
 			if (attrs.isReadOnly()){
-				URL url = Platform.find(
-						Platform.getBundle("org.yocto.bc.ui"), new Path(iconPath)); //NON-NLS-1
+				Bundle bundle = FrameworkUtil.getBundle(Activator.class);
+				URL url = FileLocator.find(bundle, new Path(iconPath), null);
 	
 				if (url == null)
 					return;
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/editors/bitbake/BBVariableTextHover.java +1 -1
index dc014a7..c913e72 100644
@@ -24,7 +24,7 @@ import org.yocto.bc.ui.Activator;
 
 class BBVariableTextHover implements ITextHover {
 	private final BBSession session;
-	private volatile Map envMap;
+	private volatile Map<String, Object> envMap;
 
 	public BBVariableTextHover(BBSession session, String file) {
 		this.session = session;
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/CustomLocalFile.java +1 -0
index b62a1da..3147c37 100644
@@ -5,6 +5,7 @@ import java.io.File;
 import org.eclipse.core.internal.filesystem.local.LocalFile;
 import org.yocto.remote.utils.RemoteHelper;
 
+@SuppressWarnings("restriction")
 public class CustomLocalFile extends LocalFile{
 	
 	public CustomLocalFile(String projName, File file) {
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEFile.java +2 -2
index a0a0e6e..7c86cdb 100644
@@ -52,7 +52,7 @@ public class OEFile extends FileStore {
 	 * The java.io.File that this store represents.
 	 */
 	protected final File file;
-	private List ignorePaths;
+	private List<Object> ignorePaths;
 
 	/**
 	 * The absolute file system path of the file represented by this store.
@@ -67,7 +67,7 @@ public class OEFile extends FileStore {
 	 * @param file The file this local file represents
 	 * @param root 
 	 */
-	public OEFile(File file, List ignorePaths, String root) {
+	public OEFile(File file, List<Object> ignorePaths, String root) {
 		this.file = file;
 		this.ignorePaths = ignorePaths;
 		this.root = root;
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEFileSystem.java +3 -3
index 3443f57..51ff7b1 100644
@@ -36,11 +36,11 @@ public class OEFileSystem extends FileSystem {
 		return ref;
 	}
 
-	private Map fileStoreCache;
+	private Map<URI, OEFile> fileStoreCache;
 
 	public OEFileSystem() {
 		ref = this;
-		fileStoreCache = new Hashtable();
+		fileStoreCache = new Hashtable<URI, OEFile>();
 	}
 	
 	@Override
@@ -62,7 +62,7 @@ public class OEFileSystem extends FileSystem {
 				throw new RuntimeException("Invalid local.conf: TMPDIR or DL_DIR or SSTATE_DIR undefined.");
 			}
 			
-			List ignoreList = new ArrayList();
+			List<Object> ignoreList = new ArrayList<Object>();
 
 			//These directories are ignored because they contain too many files for Eclipse to handle efficiently.
 			ignoreList.add(config.get("TMPDIR"));
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEIgnoreFile.java +6 -5
index 8643309..e044c53 100644
@@ -64,11 +64,6 @@ public class OEIgnoreFile implements IFileStore {
 		return new FileInfo(file.getName());
 	}
 
-	public Object getAdapter(Class adapter) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
 	public IFileStore getChild(IPath path) {
 		// TODO Auto-generated method stub
 		return null;
@@ -128,6 +123,12 @@ public class OEIgnoreFile implements IFileStore {
 	public IFileStore getFileStore(IPath path) {
 		return null;
 	}
+
+	@Override
+	public <T> T getAdapter(Class<T> adapter) {
+		// TODO Auto-generated method stub
+		return null;
+	}
 	
 	
 }
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/Policy.java +2 -2
index 84c0f32..e78c430 100644
@@ -20,7 +20,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.OperationCanceledException;
 import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.core.runtime.SubMonitor;
 
 import org.yocto.bc.ui.Activator;
 
@@ -103,6 +103,6 @@ public class Policy {
 			return new NullProgressMonitor();
 		if (monitor instanceof NullProgressMonitor)
 			return monitor;
-		return new SubProgressMonitor(monitor, ticks);
+		return SubMonitor.convert(monitor, ticks);
 	}
 }
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/perspectives/BitbakeCommanderPerspective.java +5 -8
index b9ddcb6..3278f44 100644
@@ -15,8 +15,6 @@ import org.eclipse.ui.IPageLayout;
 import org.eclipse.ui.IPerspectiveFactory;
 import org.eclipse.ui.console.IConsoleConstants;
 
-import org.yocto.bc.ui.views.RecipeView;
-
 public class BitbakeCommanderPerspective implements IPerspectiveFactory {
 
 	private IPageLayout factory;
@@ -37,10 +35,9 @@ public class BitbakeCommanderPerspective implements IPerspectiveFactory {
 	}
 
 	private void addPerspectiveShortcuts() {
-		// factory.addPerspectiveShortcut("org.eclipse.team.ui.TeamSynchronizingPerspective");
-		// //NON-NLS-1
-		// factory.addPerspectiveShortcut("org.eclipse.team.cvs.ui.cvsPerspective");
-		// //NON-NLS-1
+		//factory.addPerspectiveShortcut("org.eclipse.team.ui.TeamSynchronizingPerspective"); //NON-NLS-1
+		// TODO: add egit perspective instead
+		//factory.addPerspectiveShortcut("org.eclipse.team.cvs.ui.cvsPerspective"); //$NON-NLS-1$
 		factory.addPerspectiveShortcut("org.eclipse.ui.resourcePerspective"); // NON-NLS-1
 	}
 
@@ -54,7 +51,7 @@ public class BitbakeCommanderPerspective implements IPerspectiveFactory {
 		
 		IFolderLayout topLeft = factory.createFolder("topLeft", // NON-NLS-1
 				IPageLayout.LEFT, 0.25f, factory.getEditorArea());
-		topLeft.addView(IPageLayout.ID_RES_NAV);
+		topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
 		//llu detach RecipeView
 		//topLeft.addView(RecipeView.ID_VIEW); // NON-NLS-1
 		
@@ -72,7 +69,7 @@ public class BitbakeCommanderPerspective implements IPerspectiveFactory {
 		factory.addShowViewShortcut("org.eclipse.team.ui.GenericHistoryView"); // NON-NLS-1
 		factory.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
 		// factory.addShowViewShortcut(JavaUI.ID_PACKAGES);
-		factory.addShowViewShortcut(IPageLayout.ID_RES_NAV);
+		factory.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
 		// factory.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
 		// factory.addShowViewShortcut(IPageLayout.ID_OUTLINE);
 	}
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/popup/actions/NewAction.java +0 -1
index 3bdf5d3..6880d58 100644
@@ -4,7 +4,6 @@ import org.eclipse.jface.action.IAction;
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IActionDelegate;
 import org.eclipse.ui.IObjectActionDelegate;
 import org.eclipse.ui.IWorkbenchPart;
 
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/views/RecipeContentProvider.java +3 -4
index 7e29e7a..fefdeb4 100644
@@ -15,9 +15,9 @@ import java.util.Collection;
 import java.util.List;
 
 import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectNature;
 import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
 import org.eclipse.jface.viewers.IStructuredContentProvider;
 import org.eclipse.jface.viewers.Viewer;
 
@@ -30,9 +30,8 @@ class RecipeContentProvider implements IStructuredContentProvider {
 	}
 
 	public Object[] getElements(Object parent) {
-		List recipes = new ArrayList();
+		List<IPath> recipes = new ArrayList<IPath>();
 		IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
-		IProjectNature nature = null;
 		for (int i = 0; i < projects.length; ++i) {
 			try {
 				if (projects[i].isOpen() && projects[i].hasNature(BitbakeCommanderNature.NATURE_ID)) {
@@ -50,7 +49,7 @@ class RecipeContentProvider implements IStructuredContentProvider {
 		return recipes.toArray();
 	}
 
-	private Collection getRecipesFromProject(IProject project) throws Exception {
+	private Collection<IPath> getRecipesFromProject(IProject project) throws Exception {
 		BBSession session = Activator.getBBSession(project.getLocationURI().getPath(), null);
 		return session.getRecipeFiles(project);
 	}
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/views/RecipeView.java +0 -2
index fdbd8e0..5cd0c0e 100644
@@ -24,7 +24,6 @@ import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.LabelProvider;
 import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.ViewerSorter;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.widgets.Composite;
@@ -77,7 +76,6 @@ private TableViewer viewer;
 		viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
 		viewer.setContentProvider(new RecipeContentProvider());
 		viewer.setLabelProvider(new ViewLabelProvider());
-		viewer.setSorter(new ViewerSorter());
 		viewer.setInput(getViewSite());
 		makeActions();
 		hookContextMenu();
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/BitbakeRecipeUIElement.java +2 -4
index 22d6bb7..b5468dd 100644
@@ -10,8 +10,6 @@
  *******************************************************************************/
 package org.yocto.bc.ui.wizards;
 
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.swt.widgets.Text;
 import java.util.ArrayList;
 
 public class BitbakeRecipeUIElement {
@@ -28,7 +26,7 @@ public class BitbakeRecipeUIElement {
 	private String md5sum;
 	private String sha256sum;
 	private String metaDir;
-	private ArrayList inheritance;
+	private ArrayList<String> inheritance;
 	private String[] valid_src_uris = {"file://", "bzr://", "git://", "osc://", "repo://",
 			"ccrc://","http://","https://","ftp://","cvs://","hg://","p4://","ssh://","svn://"};
 
@@ -45,7 +43,7 @@ public class BitbakeRecipeUIElement {
 		this.srcuri = "";
 		this.md5sum = "";
 		this.sha256sum = "";
-		this.inheritance = new ArrayList();
+		this.inheritance = new ArrayList<String>();
 		this.metaDir = "";
 	}
 
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/FiniteStateWizard.java +5 -5
index 8b47498..fdd6532 100644
@@ -49,8 +49,8 @@ public abstract class FiniteStateWizard extends Wizard {
     }
     
     /**
-     * Retrive the model object from the wizard.
-     * @return
-     */
-    public abstract Map getModel();
-}
+     * Retrive the model object from the wizard.
+     * @return
+     */
+    public abstract Map<String, Object> getModel();
+}
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/FiniteStateWizardPage.java +13 -13
index a83a389..ff0b547 100644
@@ -10,19 +10,19 @@ import org.eclipse.swt.events.SelectionEvent;
 import org.eclipse.swt.events.SelectionListener;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-public abstract class FiniteStateWizardPage extends WizardPage {
-    protected Map model = null;
-    protected FiniteStateWizard wizard = null;
-    private static boolean previousState = false;
-    /**
-     * @param pageName
-     */
-    protected FiniteStateWizardPage(String name, Map model) {
-        super(name);
-        this.model = model;
-        this.setPageComplete(false);
+import org.eclipse.swt.widgets.Listener;
+
+public abstract class FiniteStateWizardPage extends WizardPage {
+    protected Map<String, Object> model = null;
+    protected FiniteStateWizard wizard = null;
+    private static boolean previousState = false;
+    /**
+     * @param pageName
+     */
+    protected FiniteStateWizardPage(String name, Map<String, Object> model) {
+        super(name);
+        this.model = model;
+        this.setPageComplete(false);
     }
 
     /*
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizard.java +2 -3
index b4bdb48..895bf8a 100644
@@ -36,13 +36,12 @@ import org.eclipse.jface.wizard.Wizard;
 import org.eclipse.ui.INewWizard;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWizard;
+// Only referenced in comment
+//import org.eclipse.ui.IWorkbenchWizard;
 import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.ide.IDE;
 
-import org.yocto.bc.bitbake.BBLanguageHelper;
-
 public class NewBitBakeFileRecipeWizard extends Wizard implements INewWizard {
 	private NewBitBakeFileRecipeWizardPage page;
 	private ISelection selection;
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java +3 -10
index ba4bdae..578feb4 100644
@@ -16,7 +16,6 @@ import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.IPath;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.window.Window;
@@ -30,21 +29,16 @@ import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.DirectoryDialog;
-import org.eclipse.swt.widgets.FileDialog;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 import org.eclipse.ui.dialogs.ContainerSelectionDialog;
 
 import java.util.HashMap;
-import java.util.Hashtable;
 import java.util.Set;
 import java.util.ArrayList;
-import java.util.Enumeration;
 import java.util.Iterator;
 
 import java.io.BufferedReader;
-import java.io.InputStreamReader;
 import java.io.File;
 import java.io.FileReader;
 import java.io.IOException;
@@ -71,7 +65,7 @@ public class NewBitBakeFileRecipeWizardPage extends WizardPage {
 	
 	private ISelection selection;
 	private String metaDirLoc;
-	private ArrayList inheritance;
+	private ArrayList<String> inheritance;
 
 	public NewBitBakeFileRecipeWizardPage(ISelection selection) {
 		super("wizardPage");
@@ -79,7 +73,7 @@ public class NewBitBakeFileRecipeWizardPage extends WizardPage {
 		setDescription("Create a new BitBake recipe.");
 		this.selection = selection;
 		element = new BitbakeRecipeUIElement();
-		inheritance = new ArrayList();
+		inheritance = new ArrayList<String>();
 	}
 
 	public void createControl(Composite parent) {
@@ -324,7 +318,6 @@ public class NewBitBakeFileRecipeWizardPage extends WizardPage {
 				else if (file.getName().equalsIgnoreCase("setup.py"))
 					inheritance.add("disutils");
 				else {
-					String pattern = "configure.[ac|.in]";
 					if (file.getName().equalsIgnoreCase("configure.ac") || file.getName().equalsIgnoreCase("configure.in"))
 						inheritance.add("autotools");
 					else
@@ -499,7 +492,7 @@ public class NewBitBakeFileRecipeWizardPage extends WizardPage {
 	
 	private void updateSrcuri(HashMap<String, String> mirrorsMap, String src_uri) {
 		Set<String> mirrors = mirrorsMap.keySet();
-		Iterator iter = mirrors.iterator();
+		Iterator<String> iter = mirrors.iterator();
 		String mirror_key = null;
 
 	    while (iter.hasNext()) {
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/importProject/BBCProjectPage.java +1 -1
index 71ea70c..3f66518 100644
@@ -64,7 +64,7 @@ public class BBCProjectPage extends FiniteStateWizardPage {
 	private ValidationListener validationListener;
 	private Text txtProjectName;
 
-	public BBCProjectPage(Map model) {
+	public BBCProjectPage(Map<String, Object> model) {
 		super(PAGE_TITLE, model);
 		setTitle("Create new Yocto Project BitBake Commander project");
 		setMessage("Enter information to create a BitBake Commander project.");
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/importProject/ImportYoctoProjectWizard.java +3 -8
index b1fc841..d116701 100644
@@ -44,17 +44,14 @@ public class ImportYoctoProjectWizard extends FiniteStateWizard  implements IImp
 	public static final String KEY_INITPATH = "INITPATH";
 	protected static final String KEY_PINFO = "PINFO";
 	
-	private Map projectModel;
-	private IWorkbench workbench;
-	private IStructuredSelection selection;
-	
+	private Map<String, Object> projectModel;
 	private MessageConsole myConsole;
 	
 	public ImportYoctoProjectWizard() {
-		projectModel = new Hashtable();
+		projectModel = new Hashtable<String, Object>();
 	}
 	
-	public Map getModel() {
+	public Map<String, Object> getModel() {
 		return projectModel;
 	}
 	
@@ -100,8 +97,6 @@ public class ImportYoctoProjectWizard extends FiniteStateWizard  implements IImp
 	}
 
 	public void init(IWorkbench workbench, IStructuredSelection selection) {
-		this.workbench = workbench;
-		this.selection = selection;
 		this.setNeedsProgressMonitor(true);
 		setWindowTitle("BitBake Commander Project");
 		
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/InstallWizard.java +9 -7
index 0abac26..d653bfd 100644
@@ -19,8 +19,6 @@ import java.io.Writer;
 import java.lang.reflect.InvocationTargetException;
 import java.util.Hashtable;
 import java.util.Map;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
 
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
@@ -40,6 +38,7 @@ import org.eclipse.ui.console.IConsoleManager;
 import org.eclipse.ui.console.IConsoleView;
 import org.eclipse.ui.console.MessageConsole;
 import org.eclipse.ui.console.MessageConsoleStream;
+
 import org.yocto.bc.ui.Activator;
 import org.yocto.bc.ui.model.ProjectInfo;
 import org.yocto.bc.ui.wizards.FiniteStateWizard;
@@ -71,11 +70,11 @@ public class InstallWizard extends FiniteStateWizard implements
 	protected static final String DEFAULT_INSTALL_DIR = "~/yocto";
 	public static final String VALIDATION_FILE = DEFAULT_INIT_SCRIPT;
 
-	private Map model;
+	private Map<String, Object> model;
 	private MessageConsole myConsole;
 
 	public InstallWizard() {
-		this.model = new Hashtable();
+		this.model = new Hashtable<String, Object>();
 		model.put(INSTALL_DIRECTORY, DEFAULT_INSTALL_DIR);
 		model.put(INIT_SCRIPT, DEFAULT_INIT_SCRIPT);
 		
@@ -108,7 +107,7 @@ public class InstallWizard extends FiniteStateWizard implements
 	}
 
 	public InstallWizard(IStructuredSelection selection) {
-		model = new Hashtable();
+		model = new Hashtable<String, Object>();
 	}
 
 	/*
@@ -132,7 +131,7 @@ public class InstallWizard extends FiniteStateWizard implements
 	}
 
 	@Override
-	public Map getModel() {
+	public Map<String, Object> getModel() {
 		return model;
 	}
 
@@ -143,7 +142,7 @@ public class InstallWizard extends FiniteStateWizard implements
 
 		WizardPage page = (WizardPage) getPage("Options");
 		page.setPageComplete(true);
-		Map options = (Map) model;
+		Map<String, Object> options = (Map<String, Object>) model;
 		String install_dir = "";
 		if (options.containsKey(INSTALL_DIRECTORY)) {
 			install_dir = (String) options.get(INSTALL_DIRECTORY);
@@ -189,6 +188,7 @@ public class InstallWizard extends FiniteStateWizard implements
 		public float calWorkloadDone(String info) throws IllegalArgumentException;
 	}
 
+	@SuppressWarnings("unused")
 	private class LongtimeRunningTask implements IRunnableWithProgress {
 		private String []cmdArray;
 		private String []envp;
@@ -306,6 +306,7 @@ public class InstallWizard extends FiniteStateWizard implements
 			}
 		}
 
+		@SuppressWarnings("unused")
 		public void printDialog(String msg) {
 			try {
 				myConsoleStream.println(msg);
@@ -331,6 +332,7 @@ public class InstallWizard extends FiniteStateWizard implements
 			}
 		}
 
+		@SuppressWarnings("unused")
 		public void printCmd(String cmd) {
 			try {
 				myConsoleStream.println(cmd);
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/install/OptionsPage.java +2 -17
index 3a2caa0..b9d6c1e 100644
@@ -1,20 +1,13 @@
 package org.yocto.bc.ui.wizards.install;
 
-import java.io.IOException;
 import java.io.File;
 import java.net.URI;
-import java.util.ArrayList;
-import java.util.Hashtable;
-import java.util.Iterator;
-import java.util.List;
 import java.util.Map;
 
 import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.IWorkspaceRoot;
 import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
@@ -23,16 +16,13 @@ import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.DirectoryDialog;
 import org.eclipse.swt.widgets.FileDialog;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Text;
 import org.eclipse.ui.PlatformUI;
 
-import org.yocto.bc.ui.wizards.FiniteStateWizard;
 import org.yocto.bc.ui.wizards.FiniteStateWizardPage;
-import org.yocto.bc.ui.wizards.FiniteStateWizardPage.ValidationListener;
 
 /**
  * Select which flavor of OE is to be installed.
@@ -45,17 +35,13 @@ import org.yocto.bc.ui.wizards.FiniteStateWizardPage.ValidationListener;
  */
 public class OptionsPage extends FiniteStateWizardPage {
 
-	private Map vars;
-	private Composite c1;
 	private Composite top;
-	private List controlList;
-	private boolean controlsCreated = false;
 	private Text txtProjectLocation;
 	private Text txtInit;
 	private ValidationListener validationListener;
 	private Text txtProjectName;
 
-	protected OptionsPage(Map model) {
+	protected OptionsPage(Map<String, Object> model) {
 		super("Options", model);
 		setMessage("Enter these parameters to create new Yocto Project BitBake commander project");
 	}
@@ -67,8 +53,6 @@ public class OptionsPage extends FiniteStateWizardPage {
 		top.setLayoutData(new GridData(GridData.FILL_BOTH));
 
 		GridData gdFillH = new GridData(GridData.FILL_HORIZONTAL);
-		GridData gdVU = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
-
 		Composite projectNameComp = new Composite(top, SWT.NONE);
 		GridData gdProjName = new GridData(GridData.FILL_HORIZONTAL);
 		projectNameComp.setLayoutData(gdProjName);
@@ -190,6 +174,7 @@ public class OptionsPage extends FiniteStateWizardPage {
 		return true;
 	}
 	
+	@SuppressWarnings("unused")
 	private class FileOpenSelectionAdapter extends SelectionAdapter {
 		@Override
 		public void widgetSelected(SelectionEvent e) {
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/newproject/BBConfigurationInitializeOperation.java +0 -1
index d2238ed..ff7e00f 100644
@@ -18,7 +18,6 @@ import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.jface.operation.IRunnableWithProgress;
 
 import org.yocto.bc.bitbake.BBSession;
-import org.yocto.bc.bitbake.ProjectInfoHelper;
 import org.yocto.bc.ui.Activator;
 import org.yocto.bc.ui.model.ProjectInfo;
 
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/newproject/CreateBBCProjectOperation.java +1 -3
index 7517833..c1cc7fe 100644
@@ -11,7 +11,6 @@
  *******************************************************************************/
 package org.yocto.bc.ui.wizards.newproject;
 
-import java.io.IOException;
 import java.lang.reflect.InvocationTargetException;
 import java.net.URI;
 import java.net.URISyntaxException;
@@ -30,7 +29,6 @@ import org.eclipse.core.runtime.QualifiedName;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.ui.actions.WorkspaceModifyOperation;
 
-import org.yocto.bc.bitbake.ProjectInfoHelper;
 import org.yocto.bc.ui.Activator;
 import org.yocto.bc.ui.builder.BitbakeCommanderNature;
 import org.yocto.bc.ui.model.ProjectInfo;
@@ -47,7 +45,7 @@ public class CreateBBCProjectOperation extends WorkspaceModifyOperation {
 	public static final QualifiedName BBC_PROJECT_INIT = new QualifiedName(null, "BBC_PROJECT_INIT");
 	public static void addNatureToProject(IProject proj, String nature_id, IProgressMonitor monitor) throws CoreException {
 		IProjectDescription desc = proj.getDescription();
-		Vector natureIds = new Vector();
+		Vector<String> natureIds = new Vector<String>();
 		
 		natureIds.add(nature_id);
 		natureIds.addAll(Arrays.asList(desc.getNatureIds()));
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/variable/VariablePage.java +7 -6
index facb783..f8f5d57 100644
@@ -1,6 +1,6 @@
 package org.yocto.bc.ui.wizards.variable;
 
-import java.util.Comparator;
+//import java.util.Comparator;
 import java.util.Map;
 
 import org.eclipse.jface.viewers.ILabelProviderListener;
@@ -9,7 +9,7 @@ import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.TableViewer;
 import org.eclipse.jface.viewers.Viewer;
 import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.viewers.ViewerSorter;
+//import org.eclipse.jface.viewers.ViewerSorter;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
 import org.eclipse.swt.events.SelectionEvent;
@@ -35,7 +35,7 @@ public class VariablePage extends FiniteStateWizardPage {
 	private TableColumn c1;
 	private TableColumn c2;
 
-	protected VariablePage(Map model) {
+	protected VariablePage(Map<String, Object> model) {
 		super("Yocto Project BitBake Commander", model);
 		setTitle("Yocto Project BitBake Variable Viewer");
 		setDescription("Sort and fitler global BitBake variables by name or value.");
@@ -71,7 +71,7 @@ public class VariablePage extends FiniteStateWizardPage {
 		c1.setWidth(200);
 		c1.addSelectionListener(new SelectionAdapter() {
 			public void widgetSelected(SelectionEvent event) {
-				((VariableViewerSorter) viewer.getSorter()).doSort(0);
+				//((VariableViewerSorter) viewer.getSorter()).doSort(0);
 				viewer.refresh();
 			}
 		});
@@ -81,14 +81,13 @@ public class VariablePage extends FiniteStateWizardPage {
 		c2.setWidth(200);
 		c2.addSelectionListener(new SelectionAdapter() {
 			public void widgetSelected(SelectionEvent event) {
-				((VariableViewerSorter) viewer.getSorter()).doSort(1);
+				//((VariableViewerSorter) viewer.getSorter()).doSort(1);
 				viewer.refresh();
 			}
 		});
 
 		viewer.setContentProvider(new VariableContentProvider());
 		viewer.setLabelProvider(new VariableLabelProvider());
-		viewer.setSorter(new VariableViewerSorter());
 
 		viewer.setFilters(new ViewerFilter[] {new MapViewerFilter()});
 		setControl(top);
@@ -186,6 +185,7 @@ public class VariablePage extends FiniteStateWizardPage {
 	 * A tableviewer sorter found on the internet.
 	 *
 	 */
+	/* deprecated
 	class VariableViewerSorter extends ViewerSorter {
 		private static final int ASCENDING = 0;
 
@@ -226,6 +226,7 @@ public class VariablePage extends FiniteStateWizardPage {
 			return rc;
 		}
 	}
+	*/
 	
 	/**
 	 * A filter for the name/value model.
plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/variable/VariableWizard.java +4 -4
index 75a6125..a8154b5 100644
@@ -12,15 +12,15 @@ import org.yocto.bc.ui.wizards.FiniteStateWizard;
  */
 public class VariableWizard extends FiniteStateWizard {
 
-	private Map model;
+	private Map<String, Object> model;
 
-	public VariableWizard(Map model) {
+	public VariableWizard(Map<String, Object> model) {
 		this.model = model;
 		setWindowTitle("Yocto Project BitBake Commander");
 	}
 
 	public VariableWizard(IStructuredSelection selection) {
-		model = new Hashtable();
+		model = new Hashtable<String, Object>();
 	}
 	
 	@Override
@@ -29,7 +29,7 @@ public class VariableWizard extends FiniteStateWizard {
 	}
 	
 	@Override
-	public Map getModel() {
+	public Map<String, Object> getModel() {
 		return model;
 	}
 
Signature · 1 line
2.7.4
author
#8 lore raw

PATCH 8/8 org.yocto.sdk.remotetools: SubProgressMonitor -> SubMonitor

In reply to Tim Orling

[YOCTO #9908]

Suppress restriction, unchecked and unused warnings. Cleanup unused imports/variables.
Comment out some imports that were only used in commented out code.

---
 .../src/org/yocto/sdk/remotetools/YoctoJSONHelper.java   |  6 ++++++
 .../src/org/yocto/sdk/remotetools/actions/BaseModel.java | 12 ++++++------
 .../org/yocto/sdk/remotetools/actions/OprofileModel.java |  6 +++---
 .../org/yocto/sdk/remotetools/actions/PowertopModel.java |  6 +++---
 .../yocto/sdk/remotetools/actions/SystemtapHandler.java  |  2 ++
 .../sdk/remotetools/actions/SystemtapSettingDialog.java  |  1 +
 .../src/org/yocto/sdk/remotetools/actions/Ust2Model.java | 16 ++++++++--------
 .../org/yocto/sdk/remotetools/views/BaseFileView.java    |  1 +
 .../org/yocto/sdk/remotetools/views/TerminalViewTab.java |  6 ++++--
 .../org/yocto/sdk/remotetools/views/TerminalViewer.java  |  3 ++-
 .../sdk/remotetools/wizards/bsp/PropertiesPage.java      |  1 +
 11 files changed, 37 insertions(+), 23 deletions(-)
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/YoctoJSONHelper.java +6 -0
index 37ce54d..36723d9 100644
@@ -32,6 +32,7 @@ public class YoctoJSONHelper {
 		try {
 			
 			JSONObject obj = (JSONObject)JSONValue.parse(new FileReader(PROPERTIES_FILE));
+			@SuppressWarnings("unchecked")
 			Set<String> keys = obj.keySet();
 			if (!keys.isEmpty()) {
 				Iterator<String> iter = keys.iterator();
@@ -57,8 +58,13 @@ public class YoctoJSONHelper {
 		return properties;
 	}
 
+	@SuppressWarnings("unchecked")
 	public static void createBspJSONFile(HashSet<YoctoBspPropertyElement> properties) {
 		try {
+			/* should be JSONObject<String, Object> obj = new JSONObject<String, Object>();
+			 * but upstream json-simple would have to change.
+			 * See http://stackoverflow.com/questions/16415436/json-and-generics-in-java-type-safety-warning
+			 */
 			JSONObject obj = new JSONObject();
 			if (!properties.isEmpty()) {
 				Iterator<YoctoBspPropertyElement> it = properties.iterator();
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/BaseModel.java +6 -6
index 6686d39..d6004aa 100644
@@ -15,7 +15,7 @@ import java.io.InputStream;
 import java.lang.reflect.InvocationTargetException;
 
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.core.runtime.SubMonitor;
 import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.rse.core.model.IHost;
 import org.yocto.remote.utils.RemoteHelper;
@@ -84,23 +84,23 @@ abstract public class BaseModel implements IRunnableWithProgress {
 			monitor.beginTask(RUN_MSG + taskName, WORKLOAD);
 
 			monitor.subTask(INIT_MSG + taskName + DOTS);
-			init(new SubProgressMonitor(monitor, INIT_PERCENT));
+			init(SubMonitor.convert(monitor, INIT_PERCENT));
 
 			monitor.subTask(PRE_PROCESS_MSG + taskName + DOTS);
-			preProcess(new SubProgressMonitor(monitor, PRE_PROCESS_PERCENT));
+			preProcess(SubMonitor.convert(monitor, PRE_PROCESS_PERCENT));
 
 			monitor.subTask(PROCESS_MSG + taskName + DOTS);
-			process(new SubProgressMonitor(monitor, PROCESS_PERCENT));
+			process(SubMonitor.convert(monitor, PROCESS_PERCENT));
 
 			monitor.subTask(POST_PROCESS_MSG + taskName + DOTS);
-			postProcess(new SubProgressMonitor(monitor, POST_PROCESS_PERCENT));
+			postProcess(SubMonitor.convert(monitor, POST_PROCESS_PERCENT));
 		} catch (InterruptedException e){
 			throw new InterruptedException("User cancelled!");
 		} catch (InvocationTargetException e) {
 			throw e;
 		} finally {
 			monitor.subTask(CLEAN_MSG + taskName + DOTS);
-			clean(new SubProgressMonitor(monitor, CLEAN_PERCENT));
+			clean(SubMonitor.convert(monitor, CLEAN_PERCENT));
 			monitor.done();
 		}
 	}
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/OprofileModel.java +3 -3
index 7fbe7c6..d482448 100644
@@ -17,7 +17,7 @@ import java.io.IOException;
 import java.lang.reflect.InvocationTargetException;
 
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.core.runtime.SubMonitor;
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.rse.core.model.IHost;
 import org.eclipse.ui.IWorkbenchWindow;
@@ -118,7 +118,7 @@ public class OprofileModel extends BaseModel {
 			monitor.beginTask("Starting oprofile", 100);	
 			//start oprofile-server
 			monitor.subTask("Starting oprofile-server");
-			startServer(new SubProgressMonitor(monitor,80));
+			startServer(SubMonitor.convert(monitor,80));
 			
 			//start local oprofile-viewer
 			monitor.subTask("oprofile-viewer is running locally");
@@ -140,7 +140,7 @@ public class OprofileModel extends BaseModel {
 				//stop oprofile-server
 				if(stopServer) {
 					monitor.subTask("Stopping oprofile-viewer");
-					stopServer(new SubProgressMonitor(monitor,30));
+					stopServer(SubMonitor.convert(monitor,30));
 				}
 			}
 		}catch (InterruptedException e){
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/PowertopModel.java +3 -3
index 79bef61..20dc0e4 100644
@@ -16,7 +16,7 @@ import java.text.SimpleDateFormat;
 import java.util.Calendar;
 
 import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.core.runtime.SubMonitor;
 import org.eclipse.rse.core.model.IHost;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.ui.IWorkbenchPage;
@@ -74,10 +74,10 @@ public class PowertopModel extends BaseModel {
 		try {
 			//running powertop
 			monitor.subTask("Generating powertop data file remotely");
-			generateData(new SubProgressMonitor(monitor,30));
+			generateData(SubMonitor.convert(monitor,30));
 			//download datafile
 			monitor.subTask("Downloading powertop data file");
-			getDataFile(new SubProgressMonitor(monitor,30));
+			getDataFile(SubMonitor.convert(monitor,30));
 			//show it in the powertop view
 			display.syncExec(new Runnable() {
 				public void run() {
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/SystemtapHandler.java +2 -0
index 466f0c3..886e635 100644
@@ -9,6 +9,7 @@
  * Intel - initial API and implementation
  *******************************************************************************/
 package org.yocto.sdk.remotetools.actions;
+
 import java.lang.reflect.InvocationTargetException;
 
 import org.eclipse.core.commands.AbstractHandler;
@@ -34,6 +35,7 @@ import org.eclipse.ui.IWorkbenchWindow;
 import org.eclipse.ui.handlers.HandlerUtil;
 import org.yocto.remote.utils.RemoteHelper;
 
+@SuppressWarnings("restriction")
 public class SystemtapHandler extends AbstractHandler {
 	protected SystemtapSettingDialog setting;
 	protected String changeTerm="export TERM=vt100;";
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/SystemtapSettingDialog.java +1 -0
index 5c14c9a..ed11017 100644
@@ -219,6 +219,7 @@ public class SystemtapSettingDialog extends Dialog {
 	
  	@Override
 	protected void okPressed() {
+		@SuppressWarnings("unused")
 		IDialogSettings settings = Activator.getDefault().getDialogSettings();
 		metadata_location = metadataLocationText.getText();
 		if ( (metadata_location == null) || metadata_location.isEmpty()) {
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/actions/Ust2Model.java +8 -8
index 8dcc5b3..854a6a0 100644
@@ -25,7 +25,7 @@ import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.core.runtime.SubMonitor;
 import org.eclipse.rse.core.model.IHost;
 import org.eclipse.ui.IWorkbenchWindow;
 
@@ -46,6 +46,7 @@ public class Ust2Model extends BaseModel {
 	
 	private String prj_name;
 	
+	@SuppressWarnings("unused")
 	private IWorkbenchWindow window;
 	
 	public Ust2Model(IHost host, String trace, String project, IWorkbenchWindow window) {
@@ -89,6 +90,7 @@ public class Ust2Model extends BaseModel {
 		String traceName = localFile.substring(0,localFile.length()-LOCAL_FILE_SUFFIX.length());
 		
 		IWorkspaceRoot wsroot = ResourcesPlugin.getWorkspace().getRoot();
+		@SuppressWarnings("unused")
 		IPath full_path = wsroot.getFullPath();
 		IProject project = wsroot.getProject(prj_name);
 		IFolder traceFolder = project.getFolder(TRACE_FOLDER_NAME);
@@ -111,6 +113,7 @@ public class Ust2Model extends BaseModel {
 		}
 	}
 	
+	@SuppressWarnings("unused")
 	private String[] generateViewerParam() throws Exception {
 		String viewerParam=new String(LOCAL_EXEC);
 		int i;
@@ -135,23 +138,20 @@ public class Ust2Model extends BaseModel {
 	@Override
 	public void process(IProgressMonitor monitor)
 			throws InvocationTargetException, InterruptedException {
-		// TODO Auto-generated method stub
-		
-		String datafile;
-		
+
 		monitor.beginTask("Running ust", 100);		
 		try {
 			//preparing remote trace
 			
 			monitor.subTask("Preparing user space lttng data file remotely");
-			generateData(new SubProgressMonitor(monitor,30));
+			generateData(SubMonitor.convert(monitor,30));
 			
 			//download datafile to local
 			monitor.subTask("Downloading user space lttng data file");
-			getDataFile(new SubProgressMonitor(monitor,30));
+			getDataFile(SubMonitor.convert(monitor,30));
 			
 			//extract datafile and import to lttng project
-			importToProject(new SubProgressMonitor(monitor,30));
+			importToProject(SubMonitor.convert(monitor,30));
 				
 		}catch (InterruptedException e){
 			throw e;
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/views/BaseFileView.java +1 -0
index a5801c7..1df5a67 100644
@@ -85,6 +85,7 @@ public class BaseFileView extends ViewPart {
 					if(line!=null)
 						elements.add(line);
 				}while(line!=null);
+				in.close();
 			}catch (Exception e) {
 				e.printStackTrace();
 			}
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/views/TerminalViewTab.java +4 -2
index c3fbd6a..8c169f3 100644
@@ -38,7 +38,7 @@ import org.eclipse.swt.graphics.Font;
 import org.eclipse.swt.layout.FillLayout;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Menu;
+// import org.eclipse.swt.widgets.Menu;
 import org.eclipse.tm.internal.terminal.control.ITerminalViewControl;
 import org.eclipse.tm.internal.terminal.control.actions.TerminalActionClearAll;
 import org.eclipse.tm.internal.terminal.control.actions.TerminalActionCopy;
@@ -59,7 +59,8 @@ public class TerminalViewTab extends Composite {
 
 	private IPropertyChangeListener propertyChangeListener;
 
-	private Menu menu;
+	//  Only used in commented out code
+	//  Menu menu;
 
 	private boolean fMenuAboutToShow;
 
@@ -193,6 +194,7 @@ public class TerminalViewTab extends Composite {
 		}
 	}
 
+	@SuppressWarnings("deprecation")
 	public void updateTheme(final ITerminalViewControl control) {
 		if (control != null) {
 			IThemeManager mgr = PlatformUI.getWorkbench().getThemeManager();
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/views/TerminalViewer.java +2 -1
index 21d010c..38c6b5e 100644
@@ -131,7 +131,8 @@ public class TerminalViewer extends ViewPart implements ISelectionListener,
             pagebook.showPage(noTabShownLabel);
     }
     
-    private void showTabsPage(){
+    @SuppressWarnings("unused")
+	private void showTabsPage(){
         pagebook.showPage(tabFolder);
     }
 
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/wizards/bsp/PropertiesPage.java +1 -0
index 18149e7..58ee11f 100644
@@ -442,6 +442,7 @@ public class PropertiesPage extends WizardPage {
 	}
 
 	private void updateKernelValues(final String value, String property) {
+		@SuppressWarnings("unused")
 		String build_dir = "";
 		if ((bspElem.getBuildLoc() == null) || bspElem.getBuildLoc().isEmpty())
 			build_dir = bspElem.getMetadataLoc()+"/build";
Signature · 1 line
2.7.4