From 57c8543ded44254bf93a42626cc35ae60cb6eeed Mon Sep 17 00:00:00 2001 From: John Steele Date: Thu, 15 Dec 2022 13:36:13 -0800 Subject: [PATCH] mtr theme --- README.md | 4 +- .../feature.properties | 4 +- .../windup/core/internal/messages.properties | 8 +- .../tools/windup/runtime/WindupRmiClient.java | 2 +- .../windup/runtime/WindupRuntimePlugin.java | 2 +- .../intro/windupContent.xml | 6 +- .../plugin.properties | 24 +++--- plugins/org.jboss.tools.windup.ui/plugin.xml | 16 ++-- .../schema/xsd/windup-jboss-ruleset.xsd | 4 +- .../ui/internal/explorer/IssueExplorer.java | 2 +- .../internal/launch/WindupLaunchDelegate.java | 2 +- .../windup/ui/internal/messages.properties | 78 +++++++++---------- .../rules/RuleRepositoryContentProvider.java | 2 +- .../org.jboss.tools.windup.ui/windup-ui.e4xmi | 4 +- site/category.xml | 8 +- site/pom.xml | 2 +- 16 files changed, 84 insertions(+), 84 deletions(-) diff --git a/README.md b/README.md index f9774717..43467eec 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ windup-eclipse-plugin ===================== -Migration Toolkit for Applications (MTA) Eclipse Plugin +Migration Toolkit for Runtimes (MTR) Eclipse Plugin ## Summary [Windup](https://github.com/windup/windup) is a command-line Application Migration and Modernization assessment tool. -Provides Eclipse integration with the Migration Toolkit for Applications (MTA) project. +Provides Eclipse integration with the Migration Toolkit for Runtimes (MTR) project. ## Installing diff --git a/features/org.jboss.tools.windup.feature/feature.properties b/features/org.jboss.tools.windup.feature/feature.properties index c2f4d2a7..5bca3e1f 100644 --- a/features/org.jboss.tools.windup.feature/feature.properties +++ b/features/org.jboss.tools.windup.feature/feature.properties @@ -8,9 +8,9 @@ # Contributors: # Red Hat JBoss Middleware - Initial implementation. ############################################################################## -featureName=Migration Toolkit for Applications (MTA) +featureName=Migration Toolkit for Runtimes (MTR) providerName=Red Hat JBoss Middleware -description=Application migration and modernization assessment using MTA. +description=Application migration and modernization assessment using MTR. descriptionURL=http://windup.jboss.org/ copyright=Copyright (c) 2020 Red Hat, Inc. and others.\n\ diff --git a/plugins/org.jboss.tools.windup.core/src/org/jboss/tools/windup/core/internal/messages.properties b/plugins/org.jboss.tools.windup.core/src/org/jboss/tools/windup/core/internal/messages.properties index 734451cc..98f7f796 100644 --- a/plugins/org.jboss.tools.windup.core/src/org/jboss/tools/windup/core/internal/messages.properties +++ b/plugins/org.jboss.tools.windup.core/src/org/jboss/tools/windup/core/internal/messages.properties @@ -1,8 +1,8 @@ -startingWindup=Starting MTA -generate_windup_reports=Generating MTA Reports -generate_windup_graph_for=Initializing MTA using {0}. This may take a moment... +startingWindup=Starting MTR +generate_windup_reports=Generating MTR Reports +generate_windup_graph_for=Initializing MTR using {0}. This may take a moment... error_generating_report_for=Error generating report for {0} removing_old_report=Removing old reports. waiting_for_furnace=Waiting for Furnace. -get_windup_graph_context_factory=Get MTA Graph Context Factory +get_windup_graph_context_factory=Get MTR Graph Context Factory writingUserIgnoreFile=Writing user ignore file \ No newline at end of file diff --git a/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRmiClient.java b/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRmiClient.java index 67f81e9f..82f76da8 100644 --- a/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRmiClient.java +++ b/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRmiClient.java @@ -152,7 +152,7 @@ public void onProcessComplete(int exitValue) { executor.setStreamHandler(new PumpStreamHandler(new LogOutputStream() { @Override protected void processLine(String line, int logLevel) { - logInfo("Message from MTA executor: " + line); //$NON-NLS-1$ + logInfo("Message from MTR executor: " + line); //$NON-NLS-1$ monitor.worked(1); } })); diff --git a/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRuntimePlugin.java b/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRuntimePlugin.java index 0a72d0b5..8387d2cd 100644 --- a/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRuntimePlugin.java +++ b/plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRuntimePlugin.java @@ -116,7 +116,7 @@ private static File getDefaultWindupHome() { public static Help findWindupHelpCache() { Help result = new Help(); File windupHome = WindupRuntimePlugin.computeWindupHome().toFile(); - WindupRuntimePlugin.logInfo("Retrieving help.xml options from MTA_HOME: " + windupHome.toString()); + WindupRuntimePlugin.logInfo("Retrieving help.xml options from MTR_HOME: " + windupHome.toString()); File cacheFile = new File(windupHome, HELP_CACHE); try { URL url = cacheFile.toURI().toURL(); diff --git a/plugins/org.jboss.tools.windup.ui/intro/windupContent.xml b/plugins/org.jboss.tools.windup.ui/intro/windupContent.xml index 4be276a6..0f759995 100644 --- a/plugins/org.jboss.tools.windup.ui/intro/windupContent.xml +++ b/plugins/org.jboss.tools.windup.ui/intro/windupContent.xml @@ -1,12 +1,12 @@ - - - Get started with MTA Eclipse tools + Get started with MTR Eclipse tools diff --git a/plugins/org.jboss.tools.windup.ui/plugin.properties b/plugins/org.jboss.tools.windup.ui/plugin.properties index 2dc194a7..56863cd1 100644 --- a/plugins/org.jboss.tools.windup.ui/plugin.properties +++ b/plugins/org.jboss.tools.windup.ui/plugin.properties @@ -1,33 +1,33 @@ -plugin.name=MTA UI +plugin.name=MTR UI plugin.vendor=Red Hat JBoss Middleware -category.MTA.name=MTA +category.MTR.name=MTR view.windup_report.name=Report view.issueDetails=Issue Details serverStateDecoratorLabel=Server State Decorator -menu.windup.name=MTA -command.show_in_windup_report_viewer.name=Show in MTA Report View -command.generate_windup_report.name=Generate MTA Report -command.export_windup_report.name=Export MTA Report +menu.windup.name=MTR +command.show_in_windup_report_viewer.name=Show in MTR Report View +command.generate_windup_report.name=Generate MTR Report +command.export_windup_report.name=Export MTR Report -export.windup_reports.name=MTA Reports -export.windup_reports.description=Export the MTA Report for one or more selected projects. +export.windup_reports.name=MTR Reports +export.windup_reports.description=Export the MTR Report for one or more selected projects. -keywords.windup_report.labels=MTA report reports +keywords.windup_report.labels=MTR report reports # Launch -windupLaunch.run=Run MTA +windupLaunch.run=Run MTR # Launch -windupLaunch.configType.name=MTA +windupLaunch.configType.name=MTR #rule wizards _UI_CREATE_NEW_XML_RULESET=Create a new XML Ruleset _UI_CREATE_NEW_JAVA_RULESET=Create a new Java Ruleset -_UI_WIZARD_WINDUP_CATEGORY=MTA +_UI_WIZARD_WINDUP_CATEGORY=MTR #ruleset editor context.rulesetEditor.editingText.description = Ruleset Editor Context diff --git a/plugins/org.jboss.tools.windup.ui/plugin.xml b/plugins/org.jboss.tools.windup.ui/plugin.xml index 7305e846..8db6e8e0 100644 --- a/plugins/org.jboss.tools.windup.ui/plugin.xml +++ b/plugins/org.jboss.tools.windup.ui/plugin.xml @@ -4,7 +4,7 @@ + name="Create MTR Run Configuration"> + label="MTR Getting Started" visible="true"> + name="MTR"> + name="MTR"> %_UI_CREATE_NEW_XML_RULESET @@ -902,7 +902,7 @@ base-type="org.eclipse.core.runtime.xml" file-extensions="xml" id="org.jboss.tools.windup.ui.rulesetContentType" - name="MTA Ruleset" + name="MTR Ruleset" priority="high"> A reference to a category as defined in MTA_HOME/rules/migration-core/core.windup.categories.xml.

+

A reference to a category as defined in MTR_HOME/rules/migration-core/core.windup.categories.xml.

The default categories are:

  • mandatory
  • @@ -651,7 +651,7 @@ A reference to a category as defined in MTA_HOME/rules/migration-core/core.windup.categories.xml.

    +

    A reference to a category as defined in MTR_HOME/rules/migration-core/core.windup.categories.xml.

    The default categories are:

    • mandatory
    • diff --git a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/explorer/IssueExplorer.java b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/explorer/IssueExplorer.java index 7272a2ee..0ff634a6 100644 --- a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/explorer/IssueExplorer.java +++ b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/explorer/IssueExplorer.java @@ -353,7 +353,7 @@ public void serverShutdown(IStatus status) { CButton preferenceButton = new CButton(buttonBar, SWT.NONE); preferenceButton.setHotImage(WindupUIPlugin.getDefault().getImageRegistry().get(WindupUIPlugin.IMG_CONFIG_HOT)); preferenceButton.setColdImage(WindupUIPlugin.getDefault().getImageRegistry().get(WindupUIPlugin.IMG_CONFIG_COLD)); - preferenceButton.setToolTipText("Configure MTA"); //$NON-NLS-1$ + preferenceButton.setToolTipText("Configure MTR"); //$NON-NLS-1$ preferenceButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { diff --git a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/launch/WindupLaunchDelegate.java b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/launch/WindupLaunchDelegate.java index 70283234..512ec716 100644 --- a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/launch/WindupLaunchDelegate.java +++ b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/launch/WindupLaunchDelegate.java @@ -60,7 +60,7 @@ public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IPr Display.getDefault().asyncExec(() -> { MessageDialog.openInformation(Display.getDefault().getActiveShell(), Messages.launchErrorTitle, Messages.launchErrorMessage); - WindupUIPlugin.logErrorMessage("WindupLaunchDelegate:: unable to launch MTA. Input is empty."); //$NON-NLS-1$ + WindupUIPlugin.logErrorMessage("WindupLaunchDelegate:: unable to launch MTR. Input is empty."); //$NON-NLS-1$ }); } else { diff --git a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/messages.properties b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/messages.properties index 96ce16fc..d66b6f9d 100644 --- a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/messages.properties +++ b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/messages.properties @@ -1,24 +1,24 @@ link_with_editor_and_selection=Link with Editor and Selection -generate_windup_report=Generate MTA Report +generate_windup_report=Generate MTR Report refresh=Refresh -report_has_no_information_on_resource=The MTA report has no information on the currently selected resource. -windup_report_has_not_been_generated=A MTA report has not yet been generated for the project containing the selected resource. +report_has_no_information_on_resource=The MTR report has no information on the currently selected resource. +windup_report_has_not_been_generated=A MTR report has not yet been generated for the project containing the selected resource. noWindupReport=No report available. -select_projects_to_generate_windup_reports_for=Select projects to generate MTA reports for: +select_projects_to_generate_windup_reports_for=Select projects to generate MTR reports for: Question=Question Options=Options Rules=Rules OPTION=Option VALUE=Value -windupOption=MTA Configuration Option +windupOption=MTR Configuration Option selectRepositories=Select Repositories selectExistingRepositories=Select from existing repositories: -WindupStartingTitle=Starting MTA -WindupStartingDetail=Starting MTA in Server Mode +WindupStartingTitle=Starting MTR +WindupStartingDetail=Starting MTR in Server Mode WindupStartingError=Unable to start the Windup -WindupServerError=MTA Process Terminated +WindupServerError=MTR Process Terminated WindupNotStartedMessage=Error message: WindupNotStartedDebugInfo=Possible solutions: @@ -28,24 +28,24 @@ WindupStartNotStartingSolution3= - Reassign RMI port WindupStartNotStartingSolution4= - Restart Eclipse WindupStartNotStartingSolution5= - See the log for more information {workspace-location}/.metadata/.log -WindupServerLabel=MTA +WindupServerLabel=MTR WindupShutdowCheck=Checking for existing Windup. WindupShuttingDown=Shutting Down Windup WindupShuttingDownError=Error occurred while trying to shutdown the Windup. WindupRunStartScipt=Executing windup-cli startup script. This may take a moment... -WindupNotExecutableTitle=Error while running MTA -WindupNotExecutableInfo=The MTA script is not executable. +WindupNotExecutableTitle=Error while running MTR +WindupNotExecutableInfo=The MTR script is not executable. -WindupPreferenceHome=MTA Home: +WindupPreferenceHome=MTR Home: WindupPreferenceRmiPort=Server port: WindupPreferenceJRE=JRE Home: WindupPreferenceStartTimeoutDuration=Start timeout: WindupPreferenceStopTimeoutDuration=Stop timeout: -showWindupGettingStarted=Show getting started with MTA +showWindupGettingStarted=Show getting started with MTR showInIssueExplorer=Show Issue in Issue Explorer showIssueDetails=Show Issue Details @@ -56,8 +56,8 @@ createRuleFromSelection=Create Rule From Selection createRuleFromXPath=Create Rule From XPath #rules -refreshingRules=Refreshing MTA rule information -refreshingRulesError=An error occurred while refreshing the MTA rule information. +refreshingRules=Refreshing MTR rule information +refreshingRulesError=An error occurred while refreshing the MTR rule information. systemRulesets=System customRulesets=Custom removeRuleset=Remove Ruleset from View @@ -74,10 +74,10 @@ ImportRuleset_title=Import Ruleset ImportRuleset_browse=Browse... NewJavaRuleset_title=New Java Ruleset _ERROR_BAD_FILENAME_EXTENSION=The file name must end in one of the following extensions {0}. -_UI_WIZARD_CREATE_XML_RULESET_FILE_HEADING=MTA XML Ruleset +_UI_WIZARD_CREATE_XML_RULESET_FILE_HEADING=MTR XML Ruleset _UI_WIZARD_IMPORT_XML_RULESET_FILE_HEADING=Import XML Ruleset _UI_WIZARD_IMPORT_XML_RULESET_FILE=XML File: -_UI_WIZARD_CREATE_JAVA_RULESET_FILE_HEADING=MTA Java Ruleset +_UI_WIZARD_CREATE_JAVA_RULESET_FILE_HEADING=MTR Java Ruleset _UI_WIZARD_CREATE_XML_FILE_EXPL=Create a new XML Ruleset. _UI_WIZARD_IMPORT_XML_FILE_EXPL=Import an existing XML Ruleset. _UI_WIZARD_CREATE_JAVA_FILE_EXPL=Create a new Java Ruleset. @@ -139,31 +139,31 @@ messageTab=Message taskRule=This rule is a task -PreviewQuickFix=Preview MTA Quick Fix -ApplyQuickFix=Apply MTA Quick Fix +PreviewQuickFix=Preview MTR Quick Fix +ApplyQuickFix=Apply MTR Quick Fix MarkAsFixed=Mark as Fixed windupGettingStartedName=Getting Started -WindupReportExport_page_one_title=Export MTA Reports -WindupReportExport_page_one_description=Export MTA Reports to an archive file. -WindupReportExport_exportReportsTitle=Export MTA Reports +WindupReportExport_page_one_title=Export MTR Reports +WindupReportExport_page_one_description=Export MTR Reports to an archive file. +WindupReportExport_exportReportsTitle=Export MTR Reports WindupReportExport_select_all=&Select All WindupReportExport_deselect_all=&Deselect All WindupReportExport_compressContents=Co&mpress the contents of the file WindupReportExport_saveInZipFormat=Save in &zip format WindupReportExport_saveInTarFormat=Save in &tar format -WindupReportExport_selectDestintationDialogTitle=Export MTA Reports to Archive File +WindupReportExport_selectDestintationDialogTitle=Export MTR Reports to Archive File WindupReportExport_destinationLabel=To &archive file: WindupReportExport_rootDirNameLabel=Arc&hive root directory name: WindupReportExport_browse=B&rowse... -WindupReportExport_reGenerateReportBeforeExport=&Generate fresh MTA reports before export +WindupReportExport_reGenerateReportBeforeExport=&Generate fresh MTR reports before export WindupReportExport_mustBeFileError=Export destination must be a file, not a directory WindupReportExport_directoryCreationError=Target directory could not be created. WindupReportExport_archiveAlreadyExistsError=Export destination already exists and cannot be overwritten. -WindupReportExport_errorDialogTitle=MTA Report Export Problems -WindupReportExport_noneSelected=There are no projects currently selected to have their MTA Reports exported. +WindupReportExport_errorDialogTitle=MTR Report Export Problems +WindupReportExport_noneSelected=There are no projects currently selected to have their MTR Reports exported. WindupReportExport_directoryExists=Target directory already exists as a file. -WindupReportExport_destinationEmptyError=Please enter a destination archive file for the MTA Reports. +WindupReportExport_destinationEmptyError=Please enter a destination archive file for the MTR Reports. WindupReportExport_question_shouldOverwriteExisting=Target archive already exists. Would you like to overwrite it? WindupReportExport_question_createTargetDirectory=Target directory does not exist. Would you like to create it? WindupReportExport_question_fileExists=''{0}'' already exists. Would you like to overwrite it? @@ -171,7 +171,7 @@ WindupReportExport_question_overwriteNameAndPath=Overwrite ''{0}'' in folder ''{ WindupReportExport_operationExceptionMessage=Error occurred during operation: {0} WindupReportExport_errorGeneratingReports=Error occurred generating Windup reports for export -markerError_findingMarkers=Error while finding MTA markers from: {0} +markerError_findingMarkers=Error while finding MTR markers from: {0} markerError_findingJavaId=Marker does not container valid java element id @@ -183,12 +183,12 @@ launchMode=run #Launch - rules tab generateIssues=Generating migration issues -generate_windup_report_for=Generating MTA Report for {0} +generate_windup_report_for=Generating MTR Report for {0} generatedReport=Report selectLaunchConfiguration=Select Launch Configuration selectExistinConfiguration=Select existing configuration: -errorConfiguringWindup=Problems computing MTA launch configuration. +errorConfiguringWindup=Problems computing MTR launch configuration. #General configuration page launchTab=Launch @@ -206,7 +206,7 @@ windupMigrationPath=Migration Path windupCustomRules=Custom Rules Repositories -windupHomeLocation=MTA Location: +windupHomeLocation=MTR Location: javaRuntimeEnvironment=Java Runtime Environment searchJRE=Installed JREs... @@ -226,17 +226,17 @@ ComparePreviewer_original_source=Original Source ComparePreviewer_migrated_source=Migrated Source ComparePreviewer_applyFix=Apply Fix ComparePreviewer_donePreviewFix=Done -ComparePreviewer_errorTitle=Preview MTA fix error -ComparePreviewer_errorMessage=Cannot preview the MTA quick fix +ComparePreviewer_errorTitle=Preview MTR fix error +ComparePreviewer_errorMessage=Cannot preview the MTR quick fix ComparePreviewer_quickFixFile=File ComparePreviewer_quickFixText=Issue ComparePreviewer_quickFixNoText=No text available. Line is deleted. -launchErrorTitle=MTA Error -launchErrorMessage=The MTA run configuration is not valid. +launchErrorTitle=MTR Error +launchErrorMessage=The MTR run configuration is not valid. -windupOptions=MTA Options -optionsDescription=Specify MTA options in this section. +windupOptions=MTR Options +optionsDescription=Specify MTR options in this section. sourceMode=Source Mode generatedReportLocation=Generated Report Location: @@ -248,7 +248,7 @@ issuesTab=Issues issuesTabTitle=Migration Issues #General Tab generalInfoTitle=Execution Environment -generalInfoDescription=This section describes general information about how to run MTA. +generalInfoDescription=This section describes general information about how to run MTR. #Issue Details noIssueDetails=No details available. @@ -262,7 +262,7 @@ issueLabelSource=Source: operationError=Operation Error issueDeleteError=An error occurred while attempting to delete. -markersCreateError=An error occurred while creating markers for the generated MTA results. +markersCreateError=An error occurred while creating markers for the generated MTR results. applyQuickFixError=Error while applying quick fixes. # Compare diff --git a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/rules/RuleRepositoryContentProvider.java b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/rules/RuleRepositoryContentProvider.java index b1fc0a3f..8b48659f 100644 --- a/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/rules/RuleRepositoryContentProvider.java +++ b/plugins/org.jboss.tools.windup.ui/src/org/jboss/tools/windup/ui/internal/rules/RuleRepositoryContentProvider.java @@ -275,7 +275,7 @@ public StyledString getStyledText(Object element) { text = text != null ? text : ""; StyledString style = new StyledString(text); if (element instanceof SystemRulesNode && ((SystemRulesNode)element).getChildren().length == 0) { - style.append(" [" + "Start MTA to view the system rules" + "]", StyledString.DECORATIONS_STYLER); + style.append(" [" + "Start MTR to view the system rules" + "]", StyledString.DECORATIONS_STYLER); } // else if (element instanceof CustomRuleProvider || element instanceof RuleProvider) { // style.append(" (" + (getChildren(element).length - 1) + ")", StyledString.COUNTER_STYLER); diff --git a/plugins/org.jboss.tools.windup.ui/windup-ui.e4xmi b/plugins/org.jboss.tools.windup.ui/windup-ui.e4xmi index 9b848ad7..d86914c4 100644 --- a/plugins/org.jboss.tools.windup.ui/windup-ui.e4xmi +++ b/plugins/org.jboss.tools.windup.ui/windup-ui.e4xmi @@ -15,9 +15,9 @@ - + menuContribution:popup - + diff --git a/site/category.xml b/site/category.xml index a5dd223e..ffef4b53 100644 --- a/site/category.xml +++ b/site/category.xml @@ -4,11 +4,11 @@ To install these features, point Eclipse at this site. - - MTA Nightly Build Update Site: contains all features in this build. + + MTR Nightly Build Update Site: contains all features in this build. - - MTA Nightly Build Update Site: contains all source features in this build. + + MTR Nightly Build Update Site: contains all source features in this build. diff --git a/site/pom.xml b/site/pom.xml index ce4f496b..a9e594e4 100755 --- a/site/pom.xml +++ b/site/pom.xml @@ -13,7 +13,7 @@ eclipse-repository - Migration Toolkit for Applications (MTA) + Migration Toolkit for Runtimes (MTR) ${project.version} LOCAL windup-eclipse-plugin-${VERSION}