Thursday, November 30, 2006

can we switch to m2 ?

It seems like someone blogged about writing Eclipse plugin using some of the mave facilities:
anyone interested ?

http://vyzivus.host.sk/maven2-build-plugin-howto.html

Saturday, September 23, 2006

snippet in the wizard

saturday is a very active day indeed. I finally ended up with a solution to show the selected text in the first page of the wizard.

Here is the result, sniperizing some code from Sniper itself:


maybe there's a way to show it with some syntax highlight...who knows :-)

contribution to java editor

i finally found how to plug sniper to the Java source editor instead of the
the text editor. It was enough to change from:

targetID="#TextEditorContext"

to

targetID="#CompilationUnitEditorContext"

and it was done. neat :)
(code already committed, in case you want to try it)

Plugin exercises

I've found this usefull guide of exercises, aimed at showing techniques and usages of the eclipse APIs.

Give it a read!

Wednesday, September 13, 2006

grabbing text selection

hello everyone,
before everyone forgets about Sniper, i played a little bit more with eclipse and swt api. You can see the result in the following snapshot:

what you should care about:
  1. the consolle in the development workbench shows the text selected in the default text editor (i still have to figure out how to use it on every kind of text editor),
  2. the first page of the prototype wizard now has a text area (read-only for the moment, it can be easily turned to a r/w area) showing some text: this is where we could show to the brave developer the code he's going to publish somewhere on the web...
what you should not care:
  1. the text area doesn't show the selected text: i haven't found a clean way to pass that parameter to the wizard page. Also, I fear we may face some problems related to the lazy-loading mechanism built-in in Eclipse to load every widget of a component ( I tried a dirty workaround..didn't work)
now...go coding everyone else!

Friday, September 08, 2006

preferences in action

after a quick read to the suggested link, and having discovered a built-in support (through the plugin perspective) to add a preferences page, i tried it immediately.

As usual, quick and dirty, here it is a result with pre-defined values and fields:


i'm committing the code, to let you guys enjoying the fabulous world of the Eclipse APIs :-)

Thursday, September 07, 2006

logo: revisited

after some bad reviews of the previously proposed logo, and a more careful research, i ended up with something just a little bit nicer, that i'm sure some of you will appreciate :)

Wednesday, September 06, 2006

sniper icon/default image?

in the quest of searching for a nice image/logo/icon, i found this one to be quite nice. what do you think ?

sniper wizard

Strictly following/copy-pasting the code shown in the cited tutorials, i just got this sample wizard working: that is, once the user select some text, clicking on the sniper icon (the red circle, but something nicer should be on the way..google is my friend) will display the image below:


there's a lot of room for improvements, but it shows some minor improvement on the overall progress.

another article about wizards

i have found another article (this time from HP) about developing wizard with the eclipse framework. I 've given a quick look to attached sources, and they look interesting.

Monday, September 04, 2006

how to implement a wizard

i just find out that eclipse provides a strong support for wizard creation.
the above link provides a good guide-through.

sniper could help the user through this well-known mechanism.

Links about plugin-development

hello everyone,
because of possibly higher visibility, i'm double posting some useful links about eclipse plugin development, to speed up those (like me) enjoying their first experience with this big toy.

http://www-128.ibm.com/developerworks/edu/os-dw-os-ecl-gameplgin-i.html
http://www.cs.unc.edu/Courses/jbs/lessons/eclipse/hello-popup-plugin/

and surely enough, the reference doc from eclipse:
http://help.eclipse.org/help32/index.jsp

A running plugin

Hello Sniper Users/Coders,
i continued my playground with Eclipse Plugin Development (this is my first try with this toy, very interesting). I ended up with something which starts to look like a working plugin.

At first look at this:

as you see, the plugin is properly running in the runtime environment.
Next snapshot shows something we should continue working the next few days:



Note that tiny red dot just in the middle of the contextual menu...that is going to be the starting point of Sniper.

Stay tuned, coding in progress.

The Sniper Team