Java 类org.eclipse.emf.common.notify.impl.NotifyingListImpl 实例源码

项目:OpenSPIFe    文件:PlanResourceImpl.java   
/**
 * Overriden to suppress notification
 */
@Override
public EList<Diagnostic> getErrors() {
    if (errors == null) {
        errors = new NotifyingListImpl<Diagnostic>() {
            private static final long serialVersionUID = 1L;

            @Override
            protected boolean isNotificationRequired() {
                return false;
            }

            @Override
            public Object getNotifier() {
                return PlanResourceImpl.this;
            }

            @Override
            public int getFeatureID() {
                return RESOURCE__ERRORS;
            }
        };
    }
    return errors;
}
项目:OpenSPIFe    文件:PlanResourceImpl.java   
/**
 * Overriden to suppress notification
 */
@Override
public EList<Diagnostic> getWarnings() {
    if (warnings == null) {
        warnings = new NotifyingListImpl<Diagnostic>() {
            private static final long serialVersionUID = 1L;

            @Override
            protected boolean isNotificationRequired() {
                return false;
            }

            @Override
            public Object getNotifier() {
                return PlanResourceImpl.this;
            }

            @Override
            public int getFeatureID() {
                return RESOURCE__WARNINGS;
            }
        };
    }
    return warnings;
}
项目:eclipse-avro    文件:ResourceImpl.java   
public EList<Diagnostic> getErrors()
{
  if (errors == null)
  {
    errors =
      new NotifyingListImpl<Diagnostic>()
      {
        private static final long serialVersionUID = 1L;

        @Override
        protected boolean isNotificationRequired()
        {
           return ResourceImpl.this.eNotificationRequired();
        }

        @Override
        public Object getNotifier()
        {
          return ResourceImpl.this;
        }

        @Override
        public int getFeatureID()
        {
          return RESOURCE__ERRORS;
        }
      };
  }
  return errors;
}
项目:eclipse-avro    文件:ResourceImpl.java   
public EList<Diagnostic> getWarnings()
{
  if (warnings == null)
  {
    warnings =
      new NotifyingListImpl<Diagnostic>()
      {
        private static final long serialVersionUID = 1L;

        @Override
        protected boolean isNotificationRequired()
        {
           return ResourceImpl.this.eNotificationRequired();
        }

        @Override
        public Object getNotifier()
        {
          return ResourceImpl.this;
        }

        @Override
        public int getFeatureID()
        {
          return RESOURCE__WARNINGS;
        }
      };
  }
  return warnings;
}
项目:clickwatch    文件:ResourceImpl.java   
public EList<Diagnostic> getErrors()
{
  if (errors == null)
  {
    errors =
      new NotifyingListImpl<Diagnostic>()
      {
        private static final long serialVersionUID = 1L;

        @Override
        protected boolean isNotificationRequired()
        {
           return ResourceImpl.this.eNotificationRequired();
        }

        @Override
        public Object getNotifier()
        {
          return ResourceImpl.this;
        }

        @Override
        public int getFeatureID()
        {
          return RESOURCE__ERRORS;
        }
      };
  }
  return errors;
}
项目:clickwatch    文件:ResourceImpl.java   
public EList<Diagnostic> getWarnings()
{
  if (warnings == null)
  {
    warnings =
      new NotifyingListImpl<Diagnostic>()
      {
        private static final long serialVersionUID = 1L;

        @Override
        protected boolean isNotificationRequired()
        {
           return ResourceImpl.this.eNotificationRequired();
        }

        @Override
        public Object getNotifier()
        {
          return ResourceImpl.this;
        }

        @Override
        public int getFeatureID()
        {
          return RESOURCE__WARNINGS;
        }
      };
  }
  return warnings;
}