I am attempting to use GeoTools to create and eclipse plug-in that draws maps. 
I've had some luck writing conventional Java applications and decided to move 
forward a Rich Client Platform (RCP) implementation to take advantage of the 
better GUI support. Anyway, I've hit a roadblock.  
   
At the point in the program execution when I try to create my first map, the 
program fails when calling a constructor for a class. The class loads a shape 
file and creates a map context.  A key point here is that the constructor 
itself is empty (it's just a stub for now) and the method that creates the map 
context is NEVER called. Even so, if the statement  
   
   MapContext  mapContext = DefaultMapContext();   
   
is called, the program fails. If the line is commented out, it continues on... 
though of course there's little point in doing so since it will never be able 
to render a map.   A similar thing happens if I use DefaultMapLayer.  
Interestingly enough, the program is able to include code open a shape file and 
create a ShapeFileDatastore.  
   
Clearly the problem has to do with the ClassLoader and Eclipse's notion of 
installing custom class loaders.  I am new to the RCP and plug-ins, so I don't 
really know how to proceed from here.  
   
I was wondering whether anyone had a solution for this problem. I know that the 
uDig folks must have worked it out, but I haven't found any relevant discussion 
in the archives for this mailing list.  

As I have said so many times before on this discussion group: thanks in advance 
for your help.  

Gary  

   

   




---
Gary W. Lucas, Senior Software Engineer
Sonalysts, Inc
215 Parkway North
Waterford, CT 06320
(860) 326-3682
  
   
 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to