SandipChitaleModuleIntegration

Discussion with Petr Hrebejk on integration of my modules with NetBeans platform and IDE.

On Feb 9th, 2007 I discussed the possible integartion some of the functionality of following modules with the NetBeans platform and IDE.

Java related Modules

The initial proposal is here

I and Petr recommend full integration of CopyFQN module. This will be implemented as JavaEditorKit action.

I and Petr recommend full integration of Declaration and Javadoc module.

Here is a patch for Java Editor module to integrate the CamelCase actions.

Apr 12, 2007 - This has been integrated into NetBeans 6.0 trunk. The keybinding have changed to Ctrl- from Ctrl+Alt.

Editor related Modules

Line Tools

  • Line Tools - This module primarily supports the Move/Copy of selection/current line up/down. Aside from that it also supports sorting of line, exchange mark and dot of the selection. Related blog entries: 1 2 3 4 5. I attempted a quick integration of move/copy selection else line up/down with NetBeans code. Here are the possible diffs.

The Line tools module has a lot of fuctionality now, all of which may not be useful to most users of NetBeans. The following actions have already been integrated to trunk:

  1. Move Selection/Line Up
  2. Move Selection/Line Down
  3. Copy Selection/Line Up
  4. Copy Selection/Line Down

I also reccommend intergating:

  • Exchange mark and dot (i.e. selection end points)

All these actions will be implemented as sub classes of BaseAction of the BaseKit. The actions will be implemented in ActionFactory.

One idea suggested by a user may work well also:

Johnny Tolliver wrote:

Here's another idea. When using LineTools to move lines or blocks of lines, I'm normally moving lines into or out of an if-block or a try/catch or something like that. And probably 90% of the time I have to then follow the move with a Ctrl-T or Ctrl-D to get the indentation correct. Would it be useful/doable to automatically indent/unindent lines as they move into or out of a block of code marked by curly braces? It might be difficult to get this behavior to be perfect for all possible conditions, but as a start, moving up, over a } would indicate one level indent right. Moving down, over a } would indicate one level un-indent. Up, across a { would be unindent. Down, across { would be indent. That about covers it, though there might be corner cases that don't jump right out at me.

Code Template Tools

The Code Template Tools module has a lot of fuctionality now, all of which may not be useful to most users of NetBeans. Petr and I recommend integration of:

  • Quick creation of templates from the selection in the text editor

I also recommend intergating:

  • The ${clipboard-content} template parameter. The implementation replaces the parameter with the current contents of the clipboard. This template parameter in conjuntion with the ${selection} parameter can be a very powerful combination.

Firefox-like Search Bar

I and Petr recommend full integration of Incremental Search Sidebar i.e.

  1. Incremental Search Forward
  2. Incremental Search Backward

with options for:

  • Case sensitive search
  • Highlight other matches

It should be possible to repeat the search using the same keybinding.

These actions will be implemented as sub classes of BaseAction of the BaseKit. The actions will be implemented in ActionFactory.

The SideBar will be implemented in the EditorUI.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo