@Override public void run() { listenerHolder.add((DataTableTopComponent) WindowManager.getDefault().findTopComponent("DataTableTopComponent")); } });
private static TopComponent getOutputWindow() { final String outputWindowId = "output"; //NOI18N TopComponent outputWindow = WindowManager.getDefault().findTopComponent(outputWindowId); assert outputWindow != null : "Could not find the output window using id " + outputWindowId; //NOI18N return outputWindow; }
@Override public void run() { tc[0] = WindowManager.getDefault().findTopComponent(tcID); } });
public static boolean isComponentOpened(String viewName) { TopComponent view = WindowManager.getDefault().findTopComponent(viewName); if (view == null) { throw new IllegalArgumentException(viewName); } return view.isOpened(); }
private static TopComponent findTopComponentOfId(String id) { TopComponent tc = WindowManager.getDefault().findTopComponent(id); if (tc == null) { // ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, // new NullPointerException("TopComponent of id=" + id + " not found!")); // NOI18N info(new NullPointerException("TopComponent of id=" + id + " not found!")); // NOI18N return null; } return tc; }
public NetBeansUniformityCheckMainPresentation() { assert EventQueue.isDispatchThread(); topComponent = (UniformityCheckMainTopComponent)WindowManager.getDefault().findTopComponent("UniformityCheckMainTopComponent"); panel = topComponent.getContent(); }
public NetBeansProfileEvaluationMainPresentation() { assert EventQueue.isDispatchThread(); topComponent = (ProfileEvaluationMainTopComponent)WindowManager.getDefault().findTopComponent("ProfileEvaluationMainTopComponent"); panel = topComponent.getContent(); } }
@Override public void run() { TopComponent tc = WindowManager.getDefault().findTopComponent("CssStylesTC"); // NOI18N ((CssStylesTC)tc).setTitle(null); } });
public static synchronized MemoryWindow getDefault() { if (DEFAULT == null) { DEFAULT = (MemoryWindow) WindowManager.getDefault().findTopComponent(preferredID); if (DEFAULT == null) { DEFAULT = new MemoryWindow(); } } return DEFAULT; }
@Override public void run() { PreviewSettingsTopComponent pstc = (PreviewSettingsTopComponent) WindowManager.getDefault().findTopComponent("PreviewSettingsTopComponent"); pstc.enableRefreshButton(); } });
protected WorldWindowGLCanvas findWorldWindView() { final WWWorldViewToolView window = (WWWorldViewToolView) WindowManager.getDefault().findTopComponent("WWWorldMapToolView"); if(window != null) { return window.getWwd(); } return null; }
public void run() { defaultInstance = (TelemetryOverviewPanel) WindowManager.getDefault().findTopComponent(ID); if (defaultInstance == null) defaultInstance = new TelemetryOverviewPanel(); } });
private static synchronized ResultWindow getResultWindow() { ResultWindow result = (ResultWindow) WindowManager.getDefault().findTopComponent(ID); if (result == null) { result = getDefault(); } return result; }
@Override public void run() { TopComponent tc = WindowManager.getDefault().findTopComponent("DashboardTopComponent"); // NOI18N if (tc == null) { BugtrackingManager.LOG.fine("No Tasks Dashboard found"); // NOI18N return; } tc.open(); tc.requestActive(); } });
@Override public void run() { TopComponent tc = null; if(query != null) { tc = WindowManager.getDefault().findTopComponent(query.getDisplayName()); } if(tc != null) { tc.close(); } } });
/** * Invoked when the user clicks the icon. */ protected void onMouseClick() { TopComponent tc = WindowManager.getDefault().findTopComponent("NotificationCenterTopComponent"); tc.open(); tc.requestActive(); }
@Override public void actionPerformed(ActionEvent e) { TopComponent tc = WindowManager.getDefault().findTopComponent("EditorTopComponent"); EditorTopComponent etc = (EditorTopComponent) tc; etc.redoAction(); etc.getEditorState().setDirty(true); }
@Override public void actionPerformed(ActionEvent e) { TopComponent tc = WindowManager.getDefault().findTopComponent("EditorTopComponent"); EditorTopComponent etc = (EditorTopComponent) tc; etc.undoAction(); etc.getEditorState().setDirty(true); } }
public final void setRootContext() { TopComponent tc = WindowManager.getDefault().findTopComponent(this.type); ExplorerManager.Provider provider = (ExplorerManager.Provider) tc; Node rootContext = provider.getExplorerManager().getRootContext(); filterNode = new ContextRootNode(rootContext); getExplorerManagerProvider().getExplorerManager().setRootContext(filterNode); }
public void actionPerformed(ActionEvent e) { Project project = ((NbProjectHandleImpl) prj).getProject(); if (project == null) { ((NbProjectHandleImpl) prj).remove(); } else { OpenProjects.getDefault().open(new Project[]{project}, false); WindowManager.getDefault().findTopComponent("projectTabLogical_tc").requestActive(); // NOI18N selectProject(project); } }