Examples of ConvertConstantsToEnumRefactoring


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

Examples of edu.ohio_state.khatchad.refactoring.ConvertConstantsToEnumRefactoring

  }
 
  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

Examples of edu.ohio_state.khatchad.refactoring.ConvertConstantsToEnumRefactoring

  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
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.