Package edu.ohio_state.khatchad.refactoring

Examples of edu.ohio_state.khatchad.refactoring.ConvertConstantsToEnumRefactoring


   * Updates the input to the refactoring to mirror the checked constants.
   */
  private void updateRefactoringInput() {
    Object[] checkedElements = this.fTableViewer.getCheckedElements();
    List list = Arrays.asList(checkedElements);
    ConvertConstantsToEnumRefactoring refactoring = (ConvertConstantsToEnumRefactoring) this
        .getRefactoring();
    refactoring.setFieldsToRefactor(list);
  }
View Full Code Here


  }
 
  public static void startConvertConstantsToEnumRefactoring(
      final IField[] fields, final Shell shell) throws JavaModelException {
    List fieldsToRefactor = Arrays.asList(fields);
    ConvertConstantsToEnumRefactoring convertConstantsToEnumRefactoring = new ConvertConstantsToEnumRefactoring(
        fieldsToRefactor);
    ConvertConstantsToEnumWizard wizard = new ConvertConstantsToEnumWizard(
        convertConstantsToEnumRefactoring,
        Messages.ConvertConstantsToEnum_Name);
    new RefactoringStarter().activate(wizard, shell,
View Full Code Here

  private ConvertToEnumTypePage page;

  protected void setUp() throws Exception {
    super.setUp();
    page = new ConvertToEnumTypePage("test");
    page.setWizard(new ConvertConstantsToEnumWizard(new ConvertConstantsToEnumRefactoring(new ArrayList()), "test"));
  }
View Full Code Here

TOP

Related Classes of edu.ohio_state.khatchad.refactoring.ConvertConstantsToEnumRefactoring

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.