JackpotUI

(Difference between revisions)
(Custom Refactorings UI Specification)
 
Line 37: Line 37:
  || .                        | ||sses.                  || |
  || .                        | ||sses.                  || |
  || .                        | ||                        || |
  || .                        | ||                        || |
-
  || [ ] Custom Redactorings | ||                        || |
+
  || [ ] Custom Refactorings | ||                        || |
  ||    [ ] My new API upgard| ||                        || |
  ||    [ ] My new API upgard| ||                        || |
  ||    [ ] Something        | ||                        || |
  ||    [ ] Something        | ||                        || |
Line 63: Line 63:
Standard platform default "Save as" dialog will save selected scripts to file  
Standard platform default "Save as" dialog will save selected scripts to file  
===Import===
===Import===
-
Standard pltafrom default "Open" dialog will open selected script file and imports custom refactorings to the IDE.
+
Standard platfrom default "Open" dialog will open selected script file and imports custom refactorings to the IDE.
===New===
===New===
Creates a new script. New scripts are created under Custom Refactorings node. Dialog is switched to editing mode.
Creates a new script. New scripts are created under Custom Refactorings node. Dialog is switched to editing mode.
Line 69: Line 69:
Creates a new script under Custom Refactorings node as a copy of selected node. Dialog is switched to editing mode.
Creates a new script under Custom Refactorings node as a copy of selected node. Dialog is switched to editing mode.
===Edit===
===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.
+
Edit action will start editing mode. Right area will expand to fill whole dialog. All refactoring buttons are disabled. Code completion is nice to have.
<pre>
<pre>
  +----------------------------------------------------------+
  +----------------------------------------------------------+

Current revision as of 20:17, 30 May 2011

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 Refactorings  | ||                        || |
 ||     [ ] 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 platfrom 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 editing 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