Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Suppressing browse action handler
Suppressing browse action handler [message #805670] Fri, 24 February 2012 02:18 Go to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
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] Fri, 24 February 2012 02:25 Go to previous messageGo to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
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: Fri, 24 February 2012 02:59]

Report message to a moderator

Re: Suppressing browse action handler [message #805756 is a reply to message #805675] Fri, 24 February 2012 05:09 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
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 05:09]

Report message to a moderator

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


Current Time: Sat Apr 20 03:03:18 GMT 2024

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

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

Back to the top