org.netbeans.modules.refactoring.api 1.26.0 1

org.netbeans.modules.refactoring.spi.ui
Class UI

java.lang.Object
  extended by org.netbeans.modules.refactoring.spi.ui.UI

public final class UI
extends Object

Various static UI helper methods

See Also:
RefactoringUI

Nested Class Summary
static class UI.Constants
           
 
Method Summary
static void openRefactoringUI(RefactoringUI ui)
          Open Refactoring UI for specified RefactoringUI
static void openRefactoringUI(RefactoringUI ui, RefactoringSession callerTC, Action callback)
          Open Refactoring UI for specufied RefactoringUI from specified TopComponent.
static void openRefactoringUI(RefactoringUI ui, TopComponent callerTC)
          Open Refactoring UI for specufied RefactoringUI from specified TopComponent.
static boolean setComponentForRefactoringPreview(Component component)
          use this method from RefactoringElementImplementation.showPreview
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

openRefactoringUI

public static void openRefactoringUI(RefactoringUI ui)
Open Refactoring UI for specified RefactoringUI

Parameters:
ui -
See Also:
RefactoringUI

openRefactoringUI

public static void openRefactoringUI(RefactoringUI ui,
                                     TopComponent callerTC)
Open Refactoring UI for specufied RefactoringUI from specified TopComponent. callerTC will get focus when refactoring is finished.

Parameters:
ui -
callerTC -
See Also:
RefactoringUI

openRefactoringUI

public static void openRefactoringUI(RefactoringUI ui,
                                     RefactoringSession callerTC,
                                     Action callback)
Open Refactoring UI for specufied RefactoringUI from specified TopComponent. callerTC will get focus when refactoring is finished.

Parameters:
callback - this action will be called when user clicks refresh button
callerTC - which component will get focus when refactoring is finished
ui - this RefactoringUI will open
See Also:
RefactoringUI, RefactoringSession

setComponentForRefactoringPreview

public static boolean setComponentForRefactoringPreview(Component component)
use this method from RefactoringElementImplementation.showPreview

Parameters:
component - is set as a preview component of RefactoringPanel
Returns:
component was successfuly set

org.netbeans.modules.refactoring.api 1.26.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.