Sample JDeveloper Extension - Go To File Shortcut

For a while I wanted to have a beginner guide for writing extensions to JDeveloper - just to show people it is rather a simple task.

So a couple of weeks ago someone on the forums mentioned that we didn't have a keyboard short-cut in JDeveloper that will just let you type a name of a file and then will automatically open it in the editor.
So I decided to pick this up and show how simple it is to add something like this to JDeveloper with an extension.

I created a very basic extension that will popup a list of all the files in your project once you press ctl+alt+Minus then you can start typing your file name - once you reach it in the list press enter and the file will open in the editor.

goto-today:

You can download the extension from here (or through the check for updates in the JDeveloper menu).

If you'll look into the jar file you'll see the actual java class that has the code for the extension.
It is very simple - one routine finds the file names.
The other routine adds the dialog to the JDev environment.

Feel free to improve this extension by changing the code.

Next on my plate is to do a little write up that will explain the steps for building up an extension.

By the way, when release 11 of JDeveloper will come out you won't need this extension any more - the feature will be built-in - and is already looking much better than my version.

goto-tomorrow:

Comments:

More time i need to go method which name of method is know by me. i need a function like "goto class" menu item binded to keyboard shortcut. can you add this functionality to new version of JDeveloper 11g. Thanks.

Posted by Huseyin ASLITURK on July 11, 2007 at 11:24 AM PDT #

We have shortcuts to goto class and also to navigate to a specific method. Check out this blog entry: http://blogs.oracle.com/shay/2007/05/10_eclipse_navigation_shortcut.html

Posted by Shay Shmeltzer on July 11, 2007 at 11:29 AM PDT #

tks a lot shay ;)

Posted by Bog on July 12, 2007 at 01:49 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today