mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Cosmetics.
This commit is contained in:
parent
91e76dfe16
commit
bc1708309f
1 changed files with 0 additions and 3 deletions
|
@ -541,10 +541,8 @@ public class IndentAction extends TextEditorAction {
|
|||
* @return the current document or <code>null</code>
|
||||
*/
|
||||
private IDocument getDocument() {
|
||||
|
||||
ITextEditor editor= getTextEditor();
|
||||
if (editor != null) {
|
||||
|
||||
IDocumentProvider provider= editor.getDocumentProvider();
|
||||
IEditorInput input= editor.getEditorInput();
|
||||
if (provider != null && input != null)
|
||||
|
@ -563,7 +561,6 @@ public class IndentAction extends TextEditorAction {
|
|||
private ITextSelection getSelection() {
|
||||
ISelectionProvider provider= getSelectionProvider();
|
||||
if (provider != null) {
|
||||
|
||||
ISelection selection= provider.getSelection();
|
||||
if (selection instanceof ITextSelection)
|
||||
return (ITextSelection) selection;
|
||||
|
|
Loading…
Add table
Reference in a new issue