예제 #1
0
  public static void setEntity(ConcreteAgent ent, Map attributes) {
    Map currentMap =
        (Map)
            RenderComponentManager.retrieveIDs("ConcreteAgent", ent.getPrefs(attributes).getView());
    current = ent.getPrefs(attributes).getView();
    if (ent != null
        && currentMap.get("_attributes_") != null
        && currentMap.get("_attributes_") instanceof ingenias.editor.rendererxml.AttributesPanel) {

      ((ingenias.editor.rendererxml.AttributesPanel) currentMap.get("_attributes_")).setEntity(ent);
    }

    if (currentMap.get("Id") != null) {
      if (ent != null && ent.getId() != null) {
        if (currentMap.get("Id") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("Id")).setText(ent.getId().toString());
        } else {
          if (currentMap.get("Id") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("Id"))
                .setText(ent.getId().toString());
        }
      } else {
        if (currentMap.get("Id") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("Id")).setText("");
        else {
          if (!(currentMap.get("Id") instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("Id")).setText("");
        }
      }
    }
  }
예제 #2
0
  static {
    try {

      ViewPreferences.ViewType index = ViewPreferences.ViewType.INGENIAS;
      index = ViewPreferences.ViewType.INGENIAS;

      index = ViewPreferences.ViewType.UML;
      RenderComponentManager.loadRenderFile("Plan", index, "/rendererxml/PlanUMLPanel.xml");

      index = ViewPreferences.ViewType.INGENIAS;
      RenderComponentManager.loadRenderFile("Plan", index, "/rendererxml/PlanINGENIASPanel.xml");

    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
예제 #3
0
 public Component getRendererComponent(
     JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) {
   return RenderComponentManager.retrievePanel(
       "Plan",
       ((Entity) ((DefaultGraphCell) (view.getCell())).getUserObject())
           .getPrefs(graph.getModel().getAttributes(view.getCell()))
           .getView());
 }
  static {
    try {

      ViewPreferences.ViewType index = ViewPreferences.ViewType.INGENIAS;
      index = ViewPreferences.ViewType.INGENIAS;

      index = ViewPreferences.ViewType.UML;
      RenderComponentManager.loadRenderFile(
          "DeploymentUnitByTypeMSEntity",
          index,
          "/ingenias/editor/rendererxml/DeploymentUnitByTypeMSEntityUMLPanel.xml");

      index = ViewPreferences.ViewType.INGENIAS;
      RenderComponentManager.loadRenderFile(
          "DeploymentUnitByTypeMSEntity",
          index,
          "/ingenias/editor/rendererxml/DeploymentUnitByTypeMSEntityINGENIASPanel.xml");

    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
예제 #5
0
  static {
    try {

      ViewPreferences.ViewType index = ViewPreferences.ViewType.INGENIAS;
      index = ViewPreferences.ViewType.INGENIAS;

      index = ViewPreferences.ViewType.NOICON;
      RenderComponentManager.loadRenderFile(
          "WFResponsable", index, "/ingenias/editor/rendererxml/WFResponsableNOICONPanel.xml");

      index = ViewPreferences.ViewType.INGENIAS;
      RenderComponentManager.loadRenderFile(
          "WFResponsable", index, "/ingenias/editor/rendererxml/WFResponsableINGENIASPanel.xml");

      index = ViewPreferences.ViewType.LABEL;
      RenderComponentManager.loadRenderFile(
          "WFResponsable", index, "/ingenias/editor/rendererxml/WFResponsableLABELPanel.xml");

    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
예제 #6
0
  static {
    try {

      ViewPreferences.ViewType index = ViewPreferences.ViewType.INGENIAS;
      index = ViewPreferences.ViewType.INGENIAS;

      index = ViewPreferences.ViewType.NOICON;
      RenderComponentManager.loadRenderFile(
          "WFConnects", index, "/rendererxml/WFConnectsNOICONPanel.xml");

      index = ViewPreferences.ViewType.INGENIAS;
      RenderComponentManager.loadRenderFile(
          "WFConnects", index, "/rendererxml/WFConnectsINGENIASPanel.xml");

      index = ViewPreferences.ViewType.LABEL;
      RenderComponentManager.loadRenderFile(
          "WFConnects", index, "/rendererxml/WFConnectsLABELPanel.xml");

    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
예제 #7
0
  public static void setEntity(WFResponsable ent) {
    Map currentMap =
        (Map) RenderComponentManager.retrieveIDs("WFResponsable", ent.getPrefs().getView());

    if (currentMap.get("Label") != null) {
      if (ent != null && ent.getLabel() != null) {
        if (currentMap.get("Label") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("Label")).setText(ent.getLabel().toString());
        } else {
          if (currentMap.get("Label") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("Label"))
                .setText(ent.getLabel().toString());
        }
      } else {
        if (currentMap.get("Label") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("Label")).setText("");
        else {
          if (!(currentMap.get("Label") instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("Label")).setText("");
        }
      }
    }
  }
예제 #8
0
  public static void setEntity(Plan ent, Map attributes) {
    Map currentMap =
        (Map) RenderComponentManager.retrieveIDs("Plan", ent.getPrefs(attributes).getView());
    current = ent.getPrefs(attributes).getView();
    if (ent != null
        && currentMap.get("_attributes_") != null
        && currentMap.get("_attributes_") instanceof ingenias.editor.rendererxml.AttributesPanel) {

      ((ingenias.editor.rendererxml.AttributesPanel) currentMap.get("_attributes_")).setEntity(ent);
    }

    if (currentMap.get("Tasks") != null
        && currentMap.get("Tasks") instanceof ingenias.editor.rendererxml.CollectionPanel) {
      try {
        ((ingenias.editor.rendererxml.CollectionPanel) currentMap.get("Tasks"))
            .setCollection("Tasks", ent.Tasks, ent.Tasks.getType());
      } catch (IllegalArgumentException ex) {
        ex.printStackTrace();
      } catch (IllegalAccessException ex) {
        ex.printStackTrace();
      }
    }

    if (currentMap.get("Tasks") != null
        && currentMap.get("Tasks") instanceof ingenias.editor.rendererxml.CollectionPanel) {
      try {
        ((ingenias.editor.rendererxml.CollectionPanel) currentMap.get("Tasks"))
            .setCollection("Tasks", ent.Tasks, ent.Tasks.getType());
      } catch (IllegalArgumentException ex) {
        ex.printStackTrace();
      } catch (IllegalAccessException ex) {
        ex.printStackTrace();
      }
    }

    if (currentMap.get("Tasks") != null) {
      if (ent != null && ent.getTasks() != null) {
        if (currentMap.get("Tasks") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("Tasks")).setText(ent.getTasks().toString());
        } else {
          if (currentMap.get("Tasks") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("Tasks"))
                .setText(ent.getTasks().toString());
        }
      } else {
        if (currentMap.get("Tasks") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("Tasks")).setText("");
        else {
          if (!(currentMap.get("Tasks") instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("Tasks")).setText("");
        }
      }
    }

    if (currentMap.get("Id") != null) {
      if (ent != null && ent.getId() != null) {
        if (currentMap.get("Id") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("Id")).setText(ent.getId().toString());
        } else {
          if (currentMap.get("Id") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("Id"))
                .setText(ent.getId().toString());
        }
      } else {
        if (currentMap.get("Id") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("Id")).setText("");
        else {
          if (!(currentMap.get("Id") instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("Id")).setText("");
        }
      }
    }
  }
예제 #9
0
 public JComponent getConcreteSubComponent(String fieldname, Entity ent, Map map) {
   Map<String, JComponent> currentMap =
       (Map) RenderComponentManager.retrieveIDs("Plan", ent.getPrefs(map).getView());
   return currentMap.get(fieldname);
 }
예제 #10
0
 public Dimension getSize() {
   return RenderComponentManager.getSize("Plan", current);
 }
예제 #11
0
  public static JPanel setCurrent(ViewPreferences.ViewType c) {

    current = ViewPreferences.ViewType.INGENIAS;

    return (JPanel) RenderComponentManager.retrievePanel("Plan", current);
  }
 public Component getRendererComponent(
     JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) {
   return RenderComponentManager.retrievePanel(
       "DeploymentUnitByTypeMSEntity",
       ((Entity) ((DefaultGraphCell) (view.getCell())).getUserObject()).getPrefs().getView());
 }
 public Dimension getSize() {
   return RenderComponentManager.getSize("DeploymentUnitByTypeMSEntity", current);
 }
  public static JPanel setCurrent(ViewPreferences.ViewType c) {

    current = ViewPreferences.ViewType.INGENIAS;

    return (JPanel) RenderComponentManager.retrievePanel("DeploymentUnitByTypeMSEntity", current);
  }
예제 #15
0
 public Dimension getSize() {
   return RenderComponentManager.getSize("SubProtocol", current);
 }
예제 #16
0
 public Dimension getSize() {
   return RenderComponentManager.getSize("ConcreteAgent", current);
 }
예제 #17
0
 public Dimension getSize() {
   return RenderComponentManager.getSize("TextUseCase", current);
 }
예제 #18
0
 public Dimension getSize() {
   return RenderComponentManager.getSize("WFConnects", current);
 }
예제 #19
0
 public Dimension getSize() {
   return RenderComponentManager.getSize("WFResponsable", current);
 }
  public static void setEntity(DeploymentUnitByTypeMSEntity ent) {
    Map currentMap =
        (Map)
            RenderComponentManager.retrieveIDs(
                "DeploymentUnitByTypeMSEntity", ent.getPrefs().getView());

    if (ent != null
        && currentMap.get("_attributes_") != null
        && currentMap.get("_attributes_") instanceof ingenias.editor.rendererxml.AttributesPanel) {

      ((ingenias.editor.rendererxml.AttributesPanel) currentMap.get("_attributes_")).setEntity(ent);
    }

    if (currentMap.get("InitialState") != null) {
      if (ent != null && ent.getInitialState() != null) {
        if (currentMap.get("InitialState") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("InitialState"))
              .setText(ent.getInitialState().toString());
        } else {
          if (currentMap.get("InitialState") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("InitialState"))
                .setText(ent.getInitialState().toString());
        }
      } else {
        if (currentMap.get("InitialState") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("InitialState")).setText("");
        else {
          if (!(currentMap.get("InitialState")
              instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("InitialState")).setText("");
        }
      }
    }

    if (currentMap.get("NumberInstances") != null) {
      if (ent != null && ent.getNumberInstances() != null) {
        if (currentMap.get("NumberInstances") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("NumberInstances"))
              .setText(ent.getNumberInstances().toString());
        } else {
          if (currentMap.get("NumberInstances") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("NumberInstances"))
                .setText(ent.getNumberInstances().toString());
        }
      } else {
        if (currentMap.get("NumberInstances") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("NumberInstances")).setText("");
        else {
          if (!(currentMap.get("NumberInstances")
              instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("NumberInstances")).setText("");
        }
      }
    }

    if (currentMap.get("AgentTypeDeployed") != null) {
      if (ent != null && ent.getAgentTypeDeployed() != null) {
        if (currentMap.get("AgentTypeDeployed") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("AgentTypeDeployed"))
              .setText(ent.getAgentTypeDeployed().toString());
        } else {
          if (currentMap.get("AgentTypeDeployed") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("AgentTypeDeployed"))
                .setText(ent.getAgentTypeDeployed().toString());
        }
      } else {
        if (currentMap.get("AgentTypeDeployed") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("AgentTypeDeployed")).setText("");
        else {
          if (!(currentMap.get("AgentTypeDeployed")
              instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("AgentTypeDeployed")).setText("");
        }
      }
    }

    if (currentMap.get("Id") != null) {
      if (ent != null && ent.getId() != null) {
        if (currentMap.get("Id") instanceof javax.swing.JLabel) {
          ((javax.swing.JLabel) (currentMap).get("Id")).setText(ent.getId().toString());
        } else {
          if (currentMap.get("Id") instanceof javax.swing.text.JTextComponent)
            ((javax.swing.text.JTextComponent) (currentMap).get("Id"))
                .setText(ent.getId().toString());
        }
      } else {
        if (currentMap.get("Id") instanceof javax.swing.JLabel)
          ((javax.swing.JLabel) (currentMap).get("Id")).setText("");
        else {
          if (!(currentMap.get("Id") instanceof ingenias.editor.rendererxml.CollectionPanel))
            ((javax.swing.text.JTextComponent) (currentMap).get("Id")).setText("");
        }
      }
    }
  }
예제 #21
0
 public Component getRendererComponent(
     JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) {
   return RenderComponentManager.retrievePanel("WFResponsable", this.current);
 }