Monday, November 24, 2008

New proxy settings UI

This is my first post to this blog. I've been in the Workspace team for a few months but didn't have anything to show... until now:) I've just finished work on the UI part of the proxy support redesign.

The new UI aims at complains about the proxy support in Eclipse. First of all you can see settings that are pulled from the OS. They can be obtained from Windows IE setting, Linux environment variables or GNOME settings.

It also makes changes necessary to provide an extension point for supplying custom proxy providers. We plan to add such an extension point in the future. IMO this will be the best feature of it, at least the coolest one.

If you want to play with it simply download the latest build and go to Window > Preferences > General > Network Connections. Any bugs are welcome. I mean any valid ones;)

Tuesday, July 1, 2008

EclipseDemocamping in Krakow

The first edition of Eclipse DemoCamp in Krakow was a spectacular success.

The room was full ;) ...

... people could see some new trends in technology ...

... and everyone was happy.

Read more about the event and see more pictures.

Saturday, March 22, 2008

Leaving Santa Clara, CA

We should have left Santa Clara yesterday. But darn, because of bad weather conditions in Chicago we got stuck in San Jose. The nice thing is that we had one extra day in California at the airport expense. The hotel was quite nice with nice food served in The Island Grill ;-)

Today our trip started again. So far so good, we managed to hit the airport in Denver. 4 hour stop in Colorado let us to release some changes for M6 :-)

The next flight is in 2 hours. I hope that the rest of the trip will go like clockwork.

Thursday, March 6, 2008

How to make the hunk compare editor more informative

Quick intro:

I've been working with the Apply Patch wizard recently. Following bugs has been fixed:
But the real goal is to address 3 bugs reported by Stefan Xenos:
Before I start working with them I will need to solve these:

Especially the 217076 appeared to be a hard nut to crack. There has been a short discussion in one of the bugs from Stefan about how the editor should look like. I agree with one of the comments there that it would be great to have an editor to play with, but let me first quickly present changes made so far. This could also to a good place to start the discussion again.


Screens (currently):

This is what user sees in the editor when trying to apply a conflicting patch. The patch consists of 3 hunks. By a conflict in this case I mean a change made to one of context lines (see Fig 2).

Fig 1. The editor indicating that there is a conflict. "I can't apply the first hunk".

Let us see what is the problem. Double-clicking of the hunk loads its content and shows that the patcher expects "[02]" in the second line, but the line has been changed to "[02] CHANGE". The line is actually the second line of context for the first hunk. If it doesn't match the hunk cannot be applied.

Fig 2. The editor showing details of a conflict.

Below is a proposition how conflicts can be shown in the editor*.

Fig 2a. The editor showing details of a conflict marked red.

Click the newly arrived "Show matched" option. This will allow us to see whole patch.

Fig 3. The editor showing full structure of the patch.

Clicking "Guess" results in the fuzz factor set to 2. This is how many lines need to be ignored to successfully apply the conflicting hunk.

Fig 4. The editor after guessing the fuzz. "Fuzz factor factor to the rescue!".

Double click on the hunk to see the details.

Fig 5. The editor showing details of the conflicting hunk after the fuzz applied. "I can apply the hunk if the fuzz factor is 2".

I though that maybe using a fuzz factor should be indicated with yellow:

Fig 5a. The editor* showing the context lines matched with a fuzz factor marked yellow.

The user can also inspect other hunks to check if everything's fine.

Fig 6. The editor showing details of a matched hunk. "I can apply this one smoothly".

* both screen shots for figuers 2a and 5a are show a different patch, but I hope they still give the idea

Thursday, January 17, 2008

Funny code snippets in Eclipse (part 1)

First of all, my intention is not to embarrass any of the snippet's owners. I think it's great, that using a serious tool as a programming language we can create such funny things. So, this series is donated to the wonderful world of those little pieces of code that make our bored, programmers faces lit up in a smile :)

1. When right is left

2. A workaround method

3. To fix or not to fix

To be continued...