Category Archives: eclipse

ANTLR v3 Tutorials Aggregation

Here are some tutorial links for learning antlr v3: The Getting Started Tutorial from Official Site is Damn Good! ANTLR Works is a damn good tool! The Definitive Antlr Reference is a good book ANTLR 3.X Tutorials are good video … Continue reading

Posted in antlr, DSL, eclipse | Tagged , , | Leave a comment

Nice GEF Tutorial

GEF involves many concepts as it establishes its MVC convention. You may find tutorials from eclipse official site spend most paragraphs in concept explanation. Here is a very nice tutorial focusing on step-by-step application. It’s not long, around 80 pages … Continue reading

Posted in eclipse | Tagged , , | Leave a comment

Eclipse: Dynamically Adjust Widget Size and Reflow a Form Page

Let’s say you need to dynamically adjust a widget size, and then update scroll bar information. Things are pretty simple, if we understand how eclipse layout works. I have a PageBook widget, and wish to resize the form page as … Continue reading

Posted in eclipse, java | Leave a comment

Code Snippet to use PageBook

Below is very straightforward code snippet to use PageBook. It is used together with eclipse form. Therefore you will see widgets are created via the FormToolkit class.

Posted in eclipse, java | Tagged , , , , | Leave a comment

Write Xml editor by Extending WTP Xml Editor

Several months ago, I posted a blog about writing a Xml editor based on JFace Text Framework. What has changed in the past months? On my side, I went to frequently the eclipse newsgroups. I went to EclipseCon’09 and listened … Continue reading

Posted in eclipse, maven2, XML | Tagged , , | 2 Comments

Eclipse: How to add actions for marker clicking

Let’s say that your XML code is invalid in certain line. There is a relative problem marker placed on the vertical ruler. Like the picture below. Now you wish to make the red problem marker click-able, to invoke certain actions, … Continue reading

Posted in eclipse | Tagged , , , , , , | 1 Comment

Reading notes: Textual DSLs and eclipse modeling (part 2)

Part 1 of the notes is located at http://www.frankdu.com/weblog/archives/46 The relative presentation slide is located at openArchitectureWare.org. 23. In XText, you start to work with defining concret syntax. 24. For existing meta model, use importMetamodel directive. Use preventMMGeneration to prvent … Continue reading

Posted in DSL, eclipse, java | Tagged , , , , , , , , , | 1 Comment

I am attending EclipseCon 2009!

This is a post suggested by EclipseCon 2009. Feel exciting about the upcoming event! I have planned the lectures of interest.

Posted in DSL, eclipse | Tagged , | Leave a comment

Reading notes: Textual DSLs and eclipse modeling (part 1)

The relative presentation slide is located at openArchitectureWare.org. Part 2 of the notes is located at http://www.frankdu.com/weblog/archives/52 Below are my reading notes for Textual DSLs and text modeling in eclipse. I haven’t finished the ppt slides. Therefore, this is only … Continue reading

Posted in DSL, eclipse, java | Tagged , , , , , , , , , | 1 Comment

Eclipse: how to implement actions for annotation markers?

In the text editor, the markers are displayed on the vertical ruler. In Java source editor (CompilationUnitEditor class), you can click a problem marker, then a suggestion list will pop up. It’s pretty user friendly, isn’t it? Then, how to … Continue reading

Posted in eclipse, java | Tagged , , , , , , , | 1 Comment

How to open a perspective and view programmatically in eclipse?

It is very straightforward. Though there are other ways, I will only present one way for now:

Please note: Of course you need to add the error handling code as prompted by eclipse.

Posted in eclipse, java | Tagged , , , | Leave a comment

How to invoke an action from eclipse Welcome page?

Let’s start from the template intro project. In the root.xhtml file, add a link as below: <a href=”http://org.eclipse.ui.intro/runAction?pluginId=com.frank.workbench.demo&amp;class=com.frankdu.workbench.actions.InstallRemoteFeatureAction”> Test Install Action</a> Then you are done. The next step is to impelement the action. Please note: pay attention to the texts … Continue reading

Posted in eclipse, java | Tagged , , | 1 Comment

The supported HTML tags in eclipse form UI

The reason why I like HTML most, is because its flexibility. Even rookies can master it quickly. In eclipse there is form UI, in which FormText supports parsing HTML-like tags to render user interface. Thought it doesn’t support free HTML … Continue reading

Posted in eclipse, java | Tagged , , , , , , | Leave a comment

SWTbot: Automatic GUI Testing for RCP/SWT/Eclipse Programs

I finally sat down and spent two hours on using SWTbot. It is a automatic GUI testing tool for RCP/SWT programs. If you are writing AWT/Swing programs, it’s not for you. For AWT/Swing, you may want abbot. I experienced several … Continue reading

Posted in eclipse, java | Tagged , , , , , , , | 2 Comments

Video Demo of External DSL by oAW Xtext

These three videos are very helpful: http://www.openarchitectureware.org/screencasts/externaldsl_part1.htm http://www.openarchitectureware.org/screencasts/externaldsl_part2.htm http://www.openarchitectureware.org/screencasts/externaldsl_part3.htm

Posted in DSL, eclipse | Tagged , , , , , | Leave a comment