Package net.sf.apptools.data

Examples of net.sf.apptools.data.DataDescriptor


        };

        final String title = CoreMessages.getString("ProbeMakerPlugIn.TITLE_REMOVING_PROBES"); //$NON-NLS-1$
        final String message = CoreMessages.getString("ProbeMakerPlugIn.QUERY_REMOVE_TARGETS"); //$NON-NLS-1$

        final DataDescriptor option = new OptionDescriptor(message,null,"OPTION",options,true); //$NON-NLS-1$
        final DataHolder dh = new DefaultDataHolder(new DataDescriptor[] { option });

        if (!platform.getUI().inputData(dh,title)) {
          return;
        }
View Full Code Here


    }
    catch (final PlugInException e1) {
      platform.handleError(e1.toString(),e1);
      return;
    }
    final DataDescriptor formatDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_SELECT_INPUT_FORMAT"),CoreMessages.getString("ProbeMakerPlugIn.TOOL_TIP_SELECT_INPUT_FORMAT"),"FORMAT",formatClasses,true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    final DataDescriptor replaceDesc = new BooleanDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_REPLACE_PROBES"),CoreMessages.getString("ProbeMakerPlugIn.TOOLTIP_REPLACE_PROBES"),"REPLACE"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

    if (importProbesData == null) {
      importProbesData = new DefaultDataHolder(new DataDescriptor[] {formatDesc, replaceDesc});
    }
View Full Code Here

      platform.handleError(e1.toString(),e1);
      return;
    }

    //Get acceptor and selector, quit if cancelled
    final DataDescriptor acceptorDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("DesignJobDialog.CAPTION_CHOOSE_ACCEPTOR"),null,"ACCEPTOR",acceptorClasses,true); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor selectorDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("DesignJobDialog.CAPTION_CHOOSE_SELECTOR"),null,"SELECTOR",selectorClasses,true); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor constructorDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_CHOOSE_TSSCON"),null,"CONSTRUCTOR",constructorClasses,true); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor resetTagsDesc = new BooleanDescriptor(CoreMessages.getString("DesignJobDialog.CAPTION_RESET_TAG_LIBRARIES"),null,"RESET_TAGS"); //$NON-NLS-1$ //$NON-NLS-2$

    if (designJobData == null) {

      designJobData = new DefaultDataHolder(new DataDescriptor[] {
          acceptorDesc,
View Full Code Here

    final String useToolTip =
        "<html>" + //$NON-NLS-1$
            CoreMessages.getString("NewProjectDialog.TEXT_INFO_HTML") + //$NON-NLS-1$
            "</html>"; //$NON-NLS-1$

    final DataDescriptor projectName = new StringDataDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_PROJECT_NAME"),CoreMessages.getString("ProbeMakerPlugIn.TOOLTIP_PROJECT_NAME"),"PROJECT_NAME",true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    final DataDescriptor useTemplate = new BooleanDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_USE_TEMPLATE"),useToolTip,"USE_TEMPLATE"); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor templateSel = new TemplateListSelectionDescriptor(null,null,"TEMPLATE",templateManager.getTemplateArray(),false); //$NON-NLS-1$

    final DataHolder newProjectData = new DefaultDataHolder(new DataDescriptor[] {
        projectName,
        useTemplate,
        templateSel
View Full Code Here

        };

        final String title = CoreMessages.getString("ProbeMakerPlugIn.TITLE_REMOVING_PROBES"); //$NON-NLS-1$
        final String message = CoreMessages.getString("ProbeMakerPlugIn.QUERY_REMOVE_TARGETS"); //$NON-NLS-1$

        final DataDescriptor option = new OptionDescriptor(message,null,"OPTION",options,true); //$NON-NLS-1$
        final DataHolder dh = new DefaultDataHolder(new DataDescriptor[] { option });

        if (!platform.getUI().inputData(dh,title)) {
          return;
        }
View Full Code Here

    }
    catch (final PlugInException e1) {
      platform.handleError(e1.toString(),e1);
      return;
    }
    final DataDescriptor formatDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_SELECT_INPUT_FORMAT"),CoreMessages.getString("ProbeMakerPlugIn.TOOL_TIP_SELECT_INPUT_FORMAT"),"FORMAT",formatClasses,true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    final DataDescriptor replaceDesc = new BooleanDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_REPLACE_PROBES"),CoreMessages.getString("ProbeMakerPlugIn.TOOLTIP_REPLACE_PROBES"),"REPLACE"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

    if (importProbesData == null) {
      importProbesData = new DefaultDataHolder(new DataDescriptor[] {formatDesc, replaceDesc});
    }
View Full Code Here

      platform.handleError(e1.toString(),e1);
      return;
    }

    //Get acceptor and selector, quit if cancelled
    final DataDescriptor acceptorDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("DesignJobDialog.CAPTION_CHOOSE_ACCEPTOR"),null,"ACCEPTOR",acceptorClasses,true); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor selectorDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("DesignJobDialog.CAPTION_CHOOSE_SELECTOR"),null,"SELECTOR",selectorClasses,true); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor constructorDesc = new PlugInClassListSelectionDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_CHOOSE_TSSCON"),null,"CONSTRUCTOR",constructorClasses,true); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor resetTagsDesc = new BooleanDescriptor(CoreMessages.getString("DesignJobDialog.CAPTION_RESET_TAG_LIBRARIES"),null,"RESET_TAGS"); //$NON-NLS-1$ //$NON-NLS-2$

    if (designJobData == null) {

      designJobData = new DefaultDataHolder(new DataDescriptor[] {
          acceptorDesc,
View Full Code Here

    final String useToolTip =
        "<html>" + //$NON-NLS-1$
            CoreMessages.getString("NewProjectDialog.TEXT_INFO_HTML") + //$NON-NLS-1$
            "</html>"; //$NON-NLS-1$

    final DataDescriptor projectName = new StringDataDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_PROJECT_NAME"),CoreMessages.getString("ProbeMakerPlugIn.TOOLTIP_PROJECT_NAME"),"PROJECT_NAME",true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    final DataDescriptor useTemplate = new BooleanDescriptor(CoreMessages.getString("ProbeMakerPlugIn.NAME_USE_TEMPLATE"),useToolTip,"USE_TEMPLATE"); //$NON-NLS-1$ //$NON-NLS-2$
    final DataDescriptor templateSel = new TemplateListSelectionDescriptor(null,null,"TEMPLATE",templateManager.getTemplateArray(),false); //$NON-NLS-1$

    final DataHolder newProjectData = new DefaultDataHolder(new DataDescriptor[] {
        projectName,
        useTemplate,
        templateSel
View Full Code Here

      CandidateAnalysisModule am = c.newInstance();
      for (Iterator<Element> i2 = modE.getChild(DATA_LIST,ns).getChildren(PARAM,ns).iterator();i2.hasNext();) {
        Element parE = i2.next();
        String key = parE.getAttributeValue(KEY,ns);
        String valueString = parE.getAttributeValue(VALUE,ns);
        DataDescriptor dd = DataHolderUtils.getDescriptorForKey(am,key);
        Converter toValueConverter = DataHolderUtils.getToValueConverter(dd);
        if (toValueConverter == null) {
          throw new IllegalArgumentException("No converter found for " + dd.getClass()); //$NON-NLS-1$
        }
        am.setData(key,toValueConverter.convert(dd.getDataType(), valueString));
      }     
      for (Iterator<Element> i2 = modE.getChild(TEST_LIST,ns).getChildren(TEST,ns).iterator();i2.hasNext();) {
        Element parE = i2.next();
        String name = parE.getAttributeValue(NAME,ns);
        String perform = parE.getAttributeValue(DO_TEST,ns);
View Full Code Here

 
  /**Search for a given sequence within all the probes*/
  @SuppressWarnings("unchecked")
  protected void searchProbes() {
    //Get a search string
    DataDescriptor searchStringDesc = new StringDataDescriptor(
        SwingUIMessages.getString("ProbeMakerPlugIn.MESSAGE_ENTER_SEARCH_SEQUENCE")//$NON-NLS-1$
        null, "SEARCH_STRING", true); //$NON-NLS-1$
   
    DataHolder dh = new DefaultDataHolder(
        new DataDescriptor[] {
            searchStringDesc
        }
    );
   
    String title = SwingUIMessages.getString("ProbeMakerPlugIn.TITLE_SEARCH_PROBES"); //$NON-NLS-1$
   
    if (!workbench.inputData(dh,title)) return;
   
    Object input = dh.getData(searchStringDesc.getKey());
   
    if (input == null)
      return;
   
    String searchstr = (String) input;
View Full Code Here

TOP

Related Classes of net.sf.apptools.data.DataDescriptor

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.