X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Faccessor%2Finterestset%2FRecordInterestSet.java;h=687bbdeeee8e2f51f485fb68f3a1baeb479a087e;hb=HEAD;hp=7012693404b544addc733d9a3a0df359c8abf4f3;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/RecordInterestSet.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/RecordInterestSet.java index 701269340..687bbdeee 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/RecordInterestSet.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/accessor/interestset/RecordInterestSet.java @@ -1,18 +1,18 @@ -/******************************************************************************* - * Copyright (c) 2010 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ +/******************************************************************************* + * Copyright (c) 2010 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ package org.simantics.databoard.accessor.interestset; -import org.simantics.databoard.annotations.Optional; -import org.simantics.databoard.type.RecordType; +import org.simantics.databoard.annotations.Optional; +import org.simantics.databoard.type.RecordType; /** * Interest set of a Record Type. @@ -107,15 +107,15 @@ public class RecordInterestSet extends InterestSet { public InterestSet getComponentInterest(int fieldIndex) { if (componentInterests==null) return null; return componentInterests[fieldIndex]; - } - - /** - * Return true there is notification interest to any component - * - * @return true if there is interest in changes of components - */ - public boolean inComponentNotifications() { - return (notifications!=null && notifications.length>0) || (values!=null && values.length>0) || (componentInterests!=null && componentInterests.length>0); + } + + /** + * Return true there is notification interest to any component + * + * @return true if there is interest in changes of components + */ + public boolean inComponentNotifications() { + return (notifications!=null && notifications.length>0) || (values!=null && values.length>0) || (componentInterests!=null && componentInterests.length>0); } }