-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IJMP-1630 Added initial processing of the global Zowe team conf file #186
Conversation
67252d1
to
da4515b
Compare
@@ -57,21 +67,42 @@ class UpdateZoweConfigAction : DumbAwareAction() { | |||
return | |||
} | |||
val vFile = e.getData(CommonDataKeys.VIRTUAL_FILE) | |||
if (vFile?.path != "${project.basePath}/$ZOWE_CONFIG_NAME") { | |||
var type = ZoweConfigType.GLOBAL | |||
if (vFile?.path != ZoweConfigServiceImpl.getZoweConfigLocation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (
vFile?.path != ZoweConfigServiceImpl.getZoweConfigLocation(project, ZoweConfigType.LOCAL)
&& vFile?.path != ZoweConfigServiceImpl.getZoweConfigLocation(project, ZoweConfigType.GLOBAL)
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- better to use val zoweLocalConfigLocation and val zoweGlobalConfigLocation outside both actionPerformed and update functions
@@ -40,11 +41,20 @@ class UpdateZoweConfigAction : DumbAwareAction() { | |||
e.presentation.isEnabledAndVisible = false | |||
return | |||
} | |||
|
|||
var type = ZoweConfigType.GLOBAL | |||
if (e.getData(CommonDataKeys.VIRTUAL_FILE)?.path == ZoweConfigServiceImpl.getZoweConfigLocation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
val zoweLocalConfigLocation = ZoweConfigServiceImpl.getZoweConfigLocation(project, ZoweConfigType.LOCAL)
if (e.getData(CommonDataKeys.VIRTUAL_FILE)?.path == zoweConfigLocalLocation)
e.presentation.isEnabledAndVisible = false | ||
return | ||
} | ||
if (vFile.path == ZoweConfigServiceImpl.getZoweConfigLocation(project, ZoweConfigType.LOCAL)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
da4515b
to
f617525
Compare
5d02bea
to
769c1e7
Compare
Signed-off-by: Katsiaryna Tsytsenia <[email protected]>
769c1e7
to
788e502
Compare
No description provided.