Commit ef2875d0 authored by Michael Golubev's avatar Michael Golubev
Browse files

IDEA-126927 - CloudFoundry: if the same artifact is deployed to few clouds,...

IDEA-126927 - CloudFoundry: if the same artifact is deployed to few clouds, one can view the state of the single one only
parent 7c415ca2
Branches unavailable Tags unavailable
No related merge requests found
Showing with 9 additions and 12 deletions
+9 -12
......@@ -146,6 +146,9 @@ public class ServersToolWindowContent extends JPanel implements Disposable {
}
myPropertiesPanelLayout.show(myPropertiesPanel, cardName);
}
else {
showMessageLabel("");
}
}
else if (node instanceof ServersTreeStructure.RemoteServerNode) {
updateServerDetails((ServersTreeStructure.RemoteServerNode)node);
......
......@@ -287,16 +287,6 @@ public class ServersTreeStructure extends AbstractTreeStructureBase {
myParentNode = parentNode;
}
@Override
public boolean equals(Object object) {
return object instanceof DeploymentNodeImpl && getValue().getName().equals(((DeploymentNodeImpl)object).getValue().getName());
}
@Override
public int hashCode() {
return getValue().getName().hashCode();
}
@NotNull
@Override
public ServerNode getServerNode() {
......@@ -377,10 +367,14 @@ public class ServersTreeStructure extends AbstractTreeStructureBase {
return (DeploymentLogManagerImpl)myConnection.getLogManager(getValue());
}
public String getId() {
return myParentNode.getName() + ";deployment" + getValue().getName();
}
@NotNull
@Override
public String getLogId() {
return "deployment:" + getValue().getName();
return getId() + ";main-log";
}
@NotNull
......@@ -451,7 +445,7 @@ public class ServersTreeStructure extends AbstractTreeStructureBase {
@NotNull
@Override
public String getLogId() {
return "deployment:" + myDeploymentNode.getValue().getName() + ";log:" + getLogName();
return myDeploymentNode.getId() + ";log:" + getLogName();
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment