Skip to content

Commit 9cdff86

Browse files
authored
Rewrite re-work to adopt the latest (#1704)
* Remove rewrite recipes and upgrade Rewrite core Signed-off-by: BoykoAlex <[email protected]> * UI tweaks to not show Rewrite upgrades Signed-off-by: BoykoAlex <[email protected]> * Remove Eclipse UI for Rewrite Signed-off-by: BoykoAlex <[email protected]> * Remove from VSCode Signed-off-by: BoykoAlex <[email protected]> * Remove remaining major/minor version upgrade code Signed-off-by: BoykoAlex <[email protected]> * Update init.gradle Signed-off-by: BoykoAlex <[email protected]> --------- Signed-off-by: BoykoAlex <[email protected]>
1 parent c8c51b6 commit 9cdff86

File tree

117 files changed

+6213
-6907
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+6213
-6907
lines changed

eclipse-language-servers/org.springframework.tooling.boot.ls/plugin.xml

Lines changed: 0 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,6 @@
232232
id="org.springsource.ide.eclipse.commons.preferencePage"
233233
name="Spring">
234234
</page>
235-
<page
236-
category="org.springsource.ide.eclipse.commons.preferencePage"
237-
class="org.springframework.tooling.boot.ls.RewritePreferencePage"
238-
id="org.springframework.tooling.boot.ls.rewrite"
239-
name="OpenRewrite">
240-
</page>
241-
<page
242-
category="org.springframework.tooling.boot.ls.rewrite"
243-
class="org.springframework.tooling.boot.ls.RecipeFiltersPreferencePage"
244-
id="org.springframework.tooling.boot.ls.rewrite.filters"
245-
name="Filter Recipes">
246-
</page>
247-
<page
248-
category="org.springframework.tooling.boot.ls.rewrite"
249-
class="org.springframework.tooling.boot.ls.PlugRecipesPreferencePage"
250-
id="org.springframework.tooling.boot.ls.rewrite.load"
251-
name="Plug Recipes">
252-
</page>
253235
<page
254236
category="org.springsource.ide.eclipse.commons.preferencePage"
255237
class="org.springframework.tooling.boot.ls.prefs.ValidationPreferencePage"
@@ -287,14 +269,6 @@
287269
</with>
288270
</activeWhen>
289271
</handler>
290-
<handler
291-
class="org.springframework.tooling.boot.ls.commands.RewriteRefactoringsHandler$RefactorBootProject"
292-
commandId="org.springframework.tooling.boot.ls.rewrite.refactor">
293-
</handler>
294-
<handler
295-
class="org.springframework.tooling.boot.ls.commands.RewriteRefactoringsHandler$UpgradeBootVersion"
296-
commandId="org.springframework.tooling.boot.ls.rewrite.boot-upgrade">
297-
</handler>
298272
<handler
299273
class="org.springframework.tooling.boot.ls.commands.RefreshModulithMetadata"
300274
commandId="org.springframework.tooling.boot.ls.modulith.metadata.refresh">
@@ -325,18 +299,6 @@
325299
categoryId="org.springframework.ide.eclipse.commands"
326300
name="Toggle Comment">
327301
</command>
328-
<command
329-
categoryId="org.springframework.ide.eclipse.commands"
330-
description="Rewrite Refactorings for Spring Boot projects"
331-
id="org.springframework.tooling.boot.ls.rewrite.refactor"
332-
name="Refactor Spring Boot Project...">
333-
</command>
334-
<command
335-
categoryId="org.springframework.ide.eclipse.commands"
336-
description="Upgrade Spring Boot Version for a Spring Boot project"
337-
id="org.springframework.tooling.boot.ls.rewrite.boot-upgrade"
338-
name="Upgrade Spring Boot Version...">
339-
</command>
340302
<command
341303
description="Refresh project&apos;s Modulith metadata and re-validate the project"
342304
id="org.springframework.tooling.boot.ls.modulith.metadata.refresh"
@@ -583,160 +545,6 @@
583545
<menuContribution
584546
allPopups="false"
585547
locationURI="popup:org.springframework.ide.eclipse.ui.tools?after=boot">
586-
<command
587-
commandId="org.springframework.tooling.boot.ls.rewrite.boot-upgrade"
588-
id="org.springframework.tooling.boot.ls.rewrite.boot-upgrade"
589-
label="Upgrade Spring Boot Version..."
590-
style="push">
591-
<visibleWhen
592-
checkEnabled="false">
593-
<and>
594-
<count
595-
value="1">
596-
</count>
597-
<iterate>
598-
<or>
599-
<adapt
600-
type="org.eclipse.core.resources.IFile">
601-
<and>
602-
<test
603-
forcePluginActivation="true"
604-
property="org.springsource.ide.eclipse.boot.isBootResource">
605-
</test>
606-
<or>
607-
<and>
608-
<test
609-
property="org.eclipse.core.resources.path"
610-
value="/*/pom.xml">
611-
</test>
612-
<test
613-
property="org.eclipse.core.resources.projectNature"
614-
value="org.eclipse.m2e.core.maven2Nature">
615-
</test>
616-
</and>
617-
<and>
618-
<test
619-
property="org.eclipse.core.resources.path"
620-
value="/*/build.gradle">
621-
</test>
622-
<test
623-
property="org.eclipse.core.resources.projectNature"
624-
value="org.eclipse.buildship.core.gradleprojectnature">
625-
</test>
626-
</and>
627-
</or>
628-
</and>
629-
</adapt>
630-
<adapt
631-
type="org.eclipse.core.resources.IProject">
632-
<and>
633-
<test
634-
forcePluginActivation="true"
635-
property="org.springsource.ide.eclipse.boot.isBootResource">
636-
</test>
637-
<test
638-
property="org.eclipse.core.resources.projectNature"
639-
value="org.eclipse.jdt.core.javanature">
640-
</test>
641-
<or>
642-
<test
643-
property="org.eclipse.core.resources.projectNature"
644-
value="org.eclipse.m2e.core.maven2Nature">
645-
</test>
646-
<test
647-
property="org.eclipse.core.resources.projectNature"
648-
value="org.eclipse.buildship.core.gradleprojectnature">
649-
</test>
650-
</or>
651-
</and>
652-
</adapt>
653-
</or>
654-
</iterate>
655-
<test
656-
property="org.springframework.tooling.boot.ls.areRewriteProjectRefactoringsOn">
657-
</test>
658-
</and>
659-
</visibleWhen>
660-
</command>
661-
<command
662-
commandId="org.springframework.tooling.boot.ls.rewrite.refactor"
663-
id="org.springframework.tooling.boot.ls.rewrite.refactor"
664-
label="Refactor Spring Boot Project..."
665-
style="push">
666-
<visibleWhen
667-
checkEnabled="false">
668-
<and>
669-
<count
670-
value="1">
671-
</count>
672-
<iterate>
673-
<or>
674-
<adapt
675-
type="org.eclipse.core.resources.IFile">
676-
<and>
677-
<test
678-
forcePluginActivation="true"
679-
property="org.springsource.ide.eclipse.boot.isBootResource">
680-
</test>
681-
<or>
682-
<and>
683-
<test
684-
property="org.eclipse.core.resources.path"
685-
value="/*/pom.xml">
686-
</test>
687-
<test
688-
property="org.eclipse.core.resources.projectNature"
689-
value="org.eclipse.m2e.core.maven2Nature">
690-
</test>
691-
</and>
692-
<and>
693-
<test
694-
property="org.eclipse.core.resources.path"
695-
value="/*/build.gradle">
696-
</test>
697-
<test
698-
property="org.eclipse.core.resources.projectNature"
699-
value="org.eclipse.buildship.core.gradleprojectnature">
700-
</test>
701-
</and>
702-
</or>
703-
</and>
704-
</adapt>
705-
<adapt
706-
type="org.eclipse.core.resources.IProject">
707-
<and>
708-
<test
709-
forcePluginActivation="true"
710-
property="org.springsource.ide.eclipse.boot.isBootResource">
711-
</test>
712-
<test
713-
property="org.eclipse.core.resources.projectNature"
714-
value="org.eclipse.jdt.core.javanature">
715-
</test>
716-
<or>
717-
<test
718-
property="org.eclipse.core.resources.projectNature"
719-
value="org.eclipse.m2e.core.maven2Nature">
720-
</test>
721-
<test
722-
property="org.eclipse.core.resources.projectNature"
723-
value="org.eclipse.buildship.core.gradleprojectnature">
724-
</test>
725-
</or>
726-
</and>
727-
</adapt>
728-
</or>
729-
</iterate>
730-
<test
731-
property="org.springframework.tooling.boot.ls.areRewriteProjectRefactoringsOn">
732-
</test>
733-
</and>
734-
</visibleWhen>
735-
</command>
736-
<separator
737-
name="org.springframework.tooling.boot.ls.rewrite"
738-
visible="true">
739-
</separator>
740548
<command
741549
commandId="org.springframework.tooling.boot.ls.modulith.metadata.refresh"
742550
id="org.springframework.tooling.boot.ls.modulith.metadata.refresh"

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/PlugRecipesPreferencePage.java

Lines changed: 0 additions & 41 deletions
This file was deleted.

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/RecipeFiltersPreferencePage.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/RewritePreferencePage.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

eclipse-language-servers/org.springframework.tooling.boot.ls/src/org/springframework/tooling/boot/ls/commands/RecipeDescriptor.java

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)