public static int getFlag(IProject project, String flagId) { try { return Integer.parseInt(getString(project, flagId)); } catch (NumberFormatException nfe) { return 0; } }
/** * Returns the value for the requested preference, or 0 if there was a problem getting the preference value * @param project to use as a project specific settings scope, or null * @param flagId the id of the preference to retrieve * @return the value for the given preference id */ public static int getFlag(IProject project, String flagId) { try { return Integer.parseInt(getString(project, flagId)); } catch (NumberFormatException nfe) { return 0; } }
/** * Returns the boolean preference denoted by the flag id (preference id) * @param project to use as a project specific settings scope, or null * @param flagId the id of the preference to retrieve * @return the boolean value for the given preference id */ public static boolean getBoolean(IProject project, String flagId) { return Boolean.valueOf(getString(project, flagId)).booleanValue(); }
public static boolean getBoolean(IProject project, String flagId) { return Boolean.valueOf(getString(project, flagId)).booleanValue(); }
private String getDocLocation(IFile file) { return CompilerFlags.getString(file.getProject(), CompilerFlags.S_DOC_FOLDER); }
private String getDocLocation(IFile file) { return CompilerFlags.getString(file.getProject(), CompilerFlags.S_DOC_FOLDER); }