Package org.openide.windows

Examples of org.openide.windows.TopComponent.open()


        super(NbBundle.getMessage(FilterAction.class, "CTL_FilterAction"));
    }

    public void actionPerformed(ActionEvent evt) {
        TopComponent win = FilterTopComponent.findInstance();
        win.open();
        win.requestActive();
    }
}
View Full Code Here


        //putValue(SMALL_ICON, new ImageIcon(Utilities.loadImage(scratch_padTopComponent.ICON_PATH, true)));
    }

    public void actionPerformed(ActionEvent evt) {
        TopComponent win = scratch_padTopComponent.findInstance();
        win.open();
        win.requestActive();
    }
}
View Full Code Here

            @Override
            public void mouseClicked(MouseEvent e) {
                TopComponent tc = WindowManager.getDefault().findTopComponent("HierarchyTopComponent");
                if (tc != null) {
                    tc.open();
                    tc.requestActive();
                    HierarchyTopComponent hierarchyTopComponent = (HierarchyTopComponent) tc;
                    hierarchyTopComponent.refresh();
                }
            }
View Full Code Here

            if (m != null) {
                m.dockInto(explorerWin); // redock into the explorer mode
            } else {
                logger.log(Level.WARNING, "Could not find explorer mode and dock explorer window"); //NON-NLS
            }
            explorerWin.open(); // open that top component
        }

        // find the data content top component
        TopComponent contentWin = DataContentTopComponent.findInstance();
        Mode m = WindowManager.getDefault().findMode("output"); //NON-NLS
View Full Code Here

            m.dockInto(contentWin); // redock into the output mode
        } else {
            logger.log(Level.WARNING, "Could not find output mode and dock content window"); //NON-NLS
        }

        contentWin.open(); // open that top component
    }

    /**
     * Closes all TopComponent windows that needed ({@link DataExplorer}, {@link DataResult}, and
     * {@link DataContent}).
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.