Skip to content

Commit

Permalink
Remove usage of internal class RenamePackageProcessor
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Rueger <[email protected]>

Remove usage of internal class RenamePackageProcessor

* fixes #5891
* this fixes the NoClassDefFoundError: org/eclipse/jdt/internal/corext/refactoring/rename/RenamePackageProcessor because RenamePackageProcessor seems to be internal
* we loose a tiny bit of detail in the Rename dialog method

Signed-off-by: Christoph Rueger <[email protected]>
  • Loading branch information
chrisrueger committed Nov 15, 2023
1 parent 02be440 commit 6e0f254
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bndtools.core/src/bndtools/refactor/PkgRenameParticipant.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.internal.corext.refactoring.rename.RenamePackageProcessor;
import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.CompositeChange;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
Expand Down Expand Up @@ -66,8 +65,6 @@ protected boolean initialize(Object element) {
sb.append("Bndtools: rename package '");
sb.append(pkgFragment.getElementName());
sb.append("' ");
if (((RenamePackageProcessor) this.getProcessor()).getRenameSubpackages())
sb.append("and subpackages ");
sb.append("to '");
sb.append(args.getNewName());
sb.append("'");
Expand Down

0 comments on commit 6e0f254

Please sign in to comment.