Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Setting up uDig 1.2 development in Eclipse

Hi David,
I think the fastest way to go is to find the class by typing
Ctrl^shift^T, which opens the "Open Type" dialog. There write
DB2GeoResource. It should find it, since you have the source code in
your workspace, and it should open it.

To set a breakpoint just double click on the left border of the editor
at the line you want to stop.

In the plugin development perspective you should have a "package explorer".
At the top of it you find a small triangle (in linux, not sure else),
from which you can find the "Top Level Elements".
Another friend is the button with the two yellow opposed arrows. When
you push that, the explorer opens the code tree inside which the
current file opened in the java editor resides, so you will also
understand inside which package you are debugging.

Hope this helps a bit, I note that explaining debugging in English is
not that easy for me :)

Ciao
Andrea


On Wed, Dec 10, 2008 at 6:20 PM, David Adler <dadler@xxxxxxxxxxx> wrote:
> Thank you for the help.  I was able to get uDig 1.2 running in Eclipse.  It
> was possible to load a layer from DB2 LUW but this failed loading from DB2
> for z/OS with the error:
> java.lang.NullPointerException
>   at
> net.refractions.udig.catalog.internal.db2.DB2GeoResource$DB2GeoResourceInfo.getTitle(Unknown
> Source)
>   at net.refractions.udig.catalog.ui.CatalogUIPlugin.title(Unknown Source)
>   at net.refractions.udig.catalog.ui.CatalogUIPlugin.title(Unknown Source)
>   at
> net.refractions.udig.catalog.ui.ResolveTitlesDecorator$UpdateLabel.run(Unknown
> Source)
>   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> I'm afraid I'm a newbie to debugging plug-ins in Eclipse.  How do I set a
> breakpoint?  Normally I work with regular Java projects in Eclipse and can
> easily select the file to set a breakpoint before starting debug mode.
>
> In case I need to use Eclipse with the source tree, I've been following the
> instructions for this which are very good.  However after importing the uDig
> 1.2 code from the source tree, when I get to step 3 "Create Working sets",
> I'm not clear on how I select "Top Level Elements" from the package
> explorer.  I do see a huge number of net.refractions.udig packages.
>
> Ugo Taddei wrote:
>>
>> Hi,
>>
>> David Adler wrote:
>>>
>>> When will uDig trunk be released as a product?
>>>
>>> If one has an svn copy of uDig trunk, is it straightforward to use this
>>> in Eclipse?
>>
>> The answer depends on your previous experience with udig/eclipse. If
>> you've done it before, then you might be ok. Otherwise try
>>
>> http://udig.refractions.net/confluence/display/DEV/1+SDK+Quickstart
>>
>> especially
>> -> uDIG 1.2 Development Quickstart
>>
>> Worked for me. Though I'm back on trunk.
>>
>> Cheers,
>>
>> Ugo
>>
>>>
>>> Adrian Custer wrote:
>>>>
>>>> Hey,
>>>>
>>>> udig 1.1 uses gt 2.2, udig trunk uses gt trunk (aka 2.6).
>>>>
>>>> --adrian
>>>>
>>>> On Tue, 2008-12-09 at 16:30 -0500, David Adler wrote:
>>>>
>>>>>
>>>>> From looking at the libs shipped with uDig, I would guess that uDig is
>>>>> working with GeoTools V2.2.
>>>>>
>>>>> Is this correct and are there documented plans to move to a more
>>>>> current version of GeoTools?
>>>>>
>>>>> We have been trying to do some testing of uDig support for DB2 for z/OS
>>>>> but the support for this in GeoTools is in a much later version, 2.4 or 2.5.
>>>>>
>>>>> _______________________________________________
>>>>> User-friendly Desktop Internet GIS (uDig)
>>>>> http://udig.refractions.net
>>>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>>>>
>>>>
>>>> _______________________________________________
>>>> User-friendly Desktop Internet GIS (uDig)
>>>> http://udig.refractions.net
>>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>>>
>>>
>>>
>>> _______________________________________________
>>> User-friendly Desktop Internet GIS (uDig)
>>> http://udig.refractions.net
>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>>
>>>
>>>
>>
>>
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>


Back to the top