Ribbon IDE - EclipseCon Slides

I've just uploaded the slides (pdf) from today's talk at EclipseCon. Thanks everybody who attended!
If you don't mind trying an alpha, you can download Eclipse 3.6 M6 with the ribbon here.
Eclipse tips & tricks from the code trenches.

I've just uploaded the slides (pdf) from today's talk at EclipseCon. Thanks everybody who attended!
If you don't mind trying an alpha, you can download Eclipse 3.6 M6 with the ribbon here.
Posted by Elias Volanakis at 17:50 1 comments
Labels: eclipse, eclipse-ui, ribbon IDE
Here's a short video about integrating the Hexapixel Ribbon widget into Eclipse. I'm working on this over the holidays. It will be available for free under EPL.
If you like this, please vote for my EclipseCon submission.
Don't see the video? Click here.
Posted by Elias Volanakis at 07:00 8 comments
Labels: eclipse, eclipse-ui, ribbon IDE, screencast



Posted by Elias Volanakis at 13:30 0 comments
Labels: eclipse, eclipse-riena, eclipse-ui

Posted by Elias Volanakis at 08:59 1 comments
Here's a bug pattern I ran into the other day.
final Text text = new Text(shell, SWT.SINGLE | SWT.BORDER);
VerifyListener onlyNumbers = new VerifyListener() {
public void verifyText(VerifyEvent e) {
e.doit = Character.isDigit(e.character);
}
};
text.addVerifyListener(onlyNumbers);
final Text text = new Text(shell, SWT.SINGLE | SWT.BORDER);
VerifyListener onlyNumbers = new VerifyListener() {
public void verifyText(VerifyEvent e) {
e.doit = Character.isDigit(e.character);
}
};
text.addVerifyListener(onlyNumbers);
VerifyListener maxLengthTen = new VerifyListener() {
public void verifyText(VerifyEvent e) {
String newText = getText(e);
e.doit = newText.length() <= 10;
}
};
text.addVerifyListener(maxLengthTen);
final Text text = new Text(shell, SWT.SINGLE | SWT.BORDER);
VerifyListener onlyNumbers = new VerifyListener() {
public void verifyText(VerifyEvent e) {
if (e.doit == false) {
return;
}
e.doit = Character.isDigit(e.character);
}
};
text.addVerifyListener(onlyNumbers);
VerifyListener maxLengthTen = new VerifyListener() {
public void verifyText(VerifyEvent e) {
if (e.doit == false) {
return;
}
String newText = getText(e);
e.doit = newText.length() <= 10;
}
};
text.addVerifyListener(maxLengthTen);
Posted by Elias Volanakis at 16:17 6 comments
Labels: eclipse, eclipse-tips, eclipse-ui, swt
Riena M4 shipped this Monday with many improvements.
The most interesting news - aside from the new features - is that we are providing a gradual adoption path for developers working with existing RCP applications. This should make adopting Riena easier, because you can gradually use more and more parts of the framework as you become more confident in it.
Two results of this, which are available in M4:
Posted by Elias Volanakis at 18:30 0 comments
Labels: eclipse, eclipse-riena, eclipse-ui
Did you ever want a JFace TreeViewer that shows different icons depending on the expanded / collapsed state of a node? The animation below shows what I mean:
class NodeLabelProvider extends LabelProvider {
// ...
public Image getImage(Object element) {
Image result = LEAF;
Node node = (Node) element;
if (node.hasChildren()) {
result = viewer.getExpandedState(node) ? NODE_EXPANDED : NODE_COLLAPSED;
}
return result;
}
}class UpdateIconTreeListener implements TreeListener {
public void treeCollapsed(TreeEvent e) {
updateImage((TreeItem) e.item, true);
}
public void treeExpanded(TreeEvent e) {
updateImage((TreeItem) e.item, false);
}
private void updateImage(TreeItem item, boolean isCollapsed) {
Image image = isCollapsed ? NODE_COLLAPSED : NODE_EXPANDED;
item.setImage(image);
}
}viewer.expandToLevel(node, 1);
viewer.update(node, null);
Posted by Elias Volanakis at 18:30 4 comments
Labels: eclipse, eclipse-tips, eclipse-ui, jface
eclipse, noun: (1) an alignment of three celestial bodies such that one body is directly between the other two; (2) an extensible platform for building rich applications and IDEs in particular
nugget, noun: (a) a small, compact chunk or clump, as in gold nugget; (b) a tidbit of something valuable, as in nugget of wisdom
Content: © Copyright 2007 - 2009, Elias Volanakis. All rights reserved. Datenschutzhinweis / Privacy Policy