Examples of ExportFormat


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

    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

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

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

    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

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

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

    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

Examples of net.sf.latexdraw.actions.Export.ExportFormat


  @Override
  public void initAction() {
    final JMenuItem item = interaction.getMenuItem();
    final ExportFormat format;

    if(item==instrument.menuItemPDF)
      format = ExportFormat.PDF;
    else if(item==instrument.menuItemPDFcrop)
      format = ExportFormat.PDF_CROP;
View Full Code Here

Examples of uk.ac.man.cs.mig.util.graph.export.ExportFormat

    createWizard();
    if(wizard.showWizard() == Wizard.OPTION_APPROVE) {
      // The user elected to export the graph
      // to an image file.  Get the format
      // and the file name.
      ExportFormat format = formatPage.getSelectedExportFormat();
      String fileName = fileNamePage.getFileName();

      // Create an export stream based on the
      //specified file name.
      OutputStream os = createOutputStream(fileName);
View Full Code Here

Examples of uk.ac.man.cs.mig.util.graph.export.ExportFormat

   *               data should be written to.
   * @param format The <code>ExportFormat</code> for the data.
   */
  protected void doExport(OutputStream os,
                          ExportFormat format) {
    ExportFormat exportFormat = formatPage.getSelectedExportFormat();
    GraphComponent graphComponent = hierarchyPage.getSelectedGraphComponent();
    exportFormat.export(graphComponent.getController(), os);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.