Commit dc22753a by Nepxion

增加图形化灰度发布功能

parent fe6020e2
...@@ -114,11 +114,11 @@ public class ServiceTopology extends AbstractTopology { ...@@ -114,11 +114,11 @@ public class ServiceTopology extends AbstractTopology {
@Override @Override
protected JBasicPopupMenu popupMenuGenerate() { protected JBasicPopupMenu popupMenuGenerate() {
super.popupMenuGenerate();
TGroup group = TElementManager.getSelectedGroup(dataBox); TGroup group = TElementManager.getSelectedGroup(dataBox);
pinSelectedGroupMenuItem.setVisible(group != null);
TNode node = TElementManager.getSelectedNode(dataBox); TNode node = TElementManager.getSelectedNode(dataBox);
pinSelectedNodeMenuItem.setVisible(node != null);
executeGrayRouterMenuItem.setVisible(node != null && StringUtils.isNotEmpty(node.getClientProperty("plugin").toString())); executeGrayRouterMenuItem.setVisible(node != null && StringUtils.isNotEmpty(node.getClientProperty("plugin").toString()));
TElement element = TElementManager.getSelectedElement(dataBox); TElement element = TElementManager.getSelectedElement(dataBox);
......
...@@ -262,7 +262,7 @@ public abstract class AbstractTopology extends JPanel { ...@@ -262,7 +262,7 @@ public abstract class AbstractTopology extends JPanel {
protected TNode createNode(String name, TopologyEntity topologyEntity, LocationEntity locationEntity, int index) { protected TNode createNode(String name, TopologyEntity topologyEntity, LocationEntity locationEntity, int index) {
String image = topologyEntity.getImage(); String image = topologyEntity.getImage();
int startX = locationEntity.getStartX(); int startX = locationEntity.getStartX();
int startY = locationEntity.getStartY(); int startY = locationEntity.getStartY();
int horizontalGap = locationEntity.getHorizontalGap(); int horizontalGap = locationEntity.getHorizontalGap();
......
Markdown is supported
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