Package org.eclipse.jdt.ui.actions

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


          copy.commitWorkingCopy(true, monitor);
          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


                  if (Activator
                      .getDefault()
                      .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

            if (Activator
                .getDefault()
                .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_ORGANIZE_IMPORTS);
      boolean doFormat = Activator.getDefault().getPreferenceStore()
          .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

                  if (Activator
                      .getDefault()
                      .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

                        overrideMethodsOp.run( null );
                    }
                   
                    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

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

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.