Hi Clément,
try to generate with Topcased2.3
The generators have been updated since Topcased 1.3 and I can't tell exactly 
what are the difference ;) (but the method .getId() should be generated in both 
case).
I have tried it on a Topcased2.3. Here are the modification I have done to have 
no errors : 
- Organize Import on the java classes that requires NetworkPlugin.getId() 
- Add a cast (EditPart) in the two errors of NetworkDiagramEditPartFactory.java
Best regards,
Thibault





========================================
Date du message : janv. 15 2009, 10:21 AM
De : topcased-users@lists.gforge.enseeiht.fr
A : topcased-users@lists.gforge.enseeiht.fr
Copie : clement.deb...@continental-corporation.com
Sujet : Re: [Topcased-users] Topcased 1.3.0 to 2.3.0 network tutorial diagram 
generation error


Thanks Thibault, 

I tried it and the compiler gave me an access restriction error "Access 
restriction: The type NetworkPlugin is not accessible due to restriction on 
required project org.topcased.network.modeler" 
Then I modified my preferences in the topcased configuration to avoid these 
errors, as told in this thread : 
http://lists.gforge.enseeiht.fr/pipermail/topcased-users/2008-August/002326.html
 

But now I get another error: "The method getId() is undefined for the type 
NetworkPlugin". 
This error is located in the same files, in the getBundleId() function. This 
function did not exist in Topcased 1.3.0, but if I remove it I get another 
error "The type NetworkPreferencePage must implement the inherited abstract 
method AbstractTopcasedPreferencePage.getBundleId()". 

By the way, if I import the org.topcased.network.NetworkPlugin rather than the 
org.topcased.network.modeler.NetworkPlugin I get the same final error "The 
method getId() is undefined for the type NetworkPlugin" but without the Access 
restriction. 

sincerley, 
Clement Debret 




Thibault LANDRE 
14/01/2009 18:08 Veuillez répondre à
thibault.lan...@atosorigin.com

atopcased-us...@lists.gforge.enseeiht.fr 
ccclement.deb...@continental-corporation.com 
ObjetRe: [Topcased-users] Topcased 1.3.0 to 2.3.0 network tutorial diagram 
generation error







Hi Clement,

I think some imports are missing.

Try to do an 'Organize Import' on your preferencePages (Right Clic > 
Source > Organize Import  OR Ctrl+Shift+O) and save.
Select the 'org.topcased.modeler.network.NetworkPlugin'

It will solve your problem.

I will update the generator to avoid this issue.

Best Regards,

Thibault

topcased-users@lists.gforge.enseeiht.fr a écrit :
> 
> Hello everyone,
> 
> I did the network tutorial supplied by Jacques LESCOT with the 1.3.0 
> version of Topcased and it works fine:
> http://topcased-mm.gforge.enseeiht.fr/website/modeling/tutorials/tutorialNetwork.html
>  
> 
> 
> Then I imported the project in Topcased 2.3.0 to generate the plug-in 
> from this version, and I found errors that were absent in the 1.3.0.
> 
> The .ecore / .genmodel / .editorconfigurator are fine while validating / 
> generating. The .diagramconfigurator file is validated.
> 
> The issues appear while generating the .diagramconfigurator file, during 
> the imports organization. A pop up shows ambiguous references for 
> several java preference files (ComputerPreferencePage.java, 
> InternetPreferencePage.java, NetworkPreferencePage.java and 
> LinksPreferencePage.java).
> Finally there are errors in the problems window, 4 of them saying 
> "NetworkPlugin cannot be resolved" for each preference file, the others 
> apparently resulting from the 4 firsts.
> 
> I think that these errors are due to a location that has changed from 
> 1.3.0 to 2.3.0, and that the generator is missing.
> It may be in the .diagramconfigurator configuration, and I tried to 
> modify it but I cannot find exactly where it can be situated, and in a 
> result I got more "NetworkPlugin cannot be resolved" errors.
> 
> While trying to use the plug-in, the diagram is shown with a buggy view, 
> and the palette is hidden.
> 
> I would be glad if someone could help me with this problem.
> 
> Sincerley,
> Clement Debret
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Topcased-users mailing list
> Topcased-users@lists.gforge.enseeiht.fr
> http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


[ thibault.landre.vcf (2.8 Ko) ]
[ (pas de nom de fichier) (0.2 Ko) ]
_______________________________________________
Topcased-users mailing list
Topcased-users@lists.gforge.enseeiht.fr
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to