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

        if (acceptor instanceof ParameterPlugIn) {
          ParameterPlugIn paAcceptor = (ParameterPlugIn) acceptor;
          DataDescriptor[] dds = paAcceptor.getDataDescriptors();
          if (dds != null) {
            for (int d = 0;d<dds.length;d++) {
              DataDescriptor dd = dds[d];
              String string = props.getProperty("probemaker.acceptor." + dd.getKey());
              paAcceptor.setData(dd.getKey(), string);
            }
          }
        }
        System.out.println("  Acceptor is: " + acceptor.getClass().getName()); //$NON-NLS-1$

        ProbeSelector selector = (ProbeSelector) Class.forName(selClassName).newInstance();
        if (selector instanceof ParameterPlugIn) {
          ParameterPlugIn paSelector = (ParameterPlugIn) selector;
          DataDescriptor[] dds = paSelector.getDataDescriptors();
          if (dds != null) {
            for (int d = 0;d<dds.length;d++) {
              DataDescriptor dd = dds[d];
              String string = props.getProperty("probemaker.selector." + dd.getKey());
              paSelector.setData(dd.getKey(), string);
            }
          }
        }
        System.out.println("  Selector is: " + selector.getClass().getName());   //$NON-NLS-1$

        SequenceDBDataReader format = (SequenceDBDataReader) Class.forName(formatClassName).newInstance();
        if (format instanceof ParameterPlugIn) {
          ParameterPlugIn paFormat = (ParameterPlugIn) selector;
          DataDescriptor[] dds = paFormat.getDataDescriptors();
          if (dds != null) {
            for (int d = 0;d<dds.length;d++) {
              DataDescriptor dd = dds[d];
              String string = props.getProperty("probemaker.targetInputFormat." + dd.getKey());
              paFormat.setData(dd.getKey(), string);
            }
          }
        }

        if (outputClassName == null) {
View Full Code Here

        if (acceptor instanceof ParameterPlugIn) {
          ParameterPlugIn paAcceptor = (ParameterPlugIn) acceptor;
          DataDescriptor[] dds = paAcceptor.getDataDescriptors();
          if (dds != null) {
            for (int d = 0;d<dds.length;d++) {
              DataDescriptor dd = dds[d];
              String string = props.getProperty("probemaker.acceptor." + dd.getKey());
              paAcceptor.setData(dd.getKey(), string);
            }
          }
        }
        System.out.println("  Acceptor is: " + acceptor.getClass().getName()); //$NON-NLS-1$

        ProbeSelector selector = (ProbeSelector) Class.forName(selClassName).newInstance();
        if (selector instanceof ParameterPlugIn) {
          ParameterPlugIn paSelector = (ParameterPlugIn) selector;
          DataDescriptor[] dds = paSelector.getDataDescriptors();
          if (dds != null) {
            for (int d = 0;d<dds.length;d++) {
              DataDescriptor dd = dds[d];
              String string = props.getProperty("probemaker.selector." + dd.getKey());
              paSelector.setData(dd.getKey(), string);
            }
          }
        }
        System.out.println("  Selector is: " + selector.getClass().getName());   //$NON-NLS-1$

        SequenceDBDataReader format = (SequenceDBDataReader) Class.forName(formatClassName).newInstance();
        if (format instanceof ParameterPlugIn) {
          ParameterPlugIn paFormat = (ParameterPlugIn) selector;
          DataDescriptor[] dds = paFormat.getDataDescriptors();
          if (dds != null) {
            for (int d = 0;d<dds.length;d++) {
              DataDescriptor dd = dds[d];
              String string = props.getProperty("probemaker.targetInputFormat." + dd.getKey());
              paFormat.setData(dd.getKey(), string);
            }
          }
        }

        if (outputClassName == null) {
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

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.