Author Archives: frankdu

Quick Example to Java Scripting Engine

Have you heard that Java support scripting engine? Try the source code below:

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

Many interesting things today

Today I noticed many interesting things. To name a few: 1. Google Wave is a lot of fun. The service is only available for invited users. But you can got a lot of fun by watching their demo video at … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

iPhone Development Course from Stanford (free@iTunes)

It’s a good resource. I pasted the link below for my own convenient navigation: http://www.stanford.edu/class/cs193p/cgi-bin/index.php

Posted in Uncategorized | Tagged | Leave a comment

Use maven dependency plugin to copy all dependencies to a folder

In some cases, we’d like to get all the dependency jar files for a project. There is a maven plugin to do it simply, via a simple way. Just add the build sections to your pom file, as shown below: … Continue reading

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

Yahoo API & web services

Recently I am interested in Yahoo API and web services, especially inquirying finance data via the APIs. Yahoo provides nice language support. For example, python is supported at http://developer.yahoo.com/python/ At the bottom of the page, you can find a list … Continue reading

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

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