[Logo] VUE Users Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Login] Login 
If this is your first visit to the new VUE forums, you can login using the same username and password you currently use on VUE's website. If you need an account, please create one through VUE's website. If you have problems, please contact us via the contact form on http://vue.tufts.edu
VUE and Eclipse  XML
Forum Index » Developers' Corner
Author Message
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

There has been some recent interest in setting up the VUE project in the eclipse IDE. To aid those having problems, I've attached my .project and .classpath files here. Things to note about trying to set this up:

* If you're on a mac, you'll need to add the Mac's Cocoa libraries to the the project. There are directions for doing that all over the web, I like this set:
http://oreilly.com/pub/a/mac/2005/04/22/eclipse.html

* There are a number of folders within in the src folder that need to be Excluded from the build path, those are detailed in the .classpath file in the attached tar. These are the excludes: java15/oki/old/maclib/old/build

* There are a lot of libaries in the lib folder, they don't all need to be included and in fact including all of them will create conflicts. The number of included libraries is very large, see the .classpath file for details

* Building from ant, you should be able to build the entire VUE.jar from ant using 'ant all' in the src/ folder.

I usually start with a new java project, and don't generate the project file from the ant script but if people have had success the other way they'd like to share or have questions, I'm sure we can work it out.

If after looking at the attached project files, you're still having trouble getting up and running reply back and we'll work through the issues.

Thanks,

Mike
 Filename eclipse-vue.tar [Disk] Download
 Description
 Filesize 30 Kbytes
 Downloaded:  77 time(s)

Aneliya Tincheva


Joined: 09/23/2008 10:29:25
Messages: 12
Offline

Thank you Mike,
this information was really vital to succeed in creating an eclipse project and successfully run VUE.

Roby Gamboa


Joined: 09/25/2008 20:40:01
Messages: 8
Offline

Hi, folks:

I was wondering if there was interest and/or a technical basis in setting up VUE as an Eclipse plugin? I love VUE's capabilities, and I think it's head-and-shoulders above other mind-mapping software tools. I can also see where it could definitely integrate with or drive other standard Eclipse plugins like the EMF/GMF components. Thoughts?
[Yahoo!] aim icon [MSN]
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

Hi Roby,

There was some interest a few months ago, another project that is currently using VUE for engineering process design peaked our interest in this a bit. But, we haven't fully looked into what it would take to do this. Have you worked with developing eclipse plugins? It seemed like a large undertaking, and it's difficult for me to judge how GMF friendly we are. Given our current obligations its just not something the core team could take on in the near term, although we certainly would be supportive of anyone's interest to delve into this.

-Mike

This message was edited 1 time. Last update was at 11/14/2008 12:07:25

Roby Gamboa


Joined: 09/25/2008 20:40:01
Messages: 8
Offline

Hi, Mike:

I hear ya. I've done a limited amount of work on plugin development...not really enough to justify taking on a port or integration project of this type. In thinking about it, there seemed to be some sense in including VUE as part of, say, the task management process/workflow offered as part of the Mylyn project: set up a task in Mylyn, associate a VUE mind-map that spells out the detailed considerations associated with the task, and associate or link elements of the map to specific artefacts (documents, code snippets, e-mail messages, whatever), correlating the produced artefact with one or more considerations in the mind-map, and having both support the completion of the task. This is definitely a big undertaking, but I could see where VUE would really offer a lot of benefit as part of a workflow of this type.

My personal, immediate reason for asking the question was much more modest, yet selfish: I was looking for the ability to do in-place editing of VUE mind-maps within Eclipse, rather than launch VUE as an external editor or content handler for mind-maps. Using it as an external tool doesn't offer the ability to synchronize the file system contents of a project (which may include one or more mind-maps) when saving changes to a map. Basically, this is a nit (one with Eclipse, not VUE): if I've got a .vue file as part of a project, and the project is under source control, then I've got to save the file in VUE, manually refresh the project in Eclipse, and then check in project changes into source control. Otherwise, Eclipse complains that the contents of the project is out of sync with the file system when it attempts to commit changes.

This second scenario would involve reparenting existing VUE drawing surface, option dialog and help page classes to Eclipse equivalents, bundling the results as a plugin, and deploying to an Eclipse environment. Basically, wrapping the core VUE classes in Eclipse plugin-aware event handler shells. Depending on how the VUE code is structured, this might be a much more straightforward undertaking. I'll look into it and get back to you.

Thanks much,

Roby
[Yahoo!] aim icon [MSN]
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

Roby,

If you do look into the 2nd scenario at all you may want to look at VUEApplet.java in the tufts.vue package. I think we're doing some similar stuff here where we try to reparent the traditional VUE UI controls to an applet instead of an application. I mention this because the initialization and set up and of this is simpler then the Application code for a first look.

You make a good point about the project falling out of sync with eclipse's file system contents, I've run into this quite often myself.

Mike
Roby Gamboa


Joined: 09/25/2008 20:40:01
Messages: 8
Offline

Hi, Mike:

I've had the chance to revisit building VUE under the Eclipse environment. I've downloaded the .classpath and .project files that you've provided (thanks much!), obtained the VUE_2_3_1_src.zip file from the downloads section, and have managed to set up a project for building VUE in my workspace. There does seem to be a missing dependency, however, that's referenced in the ant build file: /home/vue/nsis/nsis-2.42/ant/nsisant-1.2.jar. Is this file necessary (I would assume so, since it is providing ant task definition support). Is it advisable to use the jar file directly, or is it acceptable to use the NSIS Ant plugin available from SourceForge?

Thanks much,

Roby
[Yahoo!] aim icon [MSN]
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

Roby,

You should be able to still run "ant all" without that jar, I dont think any of the developer machines have the JAR here. We only use nsis for building the installers for the website.

-Mike
Roby Gamboa


Joined: 09/25/2008 20:40:01
Messages: 8
Offline

Hi, Mike:

Just so. Everything built, modulo warnings, and the final VUE.jar ran, pretty much the same as the release version (including the slow operation that I mentioned in the Tech Problems/Bug Reports forum).

Thanks much,

Roby
[Yahoo!] aim icon [MSN]
matthew aidekman


Joined: 08/08/2008 11:36:13
Messages: 3
Offline

I must be a moron.
I double click on eclipse-vue.tar and it gives me an empty folder.
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

Matthew,

There are two files, they both start with a period so they're generally hidden, at least on linux/mac. if you're using windows you'll want to show hidden files on mac use terminal and "ls -a"

-Mike
matthew aidekman


Joined: 08/08/2008 11:36:13
Messages: 3
Offline

I had my suspicions but apparently I was *that* lazy.
thanks
Justian Meyer


Joined: 06/22/2010 09:53:50
Messages: 9
Offline

Hey Mike,

I have installed eclipse and the source files for VUE. I go into the src folder in the workspace and select "Run as...">"Ant Build...". I then select "all" and then, "Run".

The console then spits out this error:

Buildfile: C:\Users\Justian\workspaces\[Project Name]\src\src\build.xml
vue:
[java] java.lang.NoClassDefFoundError: tufts/vue/VUE
[java] Caused by: java.lang.ClassNotFoundException: tufts.vue.VUE
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] Could not find the main class: tufts.vue.VUE. Program will exit.
[java] Exception in thread "main"

BUILD FAILED
C:\Users\Justian\workspaces\[Project Name]\src\src\build.xml:1342: Java returned: 1

Total time: 1 second

It's trying to immediately run VUE without building it first?

It's pretty early here and I'm probably overlooking the obvious. Any advice?

Thanks!
Mike Korcynski

[Avatar]

Joined: 08/08/2008 11:36:13
Messages: 749
Offline

To be honest, I don't use the ant targets within eclipse, I just never needed to since it builds the code automatically by default so I just use Run>Java Application and create a target for tufts.vue.VUE that way, not sure how others do it.

-Mike
Justian Meyer


Joined: 06/22/2010 09:53:50
Messages: 9
Offline

Hey Mike,

I can't seem to get anything working here- errors abound (2300+). Is there a more preferred way to edit the VUE source?

Thanks

Justian
 
Forum Index » Developers' Corner
Go to:   
Powered by JForum 2.1.8 © JForum Team