Skip to main content



      Home
Home » Eclipse Projects » GEF » figure in eclipse view
figure in eclipse view [message #49712] Sun, 15 December 2002 19:59 Go to next message
Eclipse UserFriend
Originally posted by: sg.media.-style.com

Hi,

a stupid newbie question. How to show a figure/grafik in a eclipse view.
All samples i had see was in a own window.

Thanks
Stefan
Re: figure in eclipse view [message #49805 is a reply to message #49712] Mon, 16 December 2002 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

Subclass ViewPart and define a View in plugin.xml. In
createControl(Composite), create a FigureCanvas and put a figure in it.

There are wizards and documentation on creating views. These are Eclipse
platform issues, so you might continue on the other newsgroup until the
point where you have a View visible in the WorkbenchWindow.

"Stefan Groschupf" <sg@media.-style.com> wrote in message
news:atj860$oi1$1@rogue.oti.com...
> Hi,
>
> a stupid newbie question. How to show a figure/grafik in a eclipse view.
> All samples i had see was in a own window.
>
> Thanks
> Stefan
>
>
Re: figure in eclipse view [message #60885 is a reply to message #49712] Fri, 31 January 2003 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
I am getting the following exception while running my project
in Linux RH 8.0

Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-pi-gtk-2052 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344)
at java.lang.Runtime.loadLibrary0(Runtime.java:744)
at java.lang.System.loadLibrary(System.java:815)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 4)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:3 97)
at org.eclipse.swt.widgets.Display.create(Display.java:391)
at org.eclipse.swt.graphics.Device.<init>(Device.java:103)
at org.eclipse.swt.widgets.Display.<init>(Display.java:277)
at org.eclipse.swt.widgets.Display.<init>(Display.java:273)
at org.eclipse.swt.widgets.Display.getDefault(Display.java:703)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:227)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:222)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:176)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:115)
at com.yasutech.util.DialogTest.main(DialogTest.java:9)

Where I am going wrong ?
I am creating a new Shell() in the line where this exception is coming from.

Thanks in advance,
Chandresh
Re: figure in eclipse view [message #60908 is a reply to message #60885] Fri, 31 January 2003 10:02 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

In windows, the equivalent problem is not having the SWT.DLL on the
classpath.
You need to make the mentioned library available to your JRE for running
standalone SWT applications. When you run Eclipse, the plugin class loader
augments the classpath for each plugin, which is why this library get found
then.

"Chandresh Prakash" <chandreshprakash@hotpop.com> wrote in message
news:3E3A7D08.6010402@hotpop.com...
> Hello,
> I am getting the following exception while running my project
> in Linux RH 8.0
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-pi-gtk-2052 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344)
> at java.lang.Runtime.loadLibrary0(Runtime.java:744)
> at java.lang.System.loadLibrary(System.java:815)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 4)
> at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:3 97)
> at org.eclipse.swt.widgets.Display.create(Display.java:391)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:103)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:277)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:273)
> at org.eclipse.swt.widgets.Display.getDefault(Display.java:703)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:227)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:222)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:176)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:115)
> at com.yasutech.util.DialogTest.main(DialogTest.java:9)
>
> Where I am going wrong ?
> I am creating a new Shell() in the line where this exception is coming
from.
>
> Thanks in advance,
> Chandresh
>
Previous Topic:Scrolling problem while using cell editor
Next Topic:Please tell me if this is doable
Goto Forum:
  


Current Time: Thu Mar 13 15:33:16 EDT 2025

Powered by FUDForum. Page generated in 0.03548 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top