Examples of ICsvMarshaller


Examples of de.ambits.csvmaster.marshal.ICsvMarshaller

  /**
   * Binds the content of the csv file to the tableViewer.
   */
  public void initWidgets() {
    final ICsvMarshaller marshaller = MarshallerFactory.getMarshaller(MARSHALLERTYPE);
     try {
       //Running in progress bar for large CSV files
      new ProgressMonitorDialog(getShell()).run(false, false,
                new IRunnableWithProgress() {                           
              @Override
              public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
               
                PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
              @Override
              public void run() {
                try {
                  monitor.beginTask("Create Table view...", 4);
                  monitor.worked(1);
                  monitor.subTask("Marshall data...");
                  Thread.sleep(DUMMY_PROGESS_TIME);
                  csvTable = marshaller.unmarshal(getCsvContent(), true);
                  csvTable.addEmptyRow();
                  monitor.worked(1);
                  monitor.subTask("Setting input...");
                  Thread.sleep(DUMMY_PROGESS_TIME);
                  tableViewer.setInput(csvTable);
View Full Code Here

Examples of de.ambits.csvmaster.marshal.ICsvMarshaller

   * Synchronize the Model-content with the CSV file content.
   */
  public void syncWithTextEditor() {
    csvTable.cleanUp();
    IDocument document = editor.getTextEditor().getDocumentProvider().getDocument(editor.getEditorInput());
    ICsvMarshaller marshaller = MarshallerFactory.getMarshaller(MARSHALLERTYPE);
      document.set(marshaller.marshal(csvTable));
  }
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.