Le 23/05/2013 11:29, stephane ducasse a écrit :
Normally RPackage knows it.
The problem is that two use cases for an extension or an override with the AltBrowser is: extension: 1 - create a new method x in Class A belonging to package B 2 - drag and drop method x to package C (to make it an extension in C) override: 1 - modify method x in Class A belonging to package B 2 - drag and drop method x to package C (to make it an override in C) What I think that RPackage will do is that, at step 2, it will answer that method x belong to package B (in both cases). What I would like is, at 2, being able to tell whether x is new in B or has been stored as part of package B (before any changes). Will RPackage be able distinguish between the two ?
Now we are really thinking how to go the next level with PackageInfo and the rest.
Stef
On May 23, 2013, at 9:32 AM, Goubier Thierry <thierry.goubier@cea.fr> wrote:
Hi,
as the question says: how can I determine if a selector of a class is already listed as belonging to an existing version of a MC package ?
What I want to do is to determine, when I drag a method from a class to a package, whether this method should go as an extension or an override. At the moment, in the AltBrowser, if you drag a method from a class to the extension tag of a package, it will move the method in the right extension protocol, creating it if needed. Now, what I'd like is, if you do that to a method which has a version in an existing package (not just in the current changes), it can give you the choice to list that method as an override instead of an extension. And for that, I need to query the MCPackage, no?
Thierry -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95