Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » extending actionfilters for existing resources
extending actionfilters for existing resources [message #194190] Fri, 13 February 2004 23:17 Go to next message
jjho is currently offline jjhoFriend
Messages: 11
Registered: July 2009
Junior Member
Up to the current 3.0 build, I am not aware of a mechanism to allow the
IActionFilter testAttribute to be extended for already defined types
(IProject, for example, already has an WorkbenchProject adapter registered
which allows one to define enablement through a projects nature and its open
state.

However, I realized that I could not conditionally enable an action for a
"simple" project, because it contains no natures. Checking the nature ID
with an equivalent value doesn't work for this case.

Is there a way to further adapt the resource object in question with an
already registered adapter for the type IActionFilter.class?

And also, what prevents N number of adapterfactories to be registered based
on the same types? Does this introduce buggy behavior?

Any thought would be great!

Thanks.
Re: extending actionfilters for existing resources [message #654994 is a reply to message #194190] Thu, 17 February 2011 22:07 Go to previous message
Hemant Singh is currently offline Hemant SinghFriend
Messages: 24
Registered: January 2010
Junior Member
Did you figured out any solution of this problem yet?

I am in similar situation, where I want to provide custom IWorkbenchAdapter for the IProject, but since platform already have adapter factory, which maps IProject with WorkbenchProject, so it doesn't work.
Previous Topic:BuddyPolicy, Class loaders and Bundle start
Next Topic:How to provide custom IWorkbenchAdapter for IProject instead of default WorkbenchProject
Goto Forum:
  


Current Time: Tue Apr 23 13:39:26 GMT 2024

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

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

Back to the top