@Override public String getTitle() { if (operation == BonitaGroovyRefactoringAction.REFACTOR_OPERATION) { return Messages.bind(Messages.refactorTitle, elementName); } else { return Messages.bind(Messages.removeTitle, elementName); } }
@Override public void setTitle(String title) { if (operation == BonitaGroovyRefactoringAction.REFACTOR_OPERATION) { super.setTitle(Messages.bind(Messages.refactorTitle, elementName)); } else { super.setTitle(Messages.bind(Messages.removeTitle, elementName)); } }
@Override public Control createContents(Composite parent) { CLabel label = new CLabel(parent, SWT.NONE); if (operation == BonitaGroovyRefactoringAction.REFACTOR_OPERATION) { label.setText(Messages.bind(Messages.reviewChangesMessageRefactoring, elementName, newName)); } else { label.setText(Messages.bind(Messages.reviewChangesMessageRemoving, elementName)); } label.setImage(Display.getCurrent().getSystemImage(SWT.ICON_WARNING)); return super.createContents(parent); }