Package net.zero.smarttrace.core

Examples of net.zero.smarttrace.core.ConnectorConfiguration


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


  @Override
  public void performModelUpdate()
    {
    if(configurationName.isEnabled())
      {
      ConnectorConfiguration config = (ConnectorConfiguration)((ModelWizard)getWizard()).getModel(JDIConnectionWizard.MODEL_JDI_CONNECTION);
      config.setName(configurationName.getText());
     
      TraceFilter filter = (TraceFilter) ((ModelWizard)getWizard()).getModel(TraceFilterWizard.MODEL_TRACE_FILTER);
      filter.setTraceFilterName(configurationName.getText());
      }
    else
      {
      ConnectorConfiguration config = (ConnectorConfiguration)((ModelWizard)getWizard()).getModel(JDIConnectionWizard.MODEL_JDI_CONNECTION);
      config.setName(null);
     
      TraceFilter filter = (TraceFilter) ((ModelWizard)getWizard()).getModel(TraceFilterWizard.MODEL_TRACE_FILTER);
      filter.setTraceFilterName(null);
      }
    }
View Full Code Here


  @Override
  public void loadPageBaseOnModel()
    {
    ConnectorConfiguration config = (ConnectorConfiguration)((ModelWizard)getWizard()).getModel(JDIConnectionWizard.MODEL_JDI_CONNECTION);
   
    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()
    {
    if(configurationName.isEnabled())
      {
      ConnectorConfiguration config = (ConnectorConfiguration)((ModelWizard)getWizard()).getModel(JDIConnectionWizard.MODEL_JDI_CONNECTION);
      config.setName(configurationName.getText());
      }
    }
View Full Code Here

TOP

Related Classes of net.zero.smarttrace.core.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.