List of usage examples for org.eclipse.jface.preference IPreferenceStore getBoolean
boolean getBoolean(String name);
From source file:com.nokia.carbide.cdt.internal.builder.CarbideSBSv1Builder.java
License:Open Source License
protected boolean needsAbldMakefileGeneration(final ICarbideBuildConfiguration config, IPath componentPath) { // if this is an extension makefile then we always do the makefile step. if (isExtensionMakefile(componentPath)) { return true; }/*from w ww. j a v a2s . c om*/ ICarbideProjectInfo cpi = config.getCarbideProject(); File makefile = getMakefileForMMP(config, componentPath); if (!makefile.exists()) { return true; } final long makefileTimestamp = makefile.lastModified(); // we need to check the variant hrh files as well File prefixFile = config.getBuildContext().getPrefixFromVariantCfg().toFile(); if (prefixFile != null && prefixFile.lastModified() > makefileTimestamp) { return true; } for (File file : config.getBuildContext().getVariantHRHIncludes()) { if (file.lastModified() > makefileTimestamp) { return true; } } // see if the makefile is newer than the mmp and all of its includes Boolean regenerate = (Boolean) EpocEnginePlugin.runWithMMPData(componentPath, new DefaultMMPViewConfiguration(cpi.getProject(), config.getBuildContext(), new AcceptedNodesViewFilter()), new MMPDataRunnableAdapter() { public Object run(IMMPData data) { for (IPath path : data.getReferencedFiles()) { if (path.toFile().lastModified() > makefileTimestamp) { return Boolean.TRUE; } } return Boolean.FALSE; } }); if (regenerate.booleanValue()) { return true; } // now check to see if our makefile changes are there final IPreferenceStore prefsStore = CarbideBuilderPlugin.getDefault().getPreferenceStore(); if (prefsStore.getBoolean(BuilderPreferenceConstants.PREF_DONT_PROMPT_FOR_DEPENDENCY_MISMATCH) == false && areWeManagingTheMakeFiles && !makeFileHasOurChanges(makefile) && !WorkbenchUtils.isJUnitRunning()) { // if they are not then the user must have been building from the command line. this means that // any dependency files that exist could be stale so we need to delete them. we also need to // remove any object code since the corresponding dependency info will not be available. final int manageDeps[] = { IDialogConstants.OK_ID }; Display.getDefault().syncExec(new Runnable() { public void run() { // ask the user if they want to update now TrackDependenciesQueryDialog dlg = new TrackDependenciesQueryDialog( WorkbenchUtils.getSafeShell(), config.getCarbideProject()); manageDeps[0] = dlg.open(); } }); try { if (manageDeps[0] == IDialogConstants.OK_ID) { cleanupObjectCodeDirectory(new Path(makefile.getAbsolutePath()).removeLastSegments(1)); } } catch (Exception e) { CarbideBuilderPlugin.log(e); e.printStackTrace(); } if (manageDeps[0] == IDialogConstants.OK_ID) { return true; } else { return false; } } return false; }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean useBuiltInX86Vars() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_USE_BUILIN_X86_VARS); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean isBuildingTestComps() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_BUILD_TEST_COMPS); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean manageDependencies() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_MANAGE_DEPENDENCIES); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean useConcurrentBuilding() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_USE_CONCURRENT_BUILDING); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean useIncrementalBuilder() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_USE_INCREMENTAL_BUILDER); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean promptForMMPChangedAction() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_MMP_CHANGED_ACTION_PROMPT); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
/** * For SBSv1 global preferences only//from w w w . j a v a2 s .co m * @return */ public static boolean promtDontTrackDependencies() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_DONT_PROMPT_FOR_DEPENDENCY_MISMATCH); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean keepGoing() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_KEEP_GOING); }
From source file:com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage.java
License:Open Source License
public static boolean debugMode() { IPreferenceStore store = CarbideBuilderPlugin.getDefault().getPreferenceStore(); return store.getBoolean(BuilderPreferenceConstants.PREF_DEBUG_MODE); }