private void createJavaClass(final String javaClassName) { NewJavaClassWizardDialog newJavaClassDialog = new NewJavaClassWizardDialog(); newJavaClassDialog.open(); NewJavaClassWizardPage wizardPage = newJavaClassDialog.getFirstPage(); wizardPage.setName(javaClassName); newJavaClassDialog.finish(); new WaitWhile(new JobIsRunning(), TimePeriod.LONG); }
private void createParamConverter() { NewJavaClassWizardDialog newJavaClassDialog = new NewJavaClassWizardDialog(); newJavaClassDialog.open(); NewJavaClassWizardPage newJavaClassPage = newJavaClassDialog.getFirstPage(); newJavaClassPage.setPackage("org.rest.test"); newJavaClassPage.setName("Converter"); newJavaClassDialog.finish(); TextEditor editor = new TextEditor(); editor.activate(); editor.setText(PARAM_CONVERTER_PROVIDER_CLASS_TEXT); editor.save(); }