/* * (non-Javadoc) * @see org.eclipse.core.databinding.validation.IValidator#validate(java.lang.Object) */ @Override public IStatus validate(final Object value) { final String content = inputExpression.getContent(); final WebPageRepositoryStore repositoryStore = repositoryAccessor.getRepositoryStore(WebPageRepositoryStore.class); return repositoryStore.getChild(content) == null ? ValidationStatus.error( Messages.bind( Messages.pageDoesntExists, String.format("%s (%s)", inputExpression.getName(), content))) : ValidationStatus.ok(); }
/* * (non-Javadoc) * @see org.eclipse.core.databinding.validation.IValidator#validate(java.lang.Object) */ @Override public IStatus validate(final Object value) { final String content = inputExpression.getContent(); final WebPageRepositoryStore repositoryStore = repositoryAccessor.getRepositoryStore(WebPageRepositoryStore.class); String errorMessage = null; if (ProcessPackage.Literals.RECAP_FLOW__OVERVIEW_FORM_MAPPING.equals(feature)) { errorMessage = Messages.bind(Messages.pageDoesntExist, content); } else { errorMessage = Messages.bind(Messages.formDoesntExist, content); } return repositoryStore.getChild(content) == null ? ValidationStatus.error(errorMessage) : ValidationStatus.ok(); }
@Override public void okPressed() { if (!editorInputExpression.getContent().equals(editorInputExpression.getName())) { editorInputExpression.setName(editorInputExpression.getContent()); } }
/** @param calledProcessName */ public ListSubprocesses(Expression calledProcessName) { subprocessName = calledProcessName.getContent(); }