Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Udig RCP tutorial

Hello list,

 

I just found out about udig, and I would love to use it to embed a udig map into my eclipse rcp application. For this, I followed the tutorials to know more about udig:

And then I finally found the example code I was looking for:  net.refractions.udig.tutorials.rcp

 

But I cannot get it to work. I have search for old messages in the mailing list, and it seems like some people were having problems too before. Is the example working right now in udig 1.2?

I am using the envelopmet setup proposed in SDK Quickstart Guide with Eclipse 3.6 and the extended JRE.

 

This is what I did to run the application:

 

In eclipse:

Go to Plugin-Development perspective

Choose net.refractions.udig.tutorials.rcp from the plugins list and import it as source project.

Open the manifest.mf and click on launch an eclipse application

In the app:

Click on the “open map” icon

Use the menu to “add background layer from file”

I select countries.shp

 

And this is the log messages I get:

 

Thanks for your time J

 

Joaquín.

 

 

10-nov-2010 9:43:12 it.geosolutions.util.KakaduUtilities loadKakadu

ADVERTENCIA: Failed to load the Kakadu native libs. This is not a problem unless you need to use the Kakadu plugin: it won't be enabled. java.lang.UnsatisfiedLinkError: no kdu_jni in java.library.path

!SESSION 2010-11-10 09:43:10.385 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.6.0_17

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=es_ES

Framework arguments:  -product net.refractions.udig.tutorials.rcp.product

Command-line arguments:  -product net.refractions.udig.tutorials.rcp.product -data I:\PROYECTOS\MMI\Udig\workspace/../runtime-net.refractions.udig.tutorials.rcp.product -dev file:I:/PROYECTOS/MMI/Udig/workspace/.metadata/.plugins/org.eclipse.pde.core/net.refractions.udig.tutorials.rcp.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

 

!ENTRY net.refractions.udig.ui 1 0 2010-11-10 09:43:13.276

!MESSAGE Unable to parse version from about.mappings file. Defaulting to a blank string.

 

!ENTRY org.eclipse.jface 2 0 2010-11-10 09:43:14.307

!MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.

!SUBENTRY 1 org.eclipse.jface 2 0 2010-11-10 09:43:14.307

!MESSAGE A conflict occurred for CTRL+3:

Binding(CTRL+3,

      ParameterizedCommand(Command(net.refractions.udig.tutorials.rcp.openMessage,Open Message Dialog,

            Open a message dialog,

            Category(net.refractions.udig.tutorials.rcp.category,Mail,null,true),

            ActionHandler(net.refractions.udig.tutorials.rcp.MessagePopupAction@d134d0),

            ,,true),null),

      org.eclipse.ui.defaultAcceleratorConfiguration,

      org.eclipse.ui.contexts.window,,,system)

Binding(CTRL+3,

      ParameterizedCommand(Command(org.eclipse.ui.window.quickAccess,Acceso rápido,

            Acceder rápidamente a los elementos UI,

            Category(org.eclipse.ui.category.window,Ventana,null,true),

            org.eclipse.ui.internal.quickaccess.QuickAccessHandler@e265f5,

            ,,true),null),

      org.eclipse.ui.defaultAcceleratorConfiguration,

      org.eclipse.ui.contexts.window,,,system)

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.283

!MESSAGE NLS unused message: LayerSummary_1 in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.283

!MESSAGE NLS unused message: MapEditor_saveError in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.283

!MESSAGE NLS unused message: NewMapPage_label_mapName_text in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.283

!MESSAGE NLS unused message: ProjectEditorAreaDropAction_error_message in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: ProjectUIPlugin_job_title in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: ProjectUIPlugin_newMap_title in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: ResourceSelectionPage_message in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: ToolManager_other in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: ToolProxy_error_message in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: ToolProxy_error_title in: net.refractions.udig.project.ui.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: Info_toString in: net.refractions.udig.project.internal.messages

 

!ENTRY org.eclipse.osgi 2 1 2010-11-10 09:46:05.314

!MESSAGE NLS unused message: RenderExecutorImpl_0 in: net.refractions.udig.project.internal.messages

 

!ENTRY net.refractions.udig.tutorials.rcp 2 0 2010-11-10 09:47:19.935

!MESSAGE Could not add I:\PROYECTOS\MMI\Udig\data-v1_1\countries.shp

!STACK 0

java.io.IOException: Unable to connect to any service supporting file:/I:/PROYECTOS/MMI/Udig/data-v1_1/countries.shp

      at net.refractions.udig.catalog.internal.CatalogImpl.acquire(CatalogImpl.java:270)

      at net.refractions.udig.tutorials.rcp.MapView$SetBackgroundFileAction.run(MapView.java:232)

      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)

      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)

      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)

      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)

      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)

      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)

      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)

      at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)

      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

      at net.refractions.udig.tutorials.rcp.Application.start(Application.java:20)

      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)

      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)

      at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

      at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

 

 

 

 


This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it.
Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener información clasificada por su emisor como confidencial en el marco de su Sistema de Gestión de Seguridad de la Información siendo para uso exclusivo del destinatario, quedando prohibida su divulgación copia o distribución a terceros sin la autorización expresa del remitente. Si Vd. ha recibido este mensaje erróneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboración.
Esta mensagem, incluindo qualquer ficheiro anexo, pode conter informação confidencial, de acordo com nosso Sistema de Gestão de Segurança da Informação, sendo para uso exclusivo do destinatário e estando proibida a sua divulgação, cópia ou distribuição a terceiros sem autorização expressa do remetente da mesma. Se recebeu esta mensagem por engano, por favor avise de imediato o remetente e apague-a.
Obrigado pela sua colaboração.


Back to the top