1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-10-04 05:53:34 +00:00
parent 91e76dfe16
commit bc1708309f

View file

@ -541,10 +541,8 @@ public class IndentAction extends TextEditorAction {
* @return the current document or <code>null</code> * @return the current document or <code>null</code>
*/ */
private IDocument getDocument() { private IDocument getDocument() {
ITextEditor editor= getTextEditor(); ITextEditor editor= getTextEditor();
if (editor != null) { if (editor != null) {
IDocumentProvider provider= editor.getDocumentProvider(); IDocumentProvider provider= editor.getDocumentProvider();
IEditorInput input= editor.getEditorInput(); IEditorInput input= editor.getEditorInput();
if (provider != null && input != null) if (provider != null && input != null)
@ -563,7 +561,6 @@ public class IndentAction extends TextEditorAction {
private ITextSelection getSelection() { private ITextSelection getSelection() {
ISelectionProvider provider= getSelectionProvider(); ISelectionProvider provider= getSelectionProvider();
if (provider != null) { if (provider != null) {
ISelection selection= provider.getSelection(); ISelection selection= provider.getSelection();
if (selection instanceof ITextSelection) if (selection instanceof ITextSelection)
return (ITextSelection) selection; return (ITextSelection) selection;