mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +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>
|
* @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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue