Loading...
 

Pogamut Netbeans IDE Plugin


Standalone visualizer

Hey folks,

I've seen the visualizer in Netbeans and I'm wondering; is it possible to run the visualizer on a standalone basis?

Regards,
-Rien
What do you mean by standalone app?
If you want to use it in another application based on Netbeans RCP then it will be pretty simple, just use the PogamutNbUT2004 plugin module and where resides the visualization component and you are done.
If you want to use it outside of Netbeans RCP as a standard JavaBean then it will be also possible but a lot more refactoring will have to be done.
R
> Hey folks,
>
> I've seen the visualizer in Netbeans and I'm wondering; is it possible to run the visualizer on a standalone basis?
>
> Regards,
> -Rien

Not really. It wasn't designed to be used by other apps, but visualizer needs some refactoring (at least to decouple it from PogamutNbUT2004 module), so If you specify what you need, I will try to incorporate the changes.

Honza
Hey, this reply is a bit late. I forgot I had this question standing out. All the better though since I've now had some time to look at the code.

What I want to do is use PureMapGLPanel and associates outside of Netbeans RCP.

Too see if it was even possible I copied the relevant files and put in a few quick a dirty hacks to make it work, but I didn't need to change too much.
I had to remove the calls to PogamutEnvironmentService, mostly because I'm not familiar with the org-openide libs. So I could probably get this to work properly.
I also had to replace a few references where colours were requested from a timeline. So if the PureMapGLPanel and associates are decoupled from PogamutNbUT2004 and the timeline it should be usable in a standalone way.

Now I'm a bit late, so if you've already refactored the code, I'll make the relevant changes myself. It's no problem. Otherwise it'd be grand if you could take these things along.
Hi!

I will discuss it with Honza Havlicek that is the author of the map component.

Do I understand correctly that you have succeeded to running map component outside the NetBeans?

If so, would it be possible to share the code? Or at least create a webpage where one can download the code from you svn so we can link it from our webpage?

Cheers!
Jimmy
Yes you understand correctly.

I'm afraid it's not ready to be used yet. I just wanted to see if it could run outside of NetBeans so it's not elegant.

But if you don't mind fixing a few dependecies I can send you the code I've got now. You might have a good laugh.

Anyway I'll be making a proper version of the Frame it shouldn't be to hard to make to wrap that up into something that can run standalone.
oh, don't worry, we are not codemasters ourselves. :-) Just send it, we'll put it for a good use.

BTW:
Do you also sometimes experience Star Wars moment when coding? (as I sometimes do)

Luke, I am your code!
No! It can't be true!

:-)
Hah! Haven't heard it described like that yet.

Anyway I've send the code to Jakub, you'll see that "hacking it" was a very literal description.
> If so, would it be possible to share the code? Or at least create a webpage where one can download the code from you svn so we can link it from our webpage?
>
> Cheers!
> Jimmy

Hey,

I've removed all the hacks and most dependencies so it's presentable now. Unfortunatly the SVN I'm working on is not publiclly accesible. So I've taken the Liberty to setup a web page for it.

http://195.64.67.86/projects/

I'll try to put a new version up when one is made. Though since I have this working now and will have to move on to other things I don't think there will be many.

> Not really. It wasn't designed to be used by other apps, but visualizer needs some refactoring (at least to decouple it from PogamutNbUT2004 module), so If you specify what you need, I will try to incorporate the changes.
>
> Honza

Now I can finally awnser this question too.

There is a whole set of classes associated with the PureMap visualisation (a full list is contained in the download), these are probebly better of in their own project. Though the PureMapTopLevelComponent and other subclasses of NetBeans components shouldn't be in that project.

The Interface IRenderableUTAgent has a method List getMapEvents() which couples it tightly to allot of timeline related classes. However ProxyRenderableAgent just returns an empty list here. So it would be good to split the Interface so ProxyRenderableAgent is not related to DataSources.

The SelectableMapGLPanel uses a service lookup to handle the selection of agents. Currently is does by looking for a PogamutEnvironment interface. But the interface itself is rather small. So I reckon a more specific interface, a SelectionService would be better. I'd allow me to insert my own service here. Though I haven't had time to work on those parts yet.

In the MapRenderer NbPreferences are used for colours and a selection of items to be rendered. Replacing this with a service lookup would also make it more generic.

All together this would leave a single depency on openide-util.jar.
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.