FileUtil.getConfigObject(path, type)

Leave a comment

November 11, 2012 by huionn

In looking for a standard way to open a singleton TopComponent in NetBeans, I found a useful new file system API (since 7.1) – FileUtil.getConfigObject(String path, Class<T> type). The API is described in http://platform.netbeans.org/whatsnew/71.html. In addition, it also mentioned Actions.forID(category, id) that I can use to open TopComponent (from the TopComponent’s @ActionID annotation).

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: