private void internalInvalidateTextPresentation(int offset, int length) { if (fCommandQueue != null) { fCommandQueue.add(new ProjectionCommand(offset, length)); } else { invalidateTextPresentation(offset, length); } }
private void internalInvalidateTextPresentation(int offset, int length) { if (fCommandQueue != null) { fCommandQueue.add(new ProjectionCommand(offset, length)); } else { invalidateTextPresentation(offset, length); } }
private void executeProjectionCommands(ProjectionCommandQueue commandQueue, boolean fireRedraw) throws BadLocationException { ProjectionCommand command; Iterator<ProjectionCommand> e= commandQueue.iterator(); while (e.hasNext()) { command= e.next(); switch (command.fType) { case ProjectionCommand.ADD: addMasterDocumentRange(command.fProjection, command.fOffset, command.fLength); break; case ProjectionCommand.REMOVE: removeMasterDocumentRange(command.fProjection, command.fOffset, command.fLength); break; case ProjectionCommand.INVALIDATE_PRESENTATION: if (fireRedraw) invalidateTextPresentation(command.fOffset, command.fLength); break; } } commandQueue.clear(); }
private void executeProjectionCommands(ProjectionCommandQueue commandQueue, boolean fireRedraw) throws BadLocationException { ProjectionCommand command; Iterator<ProjectionCommand> e= commandQueue.iterator(); while (e.hasNext()) { command= e.next(); switch (command.fType) { case ProjectionCommand.ADD: addMasterDocumentRange(command.fProjection, command.fOffset, command.fLength); break; case ProjectionCommand.REMOVE: removeMasterDocumentRange(command.fProjection, command.fOffset, command.fLength); break; case ProjectionCommand.INVALIDATE_PRESENTATION: if (fireRedraw) invalidateTextPresentation(command.fOffset, command.fLength); break; } } commandQueue.clear(); }
executeProjectionCommands(commandQueue, fireRedraw); if (!fireRedraw) invalidateTextPresentation(); } catch (IllegalArgumentException x) { reinitializeProjection();
executeProjectionCommands(commandQueue, fireRedraw); if (!fireRedraw) invalidateTextPresentation(); } catch (IllegalArgumentException x) { reinitializeProjection();