-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support refactoring: Convert anonymous class to nested
Signed-off-by: Sheng Chen <[email protected]>
- Loading branch information
Showing
6 changed files
with
326 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...rg/eclipse/jdt/ls/core/internal/text/correction/RefactoringCorrectionCommandProposal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2019 Microsoft Corporation and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Microsoft Corporation - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.jdt.ls.core.internal.text.correction; | ||
|
||
import java.util.List; | ||
|
||
import org.eclipse.jdt.core.ICompilationUnit; | ||
import org.eclipse.jdt.ls.core.internal.corrections.proposals.RefactoringCorrectionProposal; | ||
|
||
public class RefactoringCorrectionCommandProposal extends RefactoringCorrectionProposal { | ||
|
||
private String command; | ||
private List<Object> commandArguments; | ||
|
||
/** | ||
* @param name | ||
* @param kind | ||
* @param cu | ||
* @param relevance | ||
*/ | ||
public RefactoringCorrectionCommandProposal(String name, String kind, ICompilationUnit cu, int relevance, String command, List<Object> commandArguments) { | ||
super(name, kind, cu, null, relevance); | ||
this.command = command; | ||
this.commandArguments = commandArguments; | ||
} | ||
|
||
public String getCommand() { | ||
return command; | ||
} | ||
|
||
public List<Object> getCommandArguments() { | ||
return commandArguments; | ||
} | ||
|
||
} |
Oops, something went wrong.