Package org.openide.windows

Examples of org.openide.windows.TopComponent


*/
public final class ActionLs implements ActionListener {

    @Override
    public void actionPerformed(ActionEvent e) {
        TopComponent topComponent = new LsTopComponent();
        topComponent.open();
        topComponent.requestActive();
    }
View Full Code Here


*/
public final class ActionGrep implements ActionListener {

    @Override
    public void actionPerformed(ActionEvent e) {
        TopComponent topComponent = new GrepTopComponent();
        topComponent.open();
        topComponent.requestActive();
    }
View Full Code Here

*/
public final class ActionRsync implements ActionListener {

    @Override
    public void actionPerformed(ActionEvent e) {
        TopComponent topComponent = new RsyncTopComponent();
        topComponent.open();
        topComponent.requestActive();
    }
View Full Code Here

    public ControlFlowAction() {
        super(NbBundle.getMessage(ControlFlowAction.class, "CTL_ControlFlowAction"));
    }

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

    /**
     * Obtain the ControlFlowTopComponent instance. Never call {@link #getDefault} directly!
     */
    public static synchronized ControlFlowTopComponent findInstance() {
        TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
        if (win == null) {
            ErrorManager.getDefault().log(ErrorManager.WARNING, "Cannot find ControlFlow component. It will not be located properly in the window system.");
            return getDefault();
        }
        if (win instanceof ControlFlowTopComponent) {
View Full Code Here

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

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

    }

    public static EditorTopComponent getActive() {
        Set<? extends Mode> modes = WindowManager.getDefault().getModes();
        for (Mode m : modes) {
            TopComponent tc = m.getSelectedTopComponent();
            if (tc instanceof EditorTopComponent) {
                return (EditorTopComponent) tc;
            }
        }
        return null;
View Full Code Here

    /**
     * Obtain the FilterTopComponent instance. Never call {@link #getDefault} directly!
     */
    public static synchronized FilterTopComponent findInstance() {
        TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
        if (win == null) {
            ErrorManager.getDefault().log(ErrorManager.WARNING, "Cannot find Filter component. It will not be located properly in the window system.");
            return getDefault();
        }
        if (win instanceof FilterTopComponent) {
View Full Code Here

    /**
     * Obtain the OutlineTopComponent instance. Never call {@link #getDefault} directly!
     */
    public static synchronized OutlineTopComponent findInstance() {
        TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
        if (win == null) {
            ErrorManager.getDefault().log(ErrorManager.WARNING, "Cannot find Outline component. It will not be located properly in the window system.");
            return getDefault();
        }
        if (win instanceof OutlineTopComponent) {
View Full Code Here

    /**
     * Obtain the scratch_padTopComponent instance. Never call {@link #getDefault} directly!
     */
    public static synchronized scratch_padTopComponent findInstance() {
        TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
        win.grabFocus();
        if (win == null) {
            Logger.getLogger(scratch_padTopComponent.class.getName()).warning("Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
            return getDefault();
        }
        if (win instanceof scratch_padTopComponent) {
View Full Code Here

TOP

Related Classes of org.openide.windows.TopComponent

Copyright © 2018 www.massapicom. 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.