@Override public String getText() { IDocument document= getDocument(); if (document != null) { try { return new SelectionProcessor(document, fTabWidth).getText(this); } catch (BadLocationException x) { // ignore and default to super implementation } } return super.getText(); }
@Override public String getText() { IDocument document= getDocument(); if (document != null) { try { return new SelectionProcessor(document, fTabWidth).getText(this); } catch (BadLocationException x) { // ignore and default to super implementation } } return super.getText(); }
@Override public IRegion[] getRegions() { IDocument document= getDocument(); if (document != null) { try { return new SelectionProcessor(document, fTabWidth).getRanges(this); } catch (BadLocationException x) { // default to single region behavior } } return new IRegion[] {new Region(getOffset(), getLength())}; } }
@Override public IRegion[] getRegions() { IDocument document= getDocument(); if (document != null) { try { return new SelectionProcessor(document, fTabWidth).getRanges(this); } catch (BadLocationException x) { // default to single region behavior } } return new IRegion[] {new Region(getOffset(), getLength())}; } }