Package net.sf.apptools.data

Examples of net.sf.apptools.data.DefaultDataHolder


        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;
        }

        final Integer result = (Integer) dh.getData("OPTION"); //$NON-NLS-1$
        if (result == null) {
          return;
        }

        switch(result.intValue()) {
View Full Code Here


    }
    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});
    }

    if (!platform.getUI().inputData(importProbesData,CoreMessages.getString("ProbeMakerPlugIn.TITLE_IMPORT_PROBES"))) { //$NON-NLS-1$
      return;
    }
View Full Code Here

    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,
          selectorDesc,
          constructorDesc,
          resetTagsDesc
      });
    }
    else {
      designJobData = new DefaultDataHolder(new DataDescriptor[] {
          acceptorDesc,
          selectorDesc,
          constructorDesc,
          resetTagsDesc
      },
View Full Code Here

    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
    });

    if (!platform.getUI().inputData(newProjectData,CoreMessages.getString("NewProjectDialog.TITLE_NEW_PROJECT"))) { //$NON-NLS-1$
      return;
    }

    String name = (String) newProjectData.getData("PROJECT_NAME"); //$NON-NLS-1$
    if (name == null) {
      return;
    }
    if (name.length() == 0) {
      name = CoreMessages.getString("ProbeMakerPlugIn.NAME_NEW_PROJECT"); //$NON-NLS-1$
    }

    final boolean use = ((Boolean) newProjectData.getData("USE_TEMPLATE")).booleanValue(); //$NON-NLS-1$

    if (use) {
      template = (ProjectTemplate) newProjectData.getData("TEMPLATE"); //$NON-NLS-1$
      if (template == null) {
        final byte result = platform.getUI().sendMessage(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_NO_TEMPLATE"),CoreMessages.getString("ProbeMakerPlugIn.TITLE_NEW_PROJECT"),PlatformUI.YES_NO_QUERY); //$NON-NLS-1$ //$NON-NLS-2$
        if (result == PlatformUI.NO_OPTION) {
          return;
        }
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;
        }

        final Integer result = (Integer) dh.getData("OPTION"); //$NON-NLS-1$
        if (result == null) {
          return;
        }

        switch(result.intValue()) {
View Full Code Here

    }
    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});
    }

    if (!platform.getUI().inputData(importProbesData,CoreMessages.getString("ProbeMakerPlugIn.TITLE_IMPORT_PROBES"))) { //$NON-NLS-1$
      return;
    }
View Full Code Here

    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,
          selectorDesc,
          constructorDesc,
          resetTagsDesc
      });
    }
    else {
      designJobData = new DefaultDataHolder(new DataDescriptor[] {
          acceptorDesc,
          selectorDesc,
          constructorDesc,
          resetTagsDesc
      },
View Full Code Here

    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
    });

    if (!platform.getUI().inputData(newProjectData,CoreMessages.getString("NewProjectDialog.TITLE_NEW_PROJECT"))) { //$NON-NLS-1$
      return;
    }

    String name = (String) newProjectData.getData("PROJECT_NAME"); //$NON-NLS-1$
    if (name == null) {
      return;
    }
    if (name.length() == 0) {
      name = CoreMessages.getString("ProbeMakerPlugIn.NAME_NEW_PROJECT"); //$NON-NLS-1$
    }

    final boolean use = ((Boolean) newProjectData.getData("USE_TEMPLATE")).booleanValue(); //$NON-NLS-1$

    if (use) {
      template = (ProjectTemplate) newProjectData.getData("TEMPLATE"); //$NON-NLS-1$
      if (template == null) {
        final byte result = platform.getUI().sendMessage(CoreMessages.getString("ProbeMakerPlugIn.MESSAGE_NO_TEMPLATE"),CoreMessages.getString("ProbeMakerPlugIn.TITLE_NEW_PROJECT"),PlatformUI.YES_NO_QUERY); //$NON-NLS-1$ //$NON-NLS-2$
        if (result == PlatformUI.NO_OPTION) {
          return;
        }
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;
        }

        final Integer result = (Integer) dh.getData("OPTION"); //$NON-NLS-1$
        if (result == null) {
          return;
        }

        switch(result.intValue()) {
View Full Code Here

    }
    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});
    }

    if (!platform.getUI().inputData(importProbesData,CoreMessages.getString("ProbeMakerPlugIn.TITLE_IMPORT_PROBES"))) { //$NON-NLS-1$
      return;
    }
View Full Code Here

TOP

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

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.