Category Archives: Engineering

record something about programming

The DSL implementation work

I started to experiment Domain-Specific Language (DSL) implementation two weeks ago. The tool I use is antlr v3. We know that Xtext, TCS, Boo are good DSL toolkit. The reason why we don’t use them for now, is because you … Continue reading

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

Microsoft’s Oslo as a Domain Modeling Language

I watched a good demo about M language from Microsoft. The link is listed below: Modeling: Transformation and Constraints http://www.langnetsymposium.com/2009/talks/37-PaulVickDavidLangworthy-M.html As I watch the demo video, I start to realize that DSL and domain modeling may be two things, but … Continue reading

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

How to kick off textual Domain Specific Languages (DSLs)?

I am playing with DSLs. As a developer without too much language/compiler experience, it is not easy to get started. Fortunately, my friend Yu has a lot of experience, and Internet is another resort for resources. So, it becomes a … Continue reading

Posted in DSL | 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

Some Links for Domain Specific Languages

I am looking into DSL (domain specific language) recently. There are a few links below, bookmarked for my own convenience: Language Oriented Programming: The Next Programming Paradigm A good paper introduction to DSL. The language is plain, vivid, and easy … Continue reading

Posted in DSL, eclipse, java | Tagged , , , , | 4 Comments