Skip to content

Commit

Permalink
GHI-161: conflict between ZE and FM fixed (#164)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Lisenkov <[email protected]>
  • Loading branch information
dnlsv authored Nov 14, 2023
1 parent 7d8b11e commit 72a203a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import java.nio.charset.CodingErrorAction
class MFLossyEncodingInspection : LocalInspectionTool() {

override fun getShortName(): String {
return "MFLossyEncoding"
return "ZoweMFLossyEncoding"
}

override fun checkFile(file: PsiFile, manager: InspectionManager, isOnTheFly: Boolean): Array<ProblemDescriptor>? {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/zowe/explorer/utils/encodingUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ fun checkEncodingCompatibility(file: VirtualFile, project: Project): Boolean {
val psiFile = PsiManager.getInstance(project).findFile(file)
psiFile?.let {
val inspectionProfile = InspectionProjectProfileManager.getInstance(project).currentProfile
val inspectionTool = inspectionProfile.getInspectionTool("MFLossyEncoding", project)
val inspectionTool = inspectionProfile.getInspectionTool("ZoweMFLossyEncoding", project)
inspectionTool?.let { tool ->
val inspectionManager = InspectionManager.getInstance(project)
val descriptors =
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ Thank you for considering IBA Group for your mainframe needs.
order="after org.zowe.explorer.editor.status.MfLineSeparatorWidgetFactory, before powerStatus"/>

<!-- TODO: define attribute language="" in v1.*.*-223 and greater -->
<localInspection shortName="MFLossyEncoding" displayName="MF lossy encoding"
<localInspection shortName="ZoweMFLossyEncoding" displayName="Zowe MF lossy encoding"
groupBundle="messages.InspectionsBundle" groupKey="group.names.internationalization.issues"
enabledByDefault="true" level="WARNING"
implementationClass="org.zowe.explorer.editor.inspection.MFLossyEncodingInspection"/>
Expand Down

0 comments on commit 72a203a

Please sign in to comment.