int tmp = bracket; bracket = mark - 1; mark = bracket + 1;
addToSelection(new Selection.Range( bracket,caret));
		private void doDoubleClick(MouseEvent evt)			throws BadLocationException		{			// Ignore empty lines			if(getLineLength(dragStartLine) == 0)				return;			try			{				int bracket = TextUtilities.findMatchingBracket(					buffer,dragStartLine,					Math.max(0,dragStartOffset - 1));				if(bracket != -1)				{					int mark = getMarkPosition();					// Hack					if(bracket < mark)					{						int tmp = bracket;						bracket = mark - 1;						mark = bracket + 1;					}					addToSelection(new Selection.Range(						mark,bracket));					moveCaretPosition(bracket,false);					return;				}			}			catch(BadLocationException bl)			{				Log.log(Log.ERROR,this,bl);			}			// Ok, it's not a bracket... select the word			String lineText = getLineText(dragStartLine);			String noWordSep = (String)buffer.getProperty("noWordSep");			if(dragStartOffset == getLineLength(dragStartLine))				dragStartOffset--;			int wordStart = TextUtilities.findWordStart(lineText,				dragStartOffset,noWordSep);			int wordEnd = TextUtilities.findWordEnd(lineText,				dragStartOffset+1,noWordSep);			int lineStart = getLineStartOffset(dragStartLine);			addToSelection(new Selection.Range(lineStart + wordStart,				lineStart + wordEnd));			moveCaretPosition(lineStart + wordEnd,false);		}