forked from eclipse-jdtls/eclipse.jdt.ls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate ReorgCorrections, TypeMismatch, UnresolvedElements sub proces…
…sors. Signed-off-by: Rob Stryker <rob@oxbeef.net>
- Loading branch information
1 parent
29c8799
commit 0591774
Showing
9 changed files
with
539 additions
and
2,253 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
2 changes: 1 addition & 1 deletion
2
...e/src/org/eclipse/jdt/ls/core/internal/corrections/proposals/JavadocTagsSubProcessor.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
64 changes: 64 additions & 0 deletions
64
...re/src/org/eclipse/jdt/ls/core/internal/corrections/proposals/ProblemLocationWrapper.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,64 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Red Hat Inc. and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Red Hat Inc. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.jdt.ls.core.internal.corrections.proposals; | ||
|
||
import org.eclipse.jdt.core.dom.ASTNode; | ||
import org.eclipse.jdt.core.dom.CompilationUnit; | ||
import org.eclipse.jdt.internal.ui.text.correction.IProblemLocationCore; | ||
|
||
public class ProblemLocationWrapper implements IProblemLocationCore { | ||
private IProblemLocationCore delegate; | ||
|
||
public ProblemLocationWrapper(IProblemLocationCore del) { | ||
this.delegate = del; | ||
} | ||
|
||
@Override | ||
public int getOffset() { | ||
return this.delegate.getOffset(); | ||
} | ||
|
||
@Override | ||
public int getLength() { | ||
return this.delegate.getLength(); | ||
} | ||
|
||
@Override | ||
public String getMarkerType() { | ||
return this.delegate.getMarkerType(); | ||
} | ||
|
||
@Override | ||
public int getProblemId() { | ||
return this.delegate.getProblemId(); | ||
} | ||
|
||
@Override | ||
public String[] getProblemArguments() { | ||
return this.delegate.getProblemArguments(); | ||
} | ||
|
||
@Override | ||
public boolean isError() { | ||
return this.delegate.isError(); | ||
} | ||
|
||
@Override | ||
public ASTNode getCoveringNode(CompilationUnit astRoot) { | ||
return this.delegate.getCoveringNode(astRoot); | ||
} | ||
@Override | ||
public ASTNode getCoveredNode(CompilationUnit astRoot) { | ||
return this.delegate.getCoveredNode(astRoot); | ||
} | ||
} |
231 changes: 121 additions & 110 deletions
231
.../org/eclipse/jdt/ls/core/internal/corrections/proposals/ReorgCorrectionsSubProcessor.java
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.