Package net.zero.smarttrace

Examples of net.zero.smarttrace.ConnectorConfiguration


    }
 
  @Override
  public void run()
    {
    ConnectorConfiguration config=new ConnectorConfiguration();
    config.setName(configName);
    config.loadConfiguration();
   
    TraceFilter filter=new TraceFilter();
    filter.setTraceFilterName(configName);
    filter.loadConfiguration();
   
View Full Code Here



  @Override
  public void loadPageBaseOnModel(Object model)
    {
    ConnectorConfiguration config = (ConnectorConfiguration)model;
   
    if(config.getConnector()==null)
      return;
   
    //limpiar por si antes habia sido llamado este metodo
    for(Control c : container.getChildren())
      c.dispose();
    argsInputs.clear();
   
    //cargar nuevos
    args = config.getConnector().defaultArguments();
    config.setArgs(args);
       
    Argument arg=null;
    ArgumentInput argInput=null;
    for(String key : args.keySet())
      {
      arg = args.get(key);
      Label l=new Label(container, SWT.NONE);
      l.setText(arg.label() + (arg.mustSpecify() ? "*" : ""));
      l.setToolTipText(arg.description());
     
      if(arg instanceof StringArgument)
        argInput=new StringArgumentInput((StringArgument) arg, container);
      else if(arg instanceof BooleanArgument)
        argInput=new BooleanArgumentInput((BooleanArgument) arg, container);
      else if(arg instanceof IntegerArgument)
        argInput=new IntegerArgumentInput((IntegerArgument) arg, container);
      else
        throw new RuntimeException("Tipo de argumento (" + arg + ") no soportado al cargar el Connector " + config.getConnector());
     
      argsInputs.add(argInput);
      }
   
    container.layout();
View Full Code Here

  @Override
  public void performModelUpdate(Object model)
    {
    if(configurationName.isEnabled())
      {
      ConnectorConfiguration config = ((ConnectorConfiguration)model);
      config.setName(configurationName.getText());
      config.saveConfiguration();
      }
    }
View Full Code Here

      WizardDialog dialog = new WizardDialog(HandlerUtil.getActiveShell(event), wizard);
      dialog.open();
      }
    else
      {
      ConnectorConfiguration conf=new ConnectorConfiguration();
      conf.setName(configName);
      conf.loadConfiguration();
     
      TraceFilter filter=new TraceFilter();
      filter.setTraceFilterName(configName);
      filter.loadConfiguration();
     
View Full Code Here

TOP

Related Classes of net.zero.smarttrace.ConnectorConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.