if(tokenMarker == null) return; try { Element map = getDefaultRootElement(); int lines = map.getElementCount(); for(int i = 0; i < lines; i++) { Element lineElement = map.getElement(i); int start = lineElement.getStartOffset(); String line = getText(start,lineElement .getEndOffset() - start);  tokenMarker.markTokens(line,i,i != 0); } } catch(BadLocationException bl) { bl.printStackTrace(); }
	public void setTokenMarker(JSTokenMarker tokenMarker)	{		this.tokenMarker = tokenMarker;	}