| Home » Eclipse Projects » GEF » Compatibility with other versions
 Goto Forum:| 
| Compatibility with other versions [message #152564] | Sat, 02 October 2004 06:05  |  | 
| Eclipse User  |  |  |  |  | Hi guys, 
 I really don't know how to upgrade my GEF plug-in in order to make it work
 with Eclipse 3.0.1. The problem is:
 
 1. My plug-in is based on the Logic Example, which works well on 2.1.3 and
 on 3.0M9, but does not work on 3.0.0 or higher. I mean, the plug-in itself
 does work well, but when I try to re-make the plug-in from the source code
 provided, it gives me a java.lang.NoClassDefFoundError as soon as I press
 "Finish" on the wizard dialog, and doesn't open any editor. My plug-in has
 exactly the same behaviour.
 
 2. The difference between 3.0M9 and 3.0.x is that in the LogicEditor the
 method initializeGraphicalViewer() has a line which says
 
 getGraphicalViewer().addDropTargetListener(...)
 
 This line appears deprecated in the new version.
 
 3. I don't know how, maybe because of some little differences in the code,
 my editor starts peacefully on 3.0.1, but it so happens that I can't drag
 my templates on the canvas, operation provided by the line quoted at point
 2.
 
 4. This is what happens on Windows. On Linux and MacOS systems the editor
 starts only the first time, then when I make the run-time workbench run
 again it gives me the same error as at point 1.
 
 I looked for a solution on Google, on the Eclipse 3.0 Migration Guide, on
 the examples' source code and on the API documentation, but I didn't find
 anything.
 
 Do you have any idea about how to solve this problem?
 |  |  |  |  |  |  | 
| Re: Compatibility with other versions [message #152639 is a reply to message #152593] | Sun, 03 October 2004 06:04   |  | 
| Eclipse User  |  |  |  |  | I apologize, maybe I didn't explain very well what I need. After all, I'm not American, and I don't speak English very well. I will put it very
 simple and general.
 
 I'm looking for the source code of a Logic Example upgraded for Eclipse
 3.0.x (which is not provided by the plug-in itself) or, if I'm asking too
 much, just the reason why the actual source code doesn't work.
 
 Or, an answer in which you say that I'm a loser, that you're not going to
 do all the work for me, that my question is not pertinent in this context,
 etc. Just answer me. Thanks.
 
 Antony
 |  |  |  |  |  |  |  |  | 
| Re: Compatibility with other versions [message #152859 is a reply to message #152801] | Tue, 05 October 2004 15:40   |  | 
| Eclipse User  |  |  |  |  | Thank you very much for answering. 
 > I suggest you download the released versions of GEF
 > and the Eclipse platform: 3.0.1
 
 I'm sure I downloaded Eclipse 3.0.1 and the GEF libraries with the same
 version. GEF is perfect, it's the GEF-Examples that are strange: they seem
 to have lots of deprecated methods and constants (e.g. GEFConstants.UNDO,
 that should be replaced with ActionFactory.UNDO.getId()), and when I try
 to create a new GEF-Example file, the pression of the "finish" button
 doesn't end the creation because of an ExceptionInInitializerError on the
 first press, and a ClassDefNotFoundException on the subsequent ones. As I
 said before, the debugger finds a NullPointerException in method
 createFile().
 On Eclipse 3.0M9 everything works just fine.
 
 > Are you certain a native drag has started?  SWT requires the drag source and
 > drop target to have the same transfers in use.
 
 I can't answer to your question yet, but I'll find out as soon as
 possible. But, again, my plug-in is very similar to the Logic Example and
 consequently it works very well on Eclipse 3.0M9 while in 3.0.1, with the
 exact same code, it doesn't call any getFactory(). Is it possible that
 native drags vary from one version to another?
 
 Thanks again for helping me, next time I hope to give more details.
 
 Antony
 |  |  |  |  | 
| Re: Compatibility with other versions [message #152889 is a reply to message #152859] | Tue, 05 October 2004 16:53   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: none.us.ibm.com 
 You'll have to post the stacktrace or look up the name of what is not found.
 Are you compiling the logic example?  If you run the example as binary do
 you see the same problem?
 
 "Antony" <antonymist@hotmail.com> wrote in message
 news:cjutc1$k66$1@eclipse.org...
 > Thank you very much for answering.
 >
 > > I suggest you download the released versions of GEF
 > > and the Eclipse platform: 3.0.1
 >
 > I'm sure I downloaded Eclipse 3.0.1 and the GEF libraries with the same
 > version. GEF is perfect, it's the GEF-Examples that are strange: they seem
 > to have lots of deprecated methods and constants (e.g. GEFConstants.UNDO,
 > that should be replaced with ActionFactory.UNDO.getId()), and when I try
 > to create a new GEF-Example file, the pression of the "finish" button
 > doesn't end the creation because of an ExceptionInInitializerError on the
 > first press, and a ClassDefNotFoundException on the subsequent ones. As I
 > said before, the debugger finds a NullPointerException in method
 > createFile().
 > On Eclipse 3.0M9 everything works just fine.
 >
 > > Are you certain a native drag has started?  SWT requires the drag source
 and
 > > drop target to have the same transfers in use.
 >
 > I can't answer to your question yet, but I'll find out as soon as
 > possible. But, again, my plug-in is very similar to the Logic Example and
 > consequently it works very well on Eclipse 3.0M9 while in 3.0.1, with the
 > exact same code, it doesn't call any getFactory(). Is it possible that
 > native drags vary from one version to another?
 >
 > Thanks again for helping me, next time I hope to give more details.
 >
 > Antony
 >
 |  |  |  |  |  |  |  |  |  |  | 
| Re: Compatibility with other versions [message #153370 is a reply to message #153323] | Fri, 08 October 2004 16:10   |  | 
| Eclipse User  |  |  |  |  | First of all I want to thank you for helping me and treating me right, really. I was really discouraged.
 
 > Plus, quite a few things were changed between GEF 3.0M9 and
 > 3.0.1 (you should look at the bugzillas for the complete list of changes),
 > most notably the flyout palette stuff.  Are you using that?
 
 Oups, sorry, I didn't notice this wasn't clear! Yes, I'm using the
 FlyoutPalette as in the Logic Example. If you say that the bugzilla will
 solve my problems, I thank you with all my heart.
 
 Anyway, I'll tell you the steps I followed to state that the Logic Example
 doesn't work on my computer:
 
 - Install Eclipse 3.0.1 and GEF 3.0.1.
 - Install GEF-Examples 3.0.1.
 - Create a new plug-in project called 'org.eclipse.gef.examples.logic'.
 - Delete all sources created automatically from the 'src' folder.
 - With Import -> Filesystem, copy all the files you find in the Logic
 Example plug-in folder (plugin.xml etc.) and paste them inside the project
 folder.
 - Again with Import -> Filesystem, copy all sources found zipped in the
 plug-in GEF-Examples-sources and paste them inside the 'src' folder.
 - Now the plug-in is set. Run the run-time workbench and create a new
 simple project.
 - Create a new Logic diagram: the well known error occurs while pressing
 the 'Finish' button in the wizard.
 
 The same thing comes up with the Flow Example. Following the same steps
 under Eclipse and GEF 3.0M9 instead doesn't give any problems.
 
 Thank you again,
 
 Antony
 |  |  |  |  | 
| Re: Compatibility with other versions [message #153436 is a reply to message #153323] | Sat, 09 October 2004 11:48   |  | 
| Eclipse User  |  |  |  |  | First of all I want to thank you for helping me and treating me right, really. I was really discouraged.
 
 > Plus, quite a few things were changed between GEF 3.0M9 and
 > 3.0.1 (you should look at the bugzillas for the complete list of changes),
 > most notably the flyout palette stuff.  Are you using that?
 
 Oups, sorry, I didn't notice this wasn't clear! Yes, I'm using the
 FlyoutPalette as in the Logic Example. If you say that the bugzilla will
 solve my problems, I thank you with all my heart.
 
 Anyway, I'll tell you the steps I followed to state that the Logic Example
 doesn't work on my computer:
 
 - Install Eclipse 3.0.1 and GEF 3.0.1.
 - Install GEF-Examples 3.0.1.
 - Create a new plug-in project called 'org.eclipse.gef.examples.logic'.
 - Delete all sources created automatically from the 'src' folder.
 - With Import -> Filesystem, copy all the files you find in the Logic
 Example plug-in folder (plugin.xml etc.) and paste them inside the project
 folder.
 - Again with Import -> Filesystem, copy all sources found zipped in the
 plug-in GEF-Examples-sources and paste them inside the 'src' folder.
 - Now the plug-in is set. Run the run-time workbench and create a new
 simple project.
 - Create a new Logic diagram: the well known error occurs while pressing
 the 'Finish' button in the wizard.
 
 The same thing comes up with the Flow Example. Following the same steps
 under Eclipse and GEF 3.0M9 instead doesn't give any problems.
 
 Thank you again,
 
 Antony
 |  |  |  |  |  |  |  |  | 
| Re: Compatibility with other versions [message #154334 is a reply to message #153629] | Sat, 16 October 2004 14:36   |  | 
| Eclipse User  |  |  |  |  | > This is the wrong way to import the Logic example.  Please learn how to use > the Plugin Development Environment (PDE).
 
 I'm sorry, I don't know how to explain myself better than this. Please try
 a further effort to understand my bad English.
 
 Of course the steps I wrote are NOT the right way to import a plug-in. I
 know how to use PDE, I've already exported my own working plug-in with it,
 and I'm satisfied on 3.0M9. I am talking about something else: it seems
 that, while the GEF Examples' binaries work on both versions (3.0.1 and
 3.0M9, and I'm sure I'm using the right Eclipse, the right GEF and the
 right Examples), the source code of the GEF Examples 3.0.1 does not work
 on their own platform (Eclipse 3.0.1 and GEF 3.0.1, and again I'm sure I'm
 using the right ones).
 
 In fact, following the steps I wrote and running the run-time workbench
 just to test the source code, the logic example works just fine on 3.0M9
 (and so my plug-in) but gives the famous exception in 3.0.1 (my plug-in
 doesn't because I implemented a different wizard. I've got different
 problems with it, as you know). But it's not over, yet: the source code of
 the GEF Examples 3.0.1 is exactly the same of the 3.0M9 Examples, I looked
 at every single class. And, by chance, it works just fine on Eclipse and
 GEF 3.0M9 but not on 3.0.1.
 
 So it seems that the binaries (which work) and the source code (which do
 not)of the GEF Examples 3.0.1 do not match. I can't find any other cause
 for this strange behaviour. Or else, after 7 months of plug-in developing
 with Eclipse, I didn't understand anything yet.
 |  |  |  |  | 
| Re: Compatibility with other versions [message #154429 is a reply to message #154334] | Mon, 18 October 2004 13:06  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: none.us.ibm.com 
 When you switch between 3.0M9 and 3.0.1, are you switching the IDE you are
 using, or are you changing the PDE runtime target platform?  You need to the
 second one.
 
 Please delete 3.0M9 completely from your system and try get GEF to work
 before asking more questions.  There is absolutely no reason to have 3.0M9
 installed at this point.
 |  |  |  | 
 
 
 Current Time: Fri Oct 31 02:17:18 EDT 2025 
 Powered by FUDForum . Page generated in 0.13954 seconds |