jyplot and rcp

21 views
Skip to first unread message

geor...@gmail.com

unread,
Dec 16, 2008, 12:41:52 PM12/16/08
to ijython
Does jypot works inside an rcp? Have you incorporated inside geocraft
rcp? I try to use it but I get the following error

(bar example)

at org.jyplot.chart.ChartRegistry.displayChartDialog
(ChartRegistry.java:133)
at org.jyplot.chart.AbstractChart.displayChart
(AbstractChart.java:49)
at org.jyplot.chart.impl.BarChart.displayChart(BarChart.java:
51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

java.lang.NullPointerException: java.lang.NullPointerException

I have put the jyplot-org.jar along with jcommong, log4j, jfreechart,
jfreechart-experimental, jfreechart-swt, geocraft-commons, geocraft-ui
inside a plugin.

Any help would be appreciated

Kostas

Dan Dromereschi

unread,
Dec 16, 2008, 1:42:57 PM12/16/08
to ijytho...@googlegroups.com
Hi,

JyPlot (http://wush.net/svn/geocraft/jyplot/trunk/) as a standalone app is just a swing based one, so nothing to do with the Eclipse RCP.

Also, JyPlot is indeed part of the GeoCraft framework which is based on the Eclipse RCP. So, a plugin for that is already built: org.geocraft.ui.jyplot available at http://wush.net/svn/geocraft/component/trunk/org.geocraft.ui.jyplot/ You will also have to checkout its dependencies: ...ui.ijython, ...core.logging, ...core.common,... and then you will have to create a new RCP application and have the IJythonView included in the (main) window. I have never tried this, but it should work. Another approach would be to checkout the entire GeoCraft project, but I don't think you need to do that just for embedding JyPlot into your RCP app.

Regards,

Dan
Reply all
Reply to author
Forward
0 new messages