Package com.mountainminds.eclemma.core.ISessionExporter

Examples of com.mountainminds.eclemma.core.ISessionExporter.ExportFormat


    formatcombo.setInput(ExportFormat.values());
    formatcombo.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        IPath path = Path.fromOSString(destinationcombo.getText());
        path = path.removeFileExtension();
        final ExportFormat format = getExportFormat();
        if (!format.isFolderOutput()) {
          path = path.addFileExtension(format.getFileExtension());
        }
        destinationcombo.setText(path.toOSString());
      }
    });
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
View Full Code Here


    if (getDestination().length() == 0) {
      setMessage(UIMessages.ExportReportPage1MissingDestination_message);
      setPageComplete(false);
      return;
    }
    final ExportFormat format = getExportFormat();
    if (!format.isFolderOutput()) {
      // the extension should correspond to the report type
      String exta = Path.fromOSString(getDestination()).getFileExtension();
      String exte = format.getFileExtension();
      if (!exte.equalsIgnoreCase(exta)) {
        setMessage(
            NLS.bind(UIMessages.ExportReportPage1WrongExtension_message, exte),
            WARNING);
        setPageComplete(true);
View Full Code Here

    formatcombo.setInput(ExportFormat.values());
    formatcombo.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        IPath path = Path.fromOSString(destinationcombo.getText());
        path = path.removeFileExtension();
        final ExportFormat format = getExportFormat();
        if (!format.isFolderOutput()) {
          path = path.addFileExtension(format.getFileExtension());
        }
        destinationcombo.setText(path.toOSString());
      }
    });
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
View Full Code Here

    if (getDestination().length() == 0) {
      setMessage(UIMessages.ExportReportPage1MissingDestination_message);
      setPageComplete(false);
      return;
    }
    final ExportFormat format = getExportFormat();
    if (!format.isFolderOutput()) {
      // the extension should correspond to the report type
      String exta = Path.fromOSString(getDestination()).getFileExtension();
      String exte = format.getFileExtension();
      if (!exte.equalsIgnoreCase(exta)) {
        setMessage(
            NLS.bind(UIMessages.ExportReportPage1WrongExtension_message, exte),
            WARNING);
        setPageComplete(true);
View Full Code Here

    formatcombo.setInput(ExportFormat.values());
    formatcombo.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        IPath path = Path.fromOSString(destinationcombo.getText());
        path = path.removeFileExtension();
        final ExportFormat format = getExportFormat();
        if (!format.isFolderOutput()) {
          path = path.addFileExtension(format.getFileExtension());
        }
        destinationcombo.setText(path.toOSString());
      }
    });
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
View Full Code Here

    if (getDestination().length() == 0) {
      setMessage(UIMessages.ExportReportPage1MissingDestination_message);
      setPageComplete(false);
      return;
    }
    final ExportFormat format = getExportFormat();
    if (!format.isFolderOutput()) {
      // the extension should correspond to the report type
      String exta = Path.fromOSString(getDestination()).getFileExtension();
      String exte = format.getFileExtension();
      if (!exte.equalsIgnoreCase(exta)) {
        setMessage(
            NLS.bind(UIMessages.ExportReportPage1WrongExtension_message, exte),
            WARNING);
        setPageComplete(true);
View Full Code Here

TOP

Related Classes of com.mountainminds.eclemma.core.ISessionExporter.ExportFormat

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.