Examples of formatFile()


Examples of net.stinfoservices.pacifiq.filemanagement.excel.FileExcelFormatter.formatFile()

            }
        }

        FileExcelFormatter fef = new FileExcelFormatter(list, res.getString("FILE_EXCEL_FULL_NAME"), res.getString("FILE_EXCEL_EXTENSION"),
                globalService.getLocaleString());
        byte[] fileBytes = fef.formatFile(type);

        ServletOutputStream outs = response.getOutputStream();
        outs.write(fileBytes);
        outs.flush();
        outs.close();
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatFile()

        IContentType contentType = contentDescription.getContentType();
        IStructuredFormatProcessor formatProcessor = getFormatProcessor(contentType.getId());
        if (formatProcessor != null && (monitor == null || !monitor.isCanceled())) {
          String message = NLS.bind(SSEUIMessages.FormatActionDelegate_3, new String[]{file.getFullPath().toString().substring(1)});          monitor.subTask(message);
          formatProcessor.setProgressMonitor(monitor);
          formatProcessor.formatFile(file);
        }
      }
      monitor.worked(95);
      monitor.done();
    } catch (MalformedInputExceptionWithDetail e) {
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor.formatFile()

        IContentType contentType = contentDescription.getContentType();
        IStructuredFormatProcessor formatProcessor = getFormatProcessor(contentType.getId());
        if (formatProcessor != null && (monitor == null || !monitor.isCanceled())) {
          String message = NLS.bind(SSEUIMessages.FormatActionDelegate_3, new String[]{file.getFullPath().toString().substring(1)});          monitor.subTask(message);
          formatProcessor.setProgressMonitor(new SubProgressMonitor(monitor, 95));
          formatProcessor.formatFile(file);
        }
      }
      monitor.done();
    } catch (MalformedInputExceptionWithDetail e) {
      String message = NLS.bind(SSEUIMessages.FormatActionDelegate_5, new String[]{file.getFullPath().toString()});
View Full Code Here

Examples of org.hibernate.tool.ide.formatting.JavaFormatter.formatFile()

     
      JavaFormatter formatter = new JavaFormatter(settings);
      for (int i = 0; i < files.length; i++) {
        File file = files[i];     
        try {
          boolean ok = formatter.formatFile( file );
          if(!ok) {
            failed++;
            getProject().log(this, "Formatting failed - skipping " + file, Project.MSG_WARN);           
          } else {
            success++;
View Full Code Here

Examples of org.hibernate.tool.ide.formatting.JavaFormatter.formatFile()

    long before = file.lastModified()
   
    waitASec();
   
    JavaFormatter formatter = new JavaFormatter(null);
    formatter.formatFile( file );
   
    assertTrue( before!=file.lastModified() );
       
  }
 
View Full Code Here

Examples of org.hibernate.tool.ide.formatting.JavaFormatter.formatFile()

    File file = new File(project.getProperty( "build.dir" ), "formatting/Simple5One.java5");
    assertFileAndExists( file );
    long before = file.lastModified()
       
    JavaFormatter formatter = new JavaFormatter(new HashMap());
    assertFalse("formatting should fail when using zero settings", formatter.formatFile( file ));
   
    assertTrue( before==file.lastModified() );
   
    waitASec();
   
View Full Code Here

Examples of org.hibernate.tool.ide.formatting.JavaFormatter.formatFile()

   
    executeTarget("prepare");
    assertTrue(getLog(), checkLogWithoutExceptions());
   
    formatter = new JavaFormatter(null);
    assertTrue("formatting should pass when using default settings", formatter.formatFile( file ));
   
   
    assertTrue( before<file.lastModified() );
  }
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.