protected void initializeProblemMarkerID(BuilderBase builder) { if (builder != null) { PROBLEM_MARKER_ID = builder.getErrorMarkerID(); } else { PROBLEM_MARKER_ID = parseController.getLanguage().getName() + ".builder"; } }
/** * Constructor to use when you want to create markers that are related to a particular builder and * that will have a marker type and builder id based on that builder. * * @param file The file on which markers are to be placed * @param parseController The source of the parse stream to which error messages will be related * @param builder The builder that is presumably driving the creation of markers and that defines * the type of marker and builder id that will be used here */ public MarkerCreatorWithBatching( IFile file, IParseController parseController, BuilderBase builder) { super(file, parseController, builder.getErrorMarkerID()); this.builder = builder; initializeBuidlerID(builder); initializeProblemMarkerID(builder); }