X

Shay Shmeltzer's Oracle Development Tools Tips

  • May 14, 2007

New Coding Toys in JDeveloper 11

Shay Shmeltzer
Director of Product Management - Oracle

It sometime seems that a lot of the coding features in JDeveloper go unnoticed by some users. For example, we get the "I can do this keyboard short-cut in Eclipse/IDE - how come it is not in JDeveloper" question - and in many cases it is in JDeveloper - you just need to know where to find it.

So I thought I'll start "documenting" some of the new features so they won't go un-noticed.

The first thing you'll notice is that the code editor in JDeveloper now has its own toolbar - which provide quick access to some of the functions. This might help you discover that we do have the following:

  • Generate Accessors (now with new stronger feature then before)
  • Surround with (mark a section of your code and surround with)
  • Override Method/Implement Interface
  • Reformat
  • and bookmarks



All of these we had before - but some people didn't find them.


By the way to make it easier to access them we also added a source option to the right click menu in the editor.









Another object on the toolbar is the find window

Start typing something and JDeveloper will find it - and then use the arrows to navigate between the instances.

Note that you can click the little binoculars icon to set some search options.




One more new search option can be found under the search top menu is called "Auto Code Highlight" that will actually automatically highlight instances of the item you are standing on in the editor.

(In 10.1.3 there is an extension that does this).

In the source menu you'll also note some new things in 11 such as the:

  • Generate constructor from fields
  • Generate equal and hashcode
  • Generate event notification

To make navigation easier in the go to class we added support for camel-case. Try this Ctrl and "-" and then type NuP - get the picture?

The quick Javadoc (ctrl+D) now also works for methods - so try this: get code insight for a variable that shows a list of methods - and then scroll to a method and press CTRL+D to get the scoop about it.







For easier code readability we added more syntax color options - make sure to go into tools->preferences->code editor and turn them on by checking the enable highlight box and formatting them. Note that some of them are not on by default. (again in 10.1.3 we had an extension that provided this).









There are other nice shortcuts like this out there - but these should keep you busy for now...

Join the discussion

Comments ( 6 )
  • Janusz Marchewa Wednesday, May 16, 2007
    It's good to know about the cool new coding features in JDev 11, thanks.
    But there are some shortcuts I do miss from Eclipse, e.g.: Alt+Up (Move Lines Up), Alt+Down (Move Lines Down), Ctrl+Alt+Up (Duplicate Lines), Ctrl+Alt+Down (Copy Lines), Ctrl+Shift+R (Open Resource). Do they exist in JDev (I didn't find them)? If not, is there a chance to see them in 11?
  • Shay Shmeltzer Wednesday, May 16, 2007
    For the go to resource use ctrl+alt+- (go to file)
    I'm not sure how much the other short-cuts are more useful then ctrl-c/ctrl-x/ctrl-v :-)
  • Reza Ghaffaripour Friday, June 15, 2007
    when is the final release of jdev 11 is expected to be out?
  • Shay Shmeltzer Friday, June 15, 2007
    We can't provide production dates due to sarbanes oxley regulation. All we can say right now is FY08.
  • Khorne Wednesday, October 19, 2011

    Hi,

    i have a question about the syntax colors in Jdev 11g.

    On others IDE i use a lot of options, with different colors for class, interface, method, etc...

    In JDev 11g i can configure different colors for all schemas, using "Language : Default", that contains all those new options, spending some time... for nothing, because "Language : Java" contains only a limited set of options and overrides the configurations of "Language : Default".

    How i can resolve?


  • J_Venus Friday, May 23, 2014

    I agree with Janusz. Alt+Up (Move Lines Up), Alt+Down (Move Lines Down), Ctrl+Alt+Up (Duplicate Lines), Ctrl+Alt+Down (Copy Lines)

    They are VERY much more useful at times than copy-pasta. It is incredible that JDeveloper has not incorporated them yet, and people every day are making fun of this IDE for not having it.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.