Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » OS clash
OS clash [message #152001] Sat, 25 September 2004 15:04 Go to next message
Antony is currently offline AntonyFriend
Messages: 34
Registered: July 2009
Member
Hi everybody, now I'm in big trouble.
My GEF plug-in is almost ultimated, thanks to your support too, and it's
wonderful. But I've developed it only on Windows XP, the only platform I
could use. Now I'm trying to make it work on Linux and Mac OS, and they
don't seem to like it:
The computer with Linux has the latest version of Eclipse and GEF, I think
3.0.1, and my plug-in can create projects and diagrams there, but does
absolutely nothing when trying to drag a template from the palette to the
canvas.
My teacher then tried on a Mac OS computer, with GEF 3.0.0 (the one I used
to develop my plug-in). He told me he can't even open the right
perspective!

Of course, I'm going to see the problem by myself next monday, and try to
fix it. But if anyone incurred on this error and found the solution would
save my mental incolumity. Thank you very much,

Antony
Re: OS clash [message #152085 is a reply to message #152001] Mon, 27 September 2004 13:00 Go to previous messageGo to next message
Antony is currently offline AntonyFriend
Messages: 34
Registered: July 2009
Member
I found the problem on the MacOS system, nothing important. But now both
the Linux and MacOS
computer have the same problem:
in my editor class there's an initializeGraphicalViewer() method which is
the same as the Logic
Example Editor. The line

getGraphicalViewer().addDropTargetListener(
new LogicTemplateTransferDropTargetListener(getGraphicalViewer() ));

is deprecated, and different operative systems react in different ways:
- Windows acts like it was nothing.
- Linux doesn't drag any figures from the palette to the canvas.
- MacOS isn't able to open the editor.

Which is the non-deprecated method I should use? Thanks a lot,

Antony
Re: OS clash [message #152089 is a reply to message #152085] Mon, 27 September 2004 13:21 Go to previous messageGo to next message
Antony is currently offline AntonyFriend
Messages: 34
Registered: July 2009
Member
I also found that the two non-Windows systems have a different JVM, the
Blackdown JDK 1.4.1. Maybe this JVM doesn't allow deprecated methods to
execute. If you know something, please tell me.

Antony
Re: OS clash [message #152123 is a reply to message #152089] Mon, 27 September 2004 20:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

On Motif you drag with the middle mouse button for native DND. On the Mac,
please attach the stacktrace.

"Antony" <antonymist@hotmail.com> wrote in message
news:cj945a$jch$1@eclipse.org...
> I also found that the two non-Windows systems have a different JVM, the
> Blackdown JDK 1.4.1. Maybe this JVM doesn't allow deprecated methods to
> execute. If you know something, please tell me.
>
> Antony
>
Re: OS clash [message #152513 is a reply to message #152123] Fri, 01 October 2004 11:13 Go to previous messageGo to next message
Antony is currently offline AntonyFriend
Messages: 34
Registered: July 2009
Member
Thank you for the interest, but I found the problem: my plug-in is made on
the 2004.05.27 release of
GEF, Eclipse 3.0M9. The method I mentioned doesn't work anymore on new
versions and some
systems may crash for this. I tried my plug-in on Knoppix, with the old
GEF, and it works just as on
Windows.

I wonder which is the non deprecated method anyway, since the Logic
Example version 3.0 uses it still
and works well...

As I said before, MacOS has a problem with files saved on a FAT32 format:
some (and this is strange,
only some) of the files copied from a FAT32 USB device result named with
all letters capitalized.
Anyway, problem solved. Thanks!

Antony
Re: OS clash [message #152617 is a reply to message #152513] Sat, 02 October 2004 19:48 Go to previous message
Antony is currently offline AntonyFriend
Messages: 34
Registered: July 2009
Member
Nope, the problem is NOT solved.

I found the non-deprecated method, it has the same name but different
argument. Now everything should work, but it doesn't: Drag and drop from
the palette to the canvas doesn't make a thing on Linux and Windows, while
MacOS opens the editor just once and then cracks, giving a
java.lang.NoClassDefFoundError.

I can't believe it: on M9 everything's all right... Anyway I don't think
it's an error in the code, since it is very similar to the GEF Logic
Example, and the Logic Example has the same symptoms (I mean the source
code recompiled, not the binary plug-in provided by the site).
Previous Topic:Labeling and Outlines
Next Topic:Editable label
Goto Forum:
  


Current Time: Wed Apr 24 18:26:13 GMT 2024

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

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

Back to the top