Package net.sf.redmine_mylyn.internal.ui.editor.TaskDataValidator

Examples of net.sf.redmine_mylyn.internal.ui.editor.TaskDataValidator.ErrorMessageCollector


//    AbstractTaskEditorPart part = getPart(ID ID_PART_SUMMARY);
//    if (part != null) {
//      part.setFocus();
//    }
   
    ErrorMessageCollector collector = validator.validateTaskData(getModel().getTaskData());
    if (collector.hasErrors()) {
      getTaskEditor().setMessage(collector.getFirstErrorMessage(), IMessageProvider.ERROR);
      return;
    }

    getTaskEditor().setMessage("", IMessageProvider.NONE); //$NON-NLS-1$
    super.doSubmit();
View Full Code Here


  private class ValidatorTaskDataModelListener extends TaskDataModelListener {

    @Override
    public void attributeChanged(TaskDataModelEvent event) {
      ErrorMessageCollector collector = validator.validateTaskAttribute(getModel().getTaskData(), event.getTaskAttribute());
      if(collector!=null && collector.hasErrors()) {
        getTaskEditor().setMessage(collector.getFirstErrorMessage(), IMessageProvider.WARNING);
      } else {
        getTaskEditor().setMessage("", IMessageProvider.NONE); //$NON-NLS-1$
      }
    }
View Full Code Here

TOP

Related Classes of net.sf.redmine_mylyn.internal.ui.editor.TaskDataValidator.ErrorMessageCollector

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.