From: Patrick G. <sf...@us...> - 2005-08-30 16:57:34
|
Update of /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/sfcore/languages/sf/predicates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30204/smartfrog/src/org/smartfrog/sfcore/languages/sf/predicates Modified Files: TBD.java Log Message: corrected TBD to work with new "link-sharing" model. Index: TBD.java =================================================================== RCS file: /cvsroot/smartfrog/core/smartfrog/src/org/smartfrog/sfcore/languages/sf/predicates/TBD.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TBD.java 13 Mar 2005 13:33:45 -0000 1.3 --- TBD.java 30 Aug 2005 16:57:26 -0000 1.4 *************** *** 25,33 **** import org.smartfrog.sfcore.reference.Reference; import org.smartfrog.sfcore.reference.ReferencePart; /** * Defines the basic schema implementation. */ ! public class TBD extends BasePredicate implements PhaseAction { /** --- 25,48 ---- import org.smartfrog.sfcore.reference.Reference; import org.smartfrog.sfcore.reference.ReferencePart; + import org.smartfrog.sfcore.componentdescription.ComponentDescription; + import org.smartfrog.sfcore.common.Context; + + import java.util.Stack; /** * Defines the basic schema implementation. */ ! public class TBD implements PhaseAction { ! /** Flag indicating to keep predicate or not. ! */ ! public static boolean keepPredicates = false; ! ! /** The component description. */ ! protected ComponentDescription component; ! ! /** The context of the component. */ ! protected Context context; ! protected String phaseName; ! protected Stack stack; /** *************** *** 35,39 **** * @throws SmartFrogCompileResolutionException Executing this is an error... */ ! protected void doPredicate() throws SmartFrogCompileResolutionException { Reference ref = component.sfCompleteName(); throw new SmartFrogCompileResolutionException ( --- 50,54 ---- * @throws SmartFrogCompileResolutionException Executing this is an error... */ ! public void doit() throws SmartFrogCompileResolutionException { Reference ref = component.sfCompleteName(); throw new SmartFrogCompileResolutionException ( *************** *** 41,43 **** --- 56,69 ---- ); } + + /** + * Sets the component. + * @param cd component description + */ + public void forComponent(ComponentDescription cd, String phasename, Stack p) { + stack = p; + component = cd; + phaseName = phasename; + context = cd.sfContext(); + } } |