JackpotUI

Revision as of 13:17, 30 May 2011 by Jbecicka (Talk | contribs)

Custom Refactorings UI Specification

Contents

Menu


          +--------+
   Source |Refactor| Run  Debug
          +--------+------------+
          |                     |
          |.                    |
          |.                    |
          |.                    |
          |.                    |
          |EncapsulateFields... |
          +---------------------+
          |Custom Refactoring...|
          +---------------------+
          |Undo                 |
          |Redo                 |
          +---------------------+

Refactoring UI Dialog

 +----------------------------------------------------------+
 | Custom Refactorings                                      |
 +----------------------------------------------------------+
 |+--------------------------+ +-------------+-------+      |
 ||-O|                       | | Description |Script |      |
 |+--------------------------+ |             +-------+----+ |
 |+--------------------------+ |+------------------------+| |
 || [ ] Class Structure      | ||Reports any instances of|| |
 ||     [ ] Final Class      | ||methods being declared f|| |
 ||     [x] Final Method     | ||inal. Some coding standa|| |
 || .                        | ||rds discourage final cla|| |
 || .                        | ||sses.                   || |
 || .                        | ||                        || |
 || [ ] Custom Redactorings  | ||                        || |
 ||     [ ] My new API upgard| ||                        || |
 ||     [ ] Something        | ||                        || |
 ||                          | ||                        || |
 |+--------------------------+ |+------------------------+| |
 ||Export Import   New       | ||              Copy Edit || |
 ||                          | |+------------------------+| |
 |+--------------------------+ +--------------------------+ |
 |        +------------------+                              |
 | Scope: |Open Projects    V|                              |
 |        +------------------|                              |
 |        |Current Selection |                              |
 |        |Custom...         |-+ +--------+ +------+ +----+ |
 |        +------------------+ | |Refactor| |Cancel| |Help| |
 |                   +---------+ +--------+ +------+ +----+ |
 +----------------------------------------------------------+

Search

Search field will filter available hints in left pane. Selection pane for selecting hints should be similar to Tools | Options | Editor Hints

Script tab

Looks similar to Description tab, but contains code of selected script

Export

Standard platform default "Save as" dialog will save selected scripts to file

Import

Standard pltafrom default "Open" dialog will open selected script file and imports custom refactorings to the IDE.

New

Creates a new script. New scripts are created under Custom Refactorings node. Dialog is switched to editing mode.

Copy

Creates a new script under Custom Refactorings node as a copy of selected node. Dialog is switched to editing mode.

Edit

Edit action will start editng mode. Right area will expand to fill whole dialog. All refactoring buttons are disabled. Code completion is nice to have.

 +----------------------------------------------------------+
 | Custom Refactorings                                      |
 +----------------------------------------------------------+
 | +-------------+-------+                                  |
 | | Description |Script |                                  |
 | +-------------+       +--------------------------------+ |
 | |      +----------------------------------------------+| |
 | | Name:|New String Creation                           || |
 | |      +----------------------------------------------+| |
 | |+----------------------------------------------------+| |
 | ||new String($orig) :: $orig instanceof String        || |
 | ||&& !matchesAny($orig"$o.substring($s)", "$          || |
 | || o.substring($s, $e)")                              || |
 | ||                                                    || |
 | ||                                                    || |
 | ||                                                    || |
 | ||                                                    || |
 | |+----------------------------------------------------+| |
 | ||                                       Save  Cancel || |
 | |+----------------------------------------------------+| |
 | +------------------------------------------------------+ |
 |                   +---------+ +--------+ +------+ +----+ |
 |                   |Preview  | |Refactor| |Cancel| |Help| |
 |                   +---------+ +--------+ +------+ +----+ |
 +----------------------------------------------------------+

Save

Save action stores current edits and returns back to default mode.

Cancel

Leaves editing mode without changes.

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