From: Dicheva, D. <dic...@ws...> - 2005-04-17 23:18:26
|
Hi, I wonder if anybody could advise on the following: I am trying to add scoping in our viewer based on TMNav. For that purpose I would like to take from the interface (in TMNav) themes set by the user for filtering out TM objects. I need to pass these themes over to the Panckoucke index abstractors, so that they only include in the models the qualifying objects.=20 For this purpose I introduced a 4th parameter in the Panckoucke's ModelProvider getModel method: public AModel getModel(AMMember member, String abstractorClassname, AbstractionContext options, ScopesStore scopesStore) (I have added a ScopesStore class in Panckoucke for storing the current sets of chosen themes for each of the open TMs. I am not sure if it is a good solution, but didn't manage to use any of the current classes, e.g. AbstractionContext.) The problem is that when this method is called in the TMNav's IndexProvider and RendererView classes I get compilation errors (see below). My question is: Could I (and if so how) change a Panckoucke class so that this change is recognised by TMNav? I do produce a new jar file after compiling Panckoucke and copy it to the TMNav lib folder ... I would appreciate a lot any feedback. Many thanks, Darina ------------------------------- Buildfile: C:\workspace\TMNav\build.xml build: [javac] Compiling 5 source files to C:\workspace\TMNav\buildclasses [javac] C:\workspace\TMNav\src\org\tm4j\tmnav\app\ix\IndexProvider.java:82: cannot find symbol [javac] symbol : method getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,<nulltype>, org.tm4j.panckoucke.store.ScopesStore) [javac] location: interface org.tm4j.panckoucke.model.ModelProvider [javac] AModel model =3D modelProvider.getModel(member, abstractorClassname, null, scopesStore); [javac] ^ [javac] C:\workspace\TMNav\src\org\tm4j\tmnav\app\ui\RendererView.java:425: cannot find symbol [javac] symbol : method getModel(org.tm4j.panckoucke.model.AMMember,java.lang.String,org.tm4j.pa nckoucke.abstraction.AbstractionContext,org.tm4j.panckoucke.store.Scopes Store) [javac] location: interface org.tm4j.panckoucke.model.ModelProvider [javac] model =3D mp.getModel(member, ad.getClassname(),abstractionEnv.getAbstractionContext(), navCtx.getScopesStore()); [javac] ^ [javac] 2 errors BUILD FAILED: C:\workspace\TMNav\build.xml:66: Compile failed; see the compiler error output for details. Total time: 1 second |