Only update FRC Java Projects (fixes artf2627)

Change-Id: I62715ab5ed01d1d6c6ee1a877fad3d12a5c0219b
This commit is contained in:
Kevin O'Connor
2014-08-03 13:13:03 -04:00
parent 14f201cd36
commit b86c114939

View File

@@ -100,11 +100,15 @@ public class WPILibJavaPlugin extends AbstractUIPlugin implements IStartup {
IProject[] projects = root.getProjects();
// Loop over all projects
for (IProject project : projects) {
try {
updateVariables(project);
} catch (CoreException e) {
WPILibJavaPlugin.logError("Error updating projects.", e);
}
try {
if(project.hasNature("edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature")){
WPILibJavaPlugin.logInfo("Updating project");
updateVariables(project);
} else {
}
} catch (CoreException e) {
WPILibJavaPlugin.logError("Error updating projects.", e);
}
}
}