*/
protected Map getInitialAttributes() {
Map attributes= new HashMap(11);
ITextSelection selection= (ITextSelection) getTextEditor().getSelectionProvider().getSelection();
if (!selection.isEmpty()) {
int start= selection.getOffset();
int length= selection.getLength();
if (length < 0) {
length= -length;
start -= length;
}
MarkerUtilities.setCharStart(attributes, start);
MarkerUtilities.setCharEnd(attributes, start + length);
// marker line numbers are 1-based
int line= selection.getStartLine();
MarkerUtilities.setLineNumber(attributes, line == -1 ? -1 : line + 1);
IDocument document= getTextEditor().getDocumentProvider().getDocument(getTextEditor().getEditorInput());
MarkerUtilities.setMessage(attributes, getLabelProposal(document, start, length));