diff --git a/build.gradle.kts b/build.gradle.kts index bacdd9e53..80527d268 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -32,7 +32,7 @@ apply(plugin = "org.jetbrains.intellij") apply(from = "gradle/sonar.gradle") group = "org.zowe" -version = "1.2.0-221" +version = "1.2.0-223" val remoteRobotVersion = "0.11.21" val okHttp3Version = "4.12.0" val kotestVersion = "5.6.2" @@ -56,8 +56,8 @@ repositories { } java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } dependencies { @@ -85,20 +85,20 @@ dependencies { } intellij { - version.set("2022.1") + version.set("2022.3") } tasks { withType { kotlinOptions { - jvmTarget = JavaVersion.VERSION_11.toString() + jvmTarget = JavaVersion.VERSION_17.toString() languageVersion = org.jetbrains.kotlin.config.LanguageVersion.LATEST_STABLE.versionString } } patchPluginXml { - sinceBuild.set("221.5080") - untilBuild.set("222.*") + sinceBuild.set("223.7571") + untilBuild.set("223.*") changeNotes.set( """ New features: diff --git a/src/main/kotlin/org/zowe/explorer/config/ConfigSandboxImpl.kt b/src/main/kotlin/org/zowe/explorer/config/ConfigSandboxImpl.kt index c9fc9dd07..3f23ecbd1 100755 --- a/src/main/kotlin/org/zowe/explorer/config/ConfigSandboxImpl.kt +++ b/src/main/kotlin/org/zowe/explorer/config/ConfigSandboxImpl.kt @@ -21,8 +21,6 @@ import org.zowe.explorer.utils.crudable.ReloadableEventHandler import org.zowe.explorer.utils.crudable.getAll import org.zowe.explorer.utils.isThe import org.zowe.explorer.utils.isTheSameAs -import java.util.stream.Collectors - /** Stateful class to represent the plugin configs sandbox */ data class SandboxState( @@ -213,10 +211,7 @@ class ConfigSandboxImpl : ConfigSandbox { service() .getRegisteredConfigDeclarations() .filter { it.useCredentials } - // TODO: remove in v1.*.*-223 and greater - .flatMap { configCrudable.getAll(it.clazz).collect(Collectors.toList()) } - // TODO: use in v1.*.*-223 and greater -// .flatMap { configCrudable.getAll(it.clazz).toList() } + .flatMap { configCrudable.getAll(it.clazz).toList() } .filterIsInstance() .map { with(CredentialService.instance) { @@ -224,10 +219,7 @@ class ConfigSandboxImpl : ConfigSandbox { } } } else { - // TODO: remove in v1.*.*-223 and greater - configCrudable.getAll(clazz).collect(Collectors.toList()) - // TODO: use in v1.*.*-223 and greater -// configCrudable.getAll(clazz).toList() + configCrudable.getAll(clazz).toList() } listOfNotNull(classToList(clazz, state), classToList(clazz, initialState)) .forEach { list -> diff --git a/src/main/kotlin/org/zowe/explorer/config/ws/ui/AbstractWsDialog.kt b/src/main/kotlin/org/zowe/explorer/config/ws/ui/AbstractWsDialog.kt index ac6940a34..5c386e637 100644 --- a/src/main/kotlin/org/zowe/explorer/config/ws/ui/AbstractWsDialog.kt +++ b/src/main/kotlin/org/zowe/explorer/config/ws/ui/AbstractWsDialog.kt @@ -31,7 +31,6 @@ import org.zowe.explorer.utils.nullable import org.zowe.explorer.utils.validateForBlank import org.zowe.explorer.utils.validateWorkingSetName import java.awt.Dimension -import java.util.stream.Collectors import javax.swing.JComponent /** @@ -66,12 +65,7 @@ abstract class AbstractWsDialog abstract val connectionClass: Class - // TODO: remove in v1.*.*-223 and greater - private val connectionComboBoxModel by lazy { - CollectionComboBoxModel(crudable.getAll(connectionClass).collect(Collectors.toList())) - } - // TODO: use in v1.*.*-223 and greater -// private val connectionComboBoxModel by lazy { CollectionComboBoxModel(crudable.getAll(connectionClass).toList()) } + private val connectionComboBoxModel by lazy { CollectionComboBoxModel(crudable.getAll(connectionClass).toList()) } /** * Name of masks table. diff --git a/src/main/kotlin/org/zowe/explorer/dataops/content/synchronizer/SyncAction.kt b/src/main/kotlin/org/zowe/explorer/dataops/content/synchronizer/SyncAction.kt index 3a7a66d2c..8359e8a35 100644 --- a/src/main/kotlin/org/zowe/explorer/dataops/content/synchronizer/SyncAction.kt +++ b/src/main/kotlin/org/zowe/explorer/dataops/content/synchronizer/SyncAction.kt @@ -96,16 +96,6 @@ class SyncAction : DumbAwareAction() { } val editor = getEditor(e) ?: return - // TODO: remove in v1.*.*-223 and greater - val isDumbMode = ActionUtil.isDumbMode(e.project) - if (!isDumbMode && file.isWritable) { - editor.document.setReadOnly(false) - editor.isViewer = false - } else { - e.presentation.isEnabledAndVisible = false - return - } - val contentSynchronizer = service().getContentSynchronizer(file) val syncProvider = DocumentedSyncProvider(file) val currentContent = runReadActionInEdtAndWait { syncProvider.retrieveCurrentContent() } diff --git a/src/main/kotlin/org/zowe/explorer/dataops/fetch/RemoteFileFetchProviderBase.kt b/src/main/kotlin/org/zowe/explorer/dataops/fetch/RemoteFileFetchProviderBase.kt index 552c32135..f33dabb5e 100644 --- a/src/main/kotlin/org/zowe/explorer/dataops/fetch/RemoteFileFetchProviderBase.kt +++ b/src/main/kotlin/org/zowe/explorer/dataops/fetch/RemoteFileFetchProviderBase.kt @@ -25,7 +25,6 @@ import org.zowe.explorer.utils.runIfTrue import org.zowe.explorer.utils.runWriteActionOnWriteThread import org.zowe.explorer.utils.sendTopic import java.util.concurrent.locks.ReentrantLock -import java.util.stream.Collectors import kotlin.collections.set import kotlin.concurrent.withLock @@ -173,10 +172,7 @@ abstract class RemoteFileFetchProviderBase() return DATA_FLAVOR } - // This function is not needed to be overridden since v1.*.*-223 - @ApiStatus.ScheduledForRemoval(inVersion = "2.0.0") - override fun getOffsetCount(): Int { - return 0 - } - - // This function is not needed to be overridden since v1.*.*-223 - @ApiStatus.ScheduledForRemoval(inVersion = "2.0.0") - override fun getOffsets(offsets: IntArray?, index: Int): Int { - return index - } - - // This function is not needed to be overridden since v1.*.*-223 - @ApiStatus.ScheduledForRemoval(inVersion = "2.0.0") - override fun setOffsets(offsets: IntArray?, index: Int): Int { - return index - } - companion object { private val DATA_FLAVOR = DataFlavor(MFPastePreprocessor::class.java, "class: ChangeContentByPasteAction") } diff --git a/src/main/kotlin/org/zowe/explorer/explorer/actions/AddMemberAction.kt b/src/main/kotlin/org/zowe/explorer/explorer/actions/AddMemberAction.kt index fcfb035cc..63d2683f6 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/actions/AddMemberAction.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/actions/AddMemberAction.kt @@ -19,20 +19,10 @@ import org.zowe.explorer.dataops.attributes.RemoteDatasetAttributes import org.zowe.explorer.dataops.attributes.RemoteMemberAttributes import org.zowe.explorer.dataops.exceptions.CallException import org.zowe.explorer.dataops.getAttributesService -import org.zowe.explorer.dataops.operations.DeleteMemberOperation -import org.zowe.explorer.dataops.operations.DeleteMemberOperationParams -import org.zowe.explorer.dataops.operations.MemberAllocationOperation -import org.zowe.explorer.dataops.operations.MemberAllocationParams +import org.zowe.explorer.dataops.operations.* import org.zowe.explorer.explorer.ExplorerUnit import org.zowe.explorer.explorer.FilesWorkingSet -import org.zowe.explorer.explorer.ui.AddMemberDialog -import org.zowe.explorer.explorer.ui.ExplorerUnitTreeNodeBase -import org.zowe.explorer.explorer.ui.FetchNode -import org.zowe.explorer.explorer.ui.FileExplorerView -import org.zowe.explorer.explorer.ui.FileLikeDatasetNode -import org.zowe.explorer.explorer.ui.LibraryNode -import org.zowe.explorer.explorer.ui.getExplorerView -import org.zowe.explorer.utils.service +import org.zowe.explorer.explorer.ui.* import org.zowe.explorer.vfs.MFVirtualFile /** Class that represents "Add member" action */ diff --git a/src/main/kotlin/org/zowe/explorer/explorer/actions/AllocateActionBase.kt b/src/main/kotlin/org/zowe/explorer/explorer/actions/AllocateActionBase.kt index 1009094be..95331891a 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/actions/AllocateActionBase.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/actions/AllocateActionBase.kt @@ -35,7 +35,6 @@ import org.zowe.explorer.explorer.ui.getExplorerView import org.zowe.explorer.utils.castOrNull import org.zowe.explorer.utils.clone import org.zowe.explorer.utils.crudable.getByUniqueKey -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and later import org.zowe.kotlinsdk.Dataset import org.zowe.kotlinsdk.DatasetOrganization import org.zowe.kotlinsdk.DsnameType diff --git a/src/main/kotlin/org/zowe/explorer/explorer/actions/ChangeContentModeAction.kt b/src/main/kotlin/org/zowe/explorer/explorer/actions/ChangeContentModeAction.kt index 7490602aa..e2045c4cf 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/actions/ChangeContentModeAction.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/actions/ChangeContentModeAction.kt @@ -16,15 +16,10 @@ import com.intellij.openapi.components.service import com.intellij.openapi.ui.Messages import com.intellij.openapi.vfs.VirtualFile import org.zowe.explorer.dataops.DataOpsManager -import org.zowe.explorer.dataops.attributes.AttributesService -import org.zowe.explorer.dataops.attributes.FileAttributes -import org.zowe.explorer.dataops.attributes.RemoteDatasetAttributes -import org.zowe.explorer.dataops.attributes.RemoteUssAttributes -import org.zowe.explorer.dataops.attributes.RemoteUssAttributesService +import org.zowe.explorer.dataops.attributes.* import org.zowe.explorer.explorer.ui.FileExplorerView import org.zowe.explorer.explorer.ui.getExplorerView import org.zowe.explorer.utils.sendTopic -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and later import org.zowe.explorer.vfs.MFVirtualFile import org.zowe.kotlinsdk.XIBMDataType diff --git a/src/main/kotlin/org/zowe/explorer/explorer/actions/CreateUssEntityAction.kt b/src/main/kotlin/org/zowe/explorer/explorer/actions/CreateUssEntityAction.kt index dd926a2a4..593c7838b 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/actions/CreateUssEntityAction.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/actions/CreateUssEntityAction.kt @@ -29,7 +29,6 @@ import org.zowe.explorer.dataops.operations.UssChangeModeOperation import org.zowe.explorer.dataops.operations.UssChangeModeParams import org.zowe.explorer.explorer.ui.* import org.zowe.explorer.utils.castOrNull -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and greater import org.zowe.explorer.vfs.MFVirtualFile import org.zowe.kotlinsdk.ChangeMode import org.zowe.kotlinsdk.FileType diff --git a/src/main/kotlin/org/zowe/explorer/explorer/actions/PurgeJobAction.kt b/src/main/kotlin/org/zowe/explorer/explorer/actions/PurgeJobAction.kt index 2cdcb3bd2..e913f7888 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/actions/PurgeJobAction.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/actions/PurgeJobAction.kt @@ -15,7 +15,6 @@ import org.zowe.explorer.dataops.operations.jobs.PurgeJobOperation import org.zowe.explorer.explorer.ui.* import org.zowe.explorer.ui.build.jobs.JOBS_LOG_VIEW import org.zowe.explorer.ui.build.jobs.JobBuildTreeView -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and greater import org.zowe.kotlinsdk.ExecData import org.zowe.kotlinsdk.JESApi import org.zowe.kotlinsdk.Job diff --git a/src/main/kotlin/org/zowe/explorer/explorer/actions/RenameAction.kt b/src/main/kotlin/org/zowe/explorer/explorer/actions/RenameAction.kt index eb12b9297..c00ef5084 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/actions/RenameAction.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/actions/RenameAction.kt @@ -23,7 +23,6 @@ import org.zowe.explorer.dataops.attributes.RemoteMemberAttributes import org.zowe.explorer.dataops.attributes.RemoteUssAttributes import org.zowe.explorer.dataops.operations.RenameOperation import org.zowe.explorer.explorer.ui.* -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and greater import org.zowe.explorer.vfs.MFVirtualFile /** diff --git a/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerTreeNode.kt b/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerTreeNode.kt index 8c88993f6..b14b21303 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerTreeNode.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerTreeNode.kt @@ -32,7 +32,6 @@ import org.zowe.explorer.explorer.Explorer import org.zowe.explorer.explorer.UIComponentManager import org.zowe.explorer.utils.isBeingEditingNow import org.zowe.explorer.utils.runWriteActionInEdtAndWait -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and greater import org.zowe.explorer.vfs.MFVirtualFile import javax.swing.tree.TreePath diff --git a/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerWindowFactory.kt b/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerWindowFactory.kt index 7962561be..b2d198535 100755 --- a/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerWindowFactory.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/ui/ExplorerWindowFactory.kt @@ -33,8 +33,7 @@ class ExplorerWindowFactory : ToolWindowFactory, DumbAware { } override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) { - // TODO: ContentFactory.SERVICE.getInstance() -> ContentFactory.getInstance() in new versions of the plugin - val contentFactory = ContentFactory.SERVICE.getInstance() + val contentFactory = ContentFactory.getInstance() UIComponentManager.INSTANCE.getExplorerContentProviders().forEach { val content = contentFactory .createContent(it.buildExplorerContent(toolWindow.disposable, project), it.displayName, it.isLockable) diff --git a/src/main/kotlin/org/zowe/explorer/explorer/ui/FileExplorerView.kt b/src/main/kotlin/org/zowe/explorer/explorer/ui/FileExplorerView.kt index 9ffe90e30..192ff18b8 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/ui/FileExplorerView.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/ui/FileExplorerView.kt @@ -42,7 +42,6 @@ import org.zowe.explorer.explorer.Explorer import org.zowe.explorer.explorer.FilesWorkingSet import org.zowe.explorer.utils.getMinimalCommonParents import org.zowe.explorer.utils.getParentsChain -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and greater import org.zowe.explorer.vfs.MFVirtualFile import java.awt.Toolkit import java.awt.datatransfer.DataFlavor diff --git a/src/main/kotlin/org/zowe/explorer/explorer/ui/FileLikeDatasetNode.kt b/src/main/kotlin/org/zowe/explorer/explorer/ui/FileLikeDatasetNode.kt index 3be088785..49897ad2a 100644 --- a/src/main/kotlin/org/zowe/explorer/explorer/ui/FileLikeDatasetNode.kt +++ b/src/main/kotlin/org/zowe/explorer/explorer/ui/FileLikeDatasetNode.kt @@ -25,7 +25,6 @@ import org.zowe.explorer.dataops.DataOpsManager import org.zowe.explorer.dataops.attributes.RemoteDatasetAttributes import org.zowe.explorer.dataops.attributes.RemoteMemberAttributes import org.zowe.explorer.explorer.ExplorerUnit -import org.zowe.explorer.utils.service // TODO: remove in v1.*.*-223 and greater import org.zowe.explorer.vfs.MFVirtualFile import icons.ForMainframeIcons diff --git a/src/main/kotlin/org/zowe/explorer/ui/build/tso/ui/TSOSessionDialog.kt b/src/main/kotlin/org/zowe/explorer/ui/build/tso/ui/TSOSessionDialog.kt index 910985750..cc3e81cd3 100644 --- a/src/main/kotlin/org/zowe/explorer/ui/build/tso/ui/TSOSessionDialog.kt +++ b/src/main/kotlin/org/zowe/explorer/ui/build/tso/ui/TSOSessionDialog.kt @@ -27,7 +27,6 @@ import org.zowe.explorer.utils.validateForBlank import org.zowe.explorer.utils.validateForPositiveInteger import org.zowe.kotlinsdk.TsoCodePage import java.awt.Dimension -import java.util.stream.Collectors import javax.swing.JComboBox import javax.swing.JComponent import javax.swing.JTextField @@ -50,12 +49,7 @@ class TSOSessionDialog(project: Project?, override var state: TSOSessionParams) private lateinit var regionField: JTextField private lateinit var connectionBox: JComboBox - // TODO: remove in v1.*.*-223 and greater - private var connectionComboBoxModel = - CollectionComboBoxModel(configCrudable.getAll().collect(Collectors.toList())) - - // TODO: use in v1.*.*-223 and greater -// private var connectionComboBoxModel = CollectionComboBoxModel(configCrudable.getAll().toList()) + private var connectionComboBoxModel = CollectionComboBoxModel(configCrudable.getAll().toList()) private var codepageComboBoxModel = CollectionComboBoxModel(TsoCodePage.values().toList()) /** @@ -229,13 +223,13 @@ class TSOSessionDialog(project: Project?, override var state: TSOSessionParams) * Data class represents the initial state of the dialog. It sets the default parameters for the TSO session. */ data class TSOSessionParams( - var connectionConfig : ConnectionConfig = configCrudable.getAll(ConnectionConfig::class.java).findFirst().get(), - var logonproc : String = "DBSPROCC", - var charset : String = "697", - var codepage : TsoCodePage = TsoCodePage.IBM_1047, - var rows : String = "24", - var cols : String = "80", - var acct : String = "ACCT#", - var usergroup : String = "GROUP1", - var region : String = "64000" + var connectionConfig: ConnectionConfig = configCrudable.getAll(ConnectionConfig::class.java).findFirst().get(), + var logonproc: String = "DBSPROCC", + var charset: String = "697", + var codepage: TsoCodePage = TsoCodePage.IBM_1047, + var rows: String = "24", + var cols: String = "80", + var acct: String = "ACCT#", + var usergroup: String = "GROUP1", + var region: String = "64000" ) diff --git a/src/main/kotlin/org/zowe/explorer/utils/encodingUtils.kt b/src/main/kotlin/org/zowe/explorer/utils/encodingUtils.kt index 5594c97ec..65825a235 100644 --- a/src/main/kotlin/org/zowe/explorer/utils/encodingUtils.kt +++ b/src/main/kotlin/org/zowe/explorer/utils/encodingUtils.kt @@ -15,6 +15,7 @@ import com.intellij.codeInspection.InspectionEngine import com.intellij.codeInspection.InspectionManager import com.intellij.icons.AllIcons import com.intellij.ide.IdeBundle +import com.intellij.openapi.actionSystem.ActionUpdateThread import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.DefaultActionGroup import com.intellij.openapi.fileEditor.FileDocumentManager @@ -164,8 +165,7 @@ fun createCharsetsActionGroup(virtualFile: VirtualFile, attributes: RemoteUssAtt super.update(e) } - // TODO: needed in v1.*.*-223 and greater - // override fun getActionUpdateThread() = ActionUpdateThread.BGT + override fun getActionUpdateThread() = ActionUpdateThread.BGT } } diff --git a/src/main/kotlin/org/zowe/explorer/utils/miscUtils.kt b/src/main/kotlin/org/zowe/explorer/utils/miscUtils.kt index f4570d1fc..2d59e8ea0 100755 --- a/src/main/kotlin/org/zowe/explorer/utils/miscUtils.kt +++ b/src/main/kotlin/org/zowe/explorer/utils/miscUtils.kt @@ -18,16 +18,11 @@ import org.zowe.explorer.config.connect.ConnectionConfig import org.zowe.explorer.explorer.WorkingSet import org.zowe.explorer.explorer.ui.ExplorerTreeView import org.zowe.explorer.explorer.ui.ExplorerUnitTreeNodeBase -import java.awt.Component -import java.awt.MouseInfo -import java.awt.Rectangle import java.util.* import java.util.concurrent.locks.Lock import java.util.concurrent.locks.ReadWriteLock -import java.util.stream.Collectors import java.util.stream.Stream import java.util.stream.StreamSupport -import javax.swing.SwingUtilities import kotlin.concurrent.thread import kotlin.concurrent.withLock @@ -46,10 +41,7 @@ fun loadConfigClass(className: String): Class<*>? { /** Transform the stream to the mutable list */ fun Stream.toMutableList(): MutableList { - // TODO: remove in v1.*.*-223 and greater - return this.collect(Collectors.toList()).toMutableList() - // TODO: use in v1.*.*-223 and greater -// return this.toList().toMutableList() + return this.toList().toMutableList() } /** Transform the value to the specified class or return null if the cast is not possible */ @@ -272,18 +264,6 @@ fun debounce(delayInterval: Long, block: () -> Unit): () -> Unit { } } -// TODO: remove in v1.*.*-223 and greater -fun Component.isComponentUnderMouse(): Boolean { - if (mousePosition != null) { - return true - } - val pointerInfo = MouseInfo.getPointerInfo() ?: return false - val location = pointerInfo.location - SwingUtilities.convertPointFromScreen(location, this) - val bounds = Rectangle(0, 0, width, height) - return bounds.contains(location) -} - /** * Get all distinct working sets for the selected nodes. * In case the items belong to different working sets, it returns all the distinct working sets diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index cca901687..a1b3856b3 100755 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -388,10 +388,9 @@ Thank you for considering IBA Group for your mainframe needs. implementation="org.zowe.explorer.editor.status.MfEncodingPanelWidgetFactory" order="after org.zowe.explorer.editor.status.MfLineSeparatorWidgetFactory, before powerStatus"/> - diff --git a/src/test/kotlin/org/zowe/explorer/editor/EditorTestSpec.kt b/src/test/kotlin/org/zowe/explorer/editor/EditorTestSpec.kt index b3edf216c..724116620 100644 --- a/src/test/kotlin/org/zowe/explorer/editor/EditorTestSpec.kt +++ b/src/test/kotlin/org/zowe/explorer/editor/EditorTestSpec.kt @@ -10,7 +10,6 @@ package org.zowe.explorer.editor -// import com.intellij.openapi.ui.isComponentUnderMouse // TODO: needed in v1.*.*-223 and greater import com.intellij.codeInspection.InspectionManager import com.intellij.codeInspection.ProblemDescriptor import com.intellij.codeInspection.ProblemHighlightType @@ -22,6 +21,7 @@ import com.intellij.openapi.components.ComponentManager import com.intellij.openapi.editor.ex.EditorEx import com.intellij.openapi.fileEditor.impl.LoadTextUtil import com.intellij.openapi.project.Project +import com.intellij.openapi.ui.isComponentUnderMouse import com.intellij.openapi.util.Ref import com.intellij.openapi.util.TextRange import com.intellij.openapi.util.text.StringUtil diff --git a/src/test/kotlin/org/zowe/explorer/explorer/ui/dummyClasses.kt b/src/test/kotlin/org/zowe/explorer/explorer/ui/dummyClasses.kt index 6905f6b87..848685087 100644 --- a/src/test/kotlin/org/zowe/explorer/explorer/ui/dummyClasses.kt +++ b/src/test/kotlin/org/zowe/explorer/explorer/ui/dummyClasses.kt @@ -15,7 +15,7 @@ import com.intellij.openapi.editor.Caret import com.intellij.openapi.editor.Editor import com.intellij.openapi.fileEditor.EditorDataProvider import com.intellij.openapi.fileEditor.FileEditor -//import com.intellij.openapi.fileEditor.FileEditorComposite // TODO: needed in 1.*.*-223 and greater +import com.intellij.openapi.fileEditor.FileEditorComposite import com.intellij.openapi.fileEditor.FileEditorManager import com.intellij.openapi.fileEditor.FileEditorNavigatable import com.intellij.openapi.fileEditor.OpenFileDescriptor @@ -24,10 +24,9 @@ import com.intellij.openapi.vfs.VirtualFile import javax.swing.JComponent open class TestFileEditorManager : FileEditorManager() { -// TODO: needed in 1.*.*-223 and greater -// override fun getComposite(file: VirtualFile): FileEditorComposite? { -// TODO("Not yet implemented") -// } + override fun getComposite(file: VirtualFile): FileEditorComposite? { + TODO("Not yet implemented") + } override fun openFile(file: VirtualFile, focusEditor: Boolean): Array { TODO("Not yet implemented")