Is there any way to catch double-click action in project view?

I want to do some processes when double clicking a file with specific extension.. (ex. *.abc)

I tried...

  • I make a class that implements FileEditorProvider, and in accept() method, I do something and return false, but default text editor is shown (This is NOT exactly what i want to do...)
        
  • So, I returned FileEditorPolicy.PLACE_AFTER_DEFAULT_EDITOR in getPolicy() method, and I do something in createEditor() method, and return null...But it cause an exception '.....it should return non-null.....'
        

I want to do :

  • When double click a specific file(*.abc) in project view (tree), I want to launch external binary
  • Default text editor should be not shown.

Is there any solution for this?

I found same questions here :

But it does not have any solutions..

 

 

2 comments
Comment actions Permalink

In my post, mistype something...

  • So, I returned return FileEditorPolicy.HIDE_DEFAULT_EDITOR in getPolicy() method, and I do something in createEditor() method, and return null...But it cause an exception '.....it should return non-null.....'

 

0
Comment actions Permalink

I don't think it's possible now. Please create a request in YouTrack for that.

0

Please sign in to leave a comment.