Skip to content

Commit

Permalink
Merge branch 'release/v1.0.2-221' into public-release/v1.0.2-221
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzianis Lisiankou authored and Dzianis Lisiankou committed Jun 13, 2023
2 parents af056dd + f6723f3 commit 37d42a8
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to the Zowe IntelliJ Plugin will be documented in this file.

## `1.0.2 (2023-xx-xx)`
## `1.0.2 (2023-06-13)`

* Feature: Returned support for IntelliJ 2022.1 ([6329c788](https://github.com/zowe/zowe-explorer-intellij/commit/6329c788))
* Feature: Focus on dataset name field in allocation dialog ([fccb77f9](https://github.com/zowe/zowe-explorer-intellij/commit/fccb77f9))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ class MFPastePreprocessor : CopyPastePostProcessor<TextBlockTransferableData>()
return DATA_FLAVOR
}

// This function is not needed to be overridden since v1.0.2-223
// 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.0.2-223
// 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.0.2-223
// 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
Expand Down Expand Up @@ -99,4 +99,4 @@ class MFPastePreprocessor : CopyPastePostProcessor<TextBlockTransferableData>()
}
super.processTransferableData(project, editor, bounds, caretOffset, indented, values)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ import com.intellij.openapi.wm.impl.status.EncodingPanel
import eu.ibagroup.formainframe.editor.isMfVirtualFile
import eu.ibagroup.formainframe.editor.zoweExplorerInstalled

// This code should not be as described below in Zowe repo
// Change MF to ZoweMF
const val MF_ENCODING_PANEL_WIDGET = "MF" + StatusBar.StandardWidgets.ENCODING_PANEL

/**
* Encoding panel in status bar with correctly display for MF files.
*/
class MfEncodingPanel(project: Project): EncodingPanel(project) {

// This code should not be present in Zowe repo
/**
* Returns the state of the widget for correct display in the status bar.
* Always displayed except when the zowe-explorer plugin is installed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class MfEncodingPanelWidgetFactory: EncodingPanelWidgetFactory() {
return MfEncodingPanel(project)
}

// This code should not be present in Zowe repo
/** Always enabled except when the zowe-explorer plugin is installed. */
override fun canBeEnabledOn(statusBar: StatusBar): Boolean {
if (zoweExplorerInstalled) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ import eu.ibagroup.formainframe.editor.isMfVirtualFile
import eu.ibagroup.formainframe.editor.isUssVirtualFile
import eu.ibagroup.formainframe.editor.zoweExplorerInstalled

// This code should not be as described below in Zowe repo
// Change MF to ZoweMF
const val MF_LINE_SEPARATOR_PANEL_WIDGET = "MF" + StatusBar.StandardWidgets.LINE_SEPARATOR_PANEL

/**
* Line separator panel in status bar with correctly display for MF files.
*/
class MfLineSeparatorPanel(project: Project): LineSeparatorPanel(project) {

// This code should not be present in Zowe repo
/**
* Returns the state of the widget for correct display in the status bar.
* Always displayed except when the zowe-explorer plugin is installed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class MfLineSeparatorWidgetFactory: LineSeparatorWidgetFactory() {
return MfLineSeparatorPanel(project)
}

// This code should not be present in Zowe repo
/** Always enabled except when the zowe-explorer plugin is installed. */
override fun canBeEnabledOn(statusBar: StatusBar): Boolean {
if (zoweExplorerInstalled) {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/eu/ibagroup/formainframe/editor/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fun showSyncOnCloseDialog(fileName: String, project: Project): Boolean {
.ask(project = project)
}

// This code should not be present in Zowe repo
val zoweExplorerInstalled = PluginManager.isPluginInstalled(PluginId.getId("org.zowe.explorer"))

const val MF_VIRTUAL_FILE_KEY_NAME = "mfVirtualFile"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import eu.ibagroup.formainframe.dataops.getAttributesService
import eu.ibagroup.formainframe.dataops.operations.*
import eu.ibagroup.formainframe.explorer.FilesWorkingSet
import eu.ibagroup.formainframe.explorer.ui.*
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.formainframe.vfs.MFVirtualFile

/** Class that represents "Add member" action */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import eu.ibagroup.formainframe.explorer.ui.*
import eu.ibagroup.formainframe.utils.castOrNull
import eu.ibagroup.formainframe.utils.clone
import eu.ibagroup.formainframe.utils.crudable.getByUniqueKey
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.r2z.*

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import eu.ibagroup.formainframe.dataops.attributes.*
import eu.ibagroup.formainframe.explorer.ui.FILE_EXPLORER_VIEW
import eu.ibagroup.formainframe.explorer.ui.FileExplorerView
import eu.ibagroup.formainframe.utils.sendTopic
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.formainframe.vfs.MFVirtualFile
import eu.ibagroup.r2z.XIBMDataType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import eu.ibagroup.formainframe.dataops.operations.UssChangeModeOperation
import eu.ibagroup.formainframe.dataops.operations.UssChangeModeParams
import eu.ibagroup.formainframe.explorer.ui.*
import eu.ibagroup.formainframe.utils.castOrNull
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.formainframe.vfs.MFVirtualFile
import eu.ibagroup.r2z.ChangeMode
import eu.ibagroup.r2z.FileType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import eu.ibagroup.formainframe.dataops.operations.jobs.PurgeJobOperation
import eu.ibagroup.formainframe.explorer.ui.*
import eu.ibagroup.formainframe.ui.build.jobs.JOBS_LOG_VIEW
import eu.ibagroup.formainframe.ui.build.jobs.JobBuildTreeView
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.r2z.ExecData
import eu.ibagroup.r2z.JESApi
import eu.ibagroup.r2z.Job
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import eu.ibagroup.formainframe.explorer.FilesWorkingSet
import eu.ibagroup.formainframe.explorer.ui.*
import eu.ibagroup.formainframe.utils.clone
import eu.ibagroup.formainframe.utils.crudable.getByUniqueKey
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater

/**
* Class which represents a rename action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import eu.ibagroup.formainframe.explorer.Explorer
import eu.ibagroup.formainframe.explorer.UIComponentManager
import eu.ibagroup.formainframe.utils.isBeingEditingNow
import eu.ibagroup.formainframe.utils.runWriteActionInEdtAndWait
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.formainframe.vfs.MFVirtualFile
import javax.swing.tree.TreePath

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import eu.ibagroup.formainframe.explorer.Explorer
import eu.ibagroup.formainframe.explorer.FilesWorkingSet
import eu.ibagroup.formainframe.utils.getMinimalCommonParents
import eu.ibagroup.formainframe.utils.getParentsChain
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.formainframe.vfs.MFVirtualFile
import java.awt.Toolkit
import java.awt.datatransfer.DataFlavor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import eu.ibagroup.formainframe.dataops.attributes.RemoteDatasetAttributes
import eu.ibagroup.formainframe.dataops.attributes.RemoteMemberAttributes
import eu.ibagroup.formainframe.dataops.getAttributesService
import eu.ibagroup.formainframe.explorer.ExplorerUnit
import eu.ibagroup.formainframe.utils.service // TODO: remove in 1.0.2-223 and greater
import eu.ibagroup.formainframe.utils.service // TODO: remove in v1.*.*-223 and greater
import eu.ibagroup.formainframe.vfs.MFVirtualFile
import icons.ForMainframeIcons

Expand Down

0 comments on commit 37d42a8

Please sign in to comment.