Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Enabling commands for particular file types only
Enabling commands for particular file types only [message #623555] Wed, 16 September 2009 16:26
Patrick Konemann is currently offline Patrick KonemannFriend
Messages: 116
Registered: July 2009
Senior Member
Dear newsgroup,

I am not really sure whether this is the right newsgroup to ask, please tell me then whether there is a more appropriate one.

When defining actions in Eclipse, you can enable them only for particular file types in the extension definition (e.g. nameFilter="*.txt" in the objectContribution).
Following the command framework [1], restrictions can be modeled in the activeWhen clause of the handler, however, I cannot figure out how to restrict the handler to particular file types only.

I could not find any documentation for doing that.
Here is my extension so far:

[I guess the file type restriction has to go here]

Any help appreciated.

Best regards

Previous Topic:Add pdf files to search index
Next Topic:Column Resize Is Too Large To Display
Goto Forum:

Current Time: Tue Apr 24 14:44:52 GMT 2018

Powered by FUDForum. Page generated in 0.01435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software