站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

UI (Refactoring API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.refactoring.api 1.0

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

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.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.