[JPP-Devel] R: A question about null values...

2007-05-17 Thread P . Rizzi Ag . Mobilità Ambiente
Before casting you should always check that the instance is indeed what you think, like this: if( needToCast instanceof IRendererFactoryTool ) IRendererFactoryTool casted = (IRendererFactoryTool) needToCast and this saves you from nulls too, because the instanceof will be false if ne

Re: [JPP-Devel] R: A question about null values...

2007-05-17 Thread Sunburned Surveyor
Thanks for this excellent suggestion Paolo. I will add it to my code. The Sunburned Surveyor On 5/17/07, P.Rizzi Ag.Mobilità Ambiente <[EMAIL PROTECTED]> wrote: > > Before casting you should always check that the instance is indeed what you > think, like this: >if( needToCast instanceof IRen

[JPP-Devel] DWG Plug-In For OpenJUMP

2007-05-17 Thread Sunburned Surveyor
Hi everybody I am a new Openjump user. I tried the dwg library for Vivid Jump in Openjump but ii doen't work (message of error: net/jmorell/jdwglib/dwg/dwgfile :No Class Def Found Error). Does somebody face (and sove) the same problem? I use last Openjump ver. 1.2 with Jre/Jai with Windows XP

Re: [JPP-Devel] DWG Plug-In For OpenJUMP

2007-05-17 Thread Sunburned Surveyor
Giuseppe, I wasn't aware that Vivid Solutions or SIGLE has created plug-ins to read DWG files. Perhaps they will be able to comment on the error you are receiving. Typically the "No Class Def Found Error" occurs when OpenJUMP can't find the files it needs for load the plug-in when the program fir

Re: [JPP-Devel] DWG Plug-In For OpenJUMP

2007-05-17 Thread Larry Becker
I'm not sure who the author was, but there appear to be several things wrong with the package. First, it didn't specify adding jdwglib.jar to the CLASSPATH. For example: set LIB=../lib set CLASSPATH=%LIB%/bsh-2.0b1.jar;%LIB%/Jama-1.0.1.jar;%LIB%/jdom.jar;%LIB%/jts-1.7.2.jar;%LIB%/jump-workbench

Re: [JPP-Devel] DWG Plug-In For OpenJUMP

2007-05-17 Thread Larry Becker
The SourceForge page is: http://sourceforge.net/projects/jdwglib/ but it looks to have been inactive for years. Here is a link to the first mention of it on the jump archives: http://www.jump-project.org/pipermail/jump-users/2005-October/003036.html Larry On 5/17/07, Larry Becker <[EMAIL PROT