X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2FPropertyVariables.java;h=48ac0c044451601b5049cadf8369c33a96d80bfa;hb=06ee0c4c71cd9e372969da1570e7fcac2c4397a5;hp=464227d7301dae8791993c8ff05b0224c6aaacb8;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/PropertyVariables.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/PropertyVariables.java index 464227d73..48ac0c044 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/PropertyVariables.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/PropertyVariables.java @@ -1,60 +1,60 @@ -package org.simantics.modeling; - -import org.simantics.db.ReadGraph; -import org.simantics.db.exception.DatabaseException; -import org.simantics.db.layer0.variable.Variable; -import org.simantics.utils.datastructures.hints.IHintContext; - -/** - * TODO: the IHintContext is just a nasty vimpautus to provide data to the - * monitor drop participant - * - * A property variable must have at least a visualized part, - * {@link #getModificationVariable()} may return null. - */ -public interface PropertyVariables extends IHintContext { - - /** - * @return the container of the property - */ - Variable getContainer(); - - /** - * @return the configuration space variable for the property - */ - Variable getConfiguration(); - - /** - * @return the variable to read labeling/other visualisation information - * from - */ - Variable getVisualVariable(); - - /** - * @return the variable into which to write modifications to this property - */ - Variable getModificationVariable(); - - /** - * @return - */ - String getSuffix(); - - /** - * To support indexing. - * - * @param suffix - * @return - */ - PropertyVariables withSuffix(String suffix); - - /** - * @return a new instance where {@link #getVisualVariable()} and - * {@link #getModificationVariable()} are both browsed with a suffix - * attached to this property variable. {@link #getContainer()} - * returns the same value. If this instance has no suffix, this will - * be returned. - */ - PropertyVariables resolved(ReadGraph graph) throws DatabaseException; - -} +package org.simantics.modeling; + +import org.simantics.db.ReadGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.variable.Variable; +import org.simantics.utils.datastructures.hints.IHintContext; + +/** + * TODO: the IHintContext is just a nasty vimpautus to provide data to the + * monitor drop participant + * + * A property variable must have at least a visualized part, + * {@link #getModificationVariable()} may return null. + */ +public interface PropertyVariables extends IHintContext { + + /** + * @return the container of the property + */ + Variable getContainer(); + + /** + * @return the configuration space variable for the property + */ + Variable getConfiguration(); + + /** + * @return the variable to read labeling/other visualisation information + * from + */ + Variable getVisualVariable(); + + /** + * @return the variable into which to write modifications to this property + */ + Variable getModificationVariable(); + + /** + * @return + */ + String getSuffix(); + + /** + * To support indexing. + * + * @param suffix + * @return + */ + PropertyVariables withSuffix(String suffix); + + /** + * @return a new instance where {@link #getVisualVariable()} and + * {@link #getModificationVariable()} are both browsed with a suffix + * attached to this property variable. {@link #getContainer()} + * returns the same value. If this instance has no suffix, this will + * be returned. + */ + PropertyVariables resolved(ReadGraph graph) throws DatabaseException; + +}