Archive for December, 2006

Five reasons to Love Mylar: Part One

Friday, December 8th, 2006

Automagic Java Method Folding. As you navigate through your class, Mylar keeps track of the methods you touch (thereby expressing interest). When you open the class, it automatically folds away the methods you aren’t interested in. Of course, the more time you spend with your cursor in a method, the more interested Mylar figures you are; conversely, as you stop spending so much time in a method, Mylar figures that you’re not quite so interested in that method anymore and as interest wanes it too will be folded.

Mylar also hides classes, methods, and other files that you don’t spend much time with. The filtering work in the package explorer, outline, navigator, and other views. Sometimes, though, you really do want to see more. In that case, you can just turn off the filtering (temporarily). Also, if you hold down the “Alt” key while clicking on a container (project or folder), the contents of that container are displayed and become selectable.

Stay tuned for the exciting second part of this five part series…

Mylar Two Weeks Later

Wednesday, December 6th, 2006

I’ve been using Mylar for about two weeks and I’m still really impressed. I have been doing some Java development these past weeks, but most of my work has involved editing PHP files and triaging Eclipse Corner Articles bugzilla entries. I’ve been doing it all with Mylar.


The first thing I did was create a task repository for the Eclipse Bugzilla. Then, I created a handful of queries to find bugs that I need to concentrate on. These queries result in the associated bugs being loaded by Mylar as tasks into my Eclipse 3.2.1 environment. Once loaded I read and edited them—all within an editor in my environment—by adding comments and such. This feature alone is great; while the web UI for bugzilla isn’t bad, the Eclipse-based UI is great. And it works offline as well (which was handy when my Internet connection died during the ice storm on Friday).

There were a couple of Phoenix bugs that I needed to address. For each, I first activated the task, and then went to the package explorer to find the PHP files that needed to be updated. In order to find the files, I decided to turn off the “Focus on task” feature that Mylar provides. However, once I had opened the files that I needed, I turned the feature right back on which immediately filtered the list of files shown to those that I had identified. My workspace contains dozens of projects and hundreds of files; being able to focus (automagically) only on those files I care about is very handy. I did my edits and then selected “Commit Context…” from the context menu for task; this opens the commit wizard for only those files I changed while working on the active task. Very handy. And to boot, Mylar automatically provided me with a comment that reflects the id of the bug I was fixing. Also very handy.


This feature scales very well when you have to work on multiple tasks. At several points, I was working on two tasks at the same time (it was more a process of interleaving tasks). Mylar kept track of the PHP files I was editing for each of the tasks separately, and when I needed to commit changes back to CVS, only the files that had been changed as part of the task I was committing were involved. This is very handy for folks like me with a short attention span.

I’ve only been able to do a small amount of Java development this past week, and Mylar has been helpful there as well. The JDT provides great support for linking from one Java file to another (with the PHP files, I had to go and actually find other files using the Navigator or Project Explorer); with the JDT, you need only put your cursor on a definition and hit ‘F3′ to be taken to another class or method. Mylar takes care of adding classes and their members to the filtered views. It’s really cool to see classes and methods melt off the view as you lose interest in them. Mylar also takes care of automatically figuring out the methods that I care about and folding away the rest. I’ll admit that it all was a little weird at first, but it’s becoming very familiar and comfortable.

Anybody who’s worried about lack of innovation at Eclipse really needs to check out this project.

Photran

Friday, December 1st, 2006

It’s been almost two decades since I’ve written anything in FORTRAN. And to be honest, that something was a single program and I can’t quite remember what it was (I think it might have been an expert system I named “Electric Monk“, but I can’t be certain).

I’ve known about Eclipse support for FORTRAN for a while, but haven’t thought very hard about it until I was sent this screenshot:
This screenshot shows the Eclipse Photran project running on Red Flag Linux.

The Photran project is concerned with providing a FORTRAN IDE based on the CDT. The project is vibrant with an active mailing list and lots of CVS activity. It’s currently available for Eclipse 3.2 supporting syntax highlighting, building (using make), debugging, and more.

Guanglin Du, Senior Engineer for the Research Institute of Petroleum Exploration & Development in China, sent me the screenshot; I’ve added it to the Eclipse Screenshots page.

You are currently browsing the Eclipse hints, tips, and random musings weblog archives for December, 2006.

  • Pages

  • Archives

  • Categories