Skip to main content



      Home
Home » Archived » Sapphire » Suppressing browse action handler
Suppressing browse action handler [message #805670] Thu, 23 February 2012 21:18 Go to next message
Eclipse UserFriend
I have a Path property and in my sdef I have added a ProjectRelativePathBrowseActionHandler to it. However, since its a Path property, the RelativePathBrowseActionHandler is also getting activated. Is there a way to suppress this handler so only the ProjectRelative shows up?
Re: Suppressing browse action handler [message #805675 is a reply to message #805670] Thu, 23 February 2012 21:25 Go to previous messageGo to next message
Eclipse UserFriend
OK, I should look around first, its really easy to specify a ActionHandlerFilter in the sdef for any property editor and then just filter the unwanted handlers. Maybe my topic post can help others learn Smile

<action-handler-filter>
    <context>Sapphire.ValuePropertyEditor</context>
    <impl>FolderActionHandlerFilter</impl>
</action-handler-filter>

[Updated on: Thu, 23 February 2012 21:59] by Moderator

Re: Suppressing browse action handler [message #805756 is a reply to message #805675] Fri, 24 February 2012 00:09 Go to previous message
Eclipse UserFriend
You may want to take a look at @ProjectRelativePath annotation for an easier way to model project relative paths. See usage example in the gallery sample...

@Type( base = Path.class )
@ProjectRelativePath
@MustExist
    
ValueProperty PROP_PROJECT_RELATIVE_PATH = new ValueProperty( TYPE, "ProjectRelativePath" );
    
Value<Path> getProjectRelativePath();
void setProjectRelativePath( String value );
void setProjectRelativePath( Path value );

[Updated on: Fri, 24 February 2012 00:09] by Moderator

Previous Topic:IProject base type for property?
Next Topic:Adding annotations in sub-interface
Goto Forum:
  


Current Time: Wed Jul 16 00:09:59 EDT 2025

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

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

Back to the top