Examples of dockInto()


Examples of org.openide.windows.Mode.dockInto()

                public void run() {
                    WelcomeTopComponent welcomeTC = WelcomeTopComponent.findInstance();
                    Mode mode = WindowManager.getDefault().findMode("welcomemode");
                    if (mode != null) {
                        mode.dockInto(welcomeTC);
                        welcomeTC.open();
                    }
                }
            });
        }
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

    w = new TopComponent();
                w.setDisplayName("Simulator");
                w.setLayout(new BorderLayout());
    w.add(f.getPanel(), BorderLayout.CENTER);
                Mode outPutMode = WindowManager.getDefault().findMode("output");
                outPutMode.dockInto(w);
                w.open();
                w.requestActive();
  }

  public void simulate(short[] paramValues) {
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

            @Override
            public void run() {
                Mode mode = WindowManager.getDefault().findMode("editor");
                if (mode != null) {
                    mode.dockInto(imp.getTopComponent());
                    imp.getTopComponent().open();
                    imp.getTopComponent().requestActive();
                }
            }
        });
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

    public void open()
    {
        //Open the repl in the output pane by default
        Mode m = WindowManager.getDefault().findMode ("output");
        if (m != null) {
           m.dockInto(this);
        }
        super.open();
    }

//    private void initReplTopComponent(String projectName, IFn replDataFn)
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

        final ImageAnalyzerTopComponent tc = (ImageAnalyzerTopComponent) WindowManager.getDefault().findTopComponent("ImageAnalyzerTopComponent");
        if (tc != null) {
            WindowManager.getDefault().isTopComponentFloating(tc);
            Mode mode = WindowManager.getDefault().findMode("timeline");
            if (mode != null) {
                mode.dockInto(tc);
            }
            tc.open();
            tc.requestActive();
        }
    }
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

        Collection<? extends DataExplorer> dataExplorers = Lookup.getDefault().lookupAll(DataExplorer.class);
        for (DataExplorer de : dataExplorers) {
            TopComponent explorerWin = de.getTopComponent();
            Mode m = WindowManager.getDefault().findMode("explorer"); //NON-NLS
            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
        }
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

        // find the data content top component
        TopComponent contentWin = DataContentTopComponent.findInstance();
        Mode m = WindowManager.getDefault().findMode("output"); //NON-NLS
        if (m != null) {
            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
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

            Mode mode = WindowManager.getDefault().findMode(customModeName);
            if (mode != null) {
                StringBuilder message = new StringBuilder("Found custom mode, setting: "); //NON-NLS
                message.append(customModeName);
                logger.log(Level.INFO, message.toString());
                mode.dockInto(this);

            } else {
                StringBuilder message = new StringBuilder("Could not find mode: "); //NON-NLS
                message.append(customModeName);
                message.append(", will dock into the default one"); //NON-NLS
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

        }

        final DataContentTopComponent dctc = DataContentTopComponent.createUndocked(name, null);

        Mode m = WindowManager.getDefault().findMode("outputFloat"); //NON-NLS
        m.dockInto(dctc);
        dctc.open();
       
        // Queue setting the node on the EDT thread to be done later so the dctc
        // can completely initialize.
        SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

Examples of org.openide.windows.Mode.dockInto()

                {
                    this.open();
                    return;
                }
            }
            mode.dockInto(this);
            this.open();
        }
    }

    @Override
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.