Package org.eclipse.jdt.ui.actions

Examples of org.eclipse.jdt.ui.actions.FormatAllAction


                  if (Activator
                      .getDefault()
                      .getPreferenceStore()
                      .getBoolean(
                          PreferenceConstants.P_FORMAT_ON_INSERT)) {
                    FormatAllAction format = new FormatAllAction(
                        editor.getEditorSite());
                    format.runOnMultiple(new ICompilationUnit[] { icu2 });
                  }
                } catch (Exception e) {
                  logger.debug(e.toString());
                  CrashReporter.reportException(e);
                }
View Full Code Here


            if (Activator
                .getDefault()
                .getPreferenceStore()
                .getBoolean(
                    PreferenceConstants.P_FORMAT_ON_INSERT)) {
              FormatAllAction format = new FormatAllAction(editor
                  .getEditorSite());
              format.runOnMultiple(new ICompilationUnit[] { icu2 });
            }
            icu2.commitWorkingCopy(true, monitor);
          } catch (Exception e) {
            logger.debug(e.toString());
            CrashReporter.reportException(e);
View Full Code Here

            PluginUI.getActiveEditor().getEditorSite());
        organize.run(icu);
      }

      if (doFormat) {
        FormatAllAction format = new FormatAllAction(PluginUI
            .getActiveEditor().getEditorSite());
        format.runOnMultiple(new ICompilationUnit[] { icu });
      }
    } catch (Exception e) {
      CrashReporter.reportException(e);
      logger.debug("Could not beautify editor content: "
          + e.getLocalizedMessage());
View Full Code Here

                  if (Activator
                      .getDefault()
                      .getPreferenceStore()
                      .getBoolean(
                          PreferenceConstants.P_FORMAT_ON_INSERT)) {
                    FormatAllAction format = new FormatAllAction(
                        editor.getEditorSite());
                    format.runOnMultiple(new ICompilationUnit[] { icu2 });
                  }
                } catch (Exception e) {
                  logger.debug(e.toString());
                  CrashReporter.reportException(e);
                }
View Full Code Here

                    final OrganizeImportsAction organizeImportsAction = new OrganizeImportsAction( site );
                    organizeImportsAction.run( cu );
                   
                    monitor.worked( 1 );
                   
                    final FormatAllAction formatAllAction = new FormatAllAction( site );
                    formatAllAction.runOnMultiple( new ICompilationUnit[] { cu } );
                   
                    monitor.worked( 1 );
                   
                    editor.doSave( null );
                   
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.ui.actions.FormatAllAction

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.