Package org.eclipse.jdt.ui.actions

Examples of org.eclipse.jdt.ui.actions.OrganizeImportsAction.run()


          copy.discardWorkingCopy();
        }
        IWorkbenchPartSite site = getEditorSite();
        if (site != null) {
          OrganizeImportsAction action = new OrganizeImportsAction(site);
          action.run(unit);
        }
        type = getUnitMainType(unit);
        rename(type, root);
        if (unit.isWorkingCopy()) {
          unit.commitWorkingCopy(true, monitor);
View Full Code Here


                      .getPreferenceStore()
                      .getBoolean(
                          PreferenceConstants.P_ORGANIZE_IMPORTS)) {
                    OrganizeImportsAction organize = new OrganizeImportsAction(
                        editor.getEditorSite());
                    organize.run(icu2);
                  }

                  // Format code properly
                  if (Activator
                      .getDefault()
View Full Code Here

                .getPreferenceStore()
                .getBoolean(
                    PreferenceConstants.P_ORGANIZE_IMPORTS)) {
              OrganizeImportsAction organize = new OrganizeImportsAction(
                  editor.getEditorSite());
              organize.run(icu2);
            }

            // Format code properly
            if (Activator
                .getDefault()
View Full Code Here

          .getBoolean(PreferenceConstants.P_FORMAT_ON_INSERT);

      if (doOrganize) {
        OrganizeImportsAction organize = new OrganizeImportsAction(
            PluginUI.getActiveEditor().getEditorSite());
        organize.run(icu);
      }

      if (doFormat) {
        FormatAllAction format = new FormatAllAction(PluginUI
            .getActiveEditor().getEditorSite());
View Full Code Here

                      .getPreferenceStore()
                      .getBoolean(
                          PreferenceConstants.P_ORGANIZE_IMPORTS)) {
                    OrganizeImportsAction organize = new OrganizeImportsAction(
                        editor.getEditorSite());
                    organize.run(icu2);
                  }

                  // Format code properly
                  if (Activator
                      .getDefault()
View Full Code Here

                    }
                   
                    monitor.worked( 1 );
                   
                    final OrganizeImportsAction organizeImportsAction = new OrganizeImportsAction( site );
                    organizeImportsAction.run( cu );
                   
                    monitor.worked( 1 );
                   
                    final FormatAllAction formatAllAction = new FormatAllAction( site );
                    formatAllAction.runOnMultiple( new ICompilationUnit[] { cu } );
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.