public static List<String> getClassesToSkip() { Preferences preferences = InstanceScope.INSTANCE.getNode(ICodeGenConstants.PLUGIN_ID); String userInput = preferences.get( ICodeGenConstants.CLASSES_TO_SKIP, ICodeGenConstants.CLASSES_TO_SKIP_DEFAULT); return GeneralCodeGenUtils.getClassesToSkip(userInput); }
public static void addMarkers(String generalMessage, Set<Violation> violations) { List<Violation> list = GeneralCodeGenUtils.asSortedList(violations); for (Violation violation : list) { IFile ifile = convert(violation.getLocation().getFile()); FileUtility.addMarker( ifile, generalMessage + ": " + violation.getDescripton(), violation.getLocation(), IMarker.PRIORITY_NORMAL, ICodeGenConstants.PLUGIN_ID, -1); } }