Package com.intellij.openapi.wm

Examples of com.intellij.openapi.wm.IdeFrame


  @NotNull public static Project takeProjectFrom(UserDataHolder userDataHolder) {
    return userDataHolder.getUserData(PROJECT_KEY);
  }

  @Nullable public static Editor getSelectedEditor() {
    IdeFrame frame = IdeFocusManager.findInstance().getLastFocusedFrame();
    if (frame == null) return null;

    FileEditorManager instance = FileEditorManager.getInstance(frame.getProject());
    return instance.getSelectedTextEditor();
  }
View Full Code Here


        return "ConfigProjectComponent";
    }

    public void projectOpened() {
        // called when project is opened
        IdeFrame frame = WindowManager.getInstance().getIdeFrame(project);
        final Window window = (Window)frame;
        window.addWindowFocusListener(codeStyleManager);
    }
View Full Code Here

        window.addWindowFocusListener(codeStyleManager);
    }

    public void projectClosed() {
        // called when project is being closed
        IdeFrame frame = WindowManager.getInstance().getIdeFrame(project);
        final Window window = (Window) frame;
        window.removeWindowFocusListener(codeStyleManager);
    }
View Full Code Here

    private void updateStatusBar() {
        ApplicationManager.getApplication().invokeLater(new Runnable() {
            @Override
            public void run() {
                IdeFrame frame = WindowManager.getInstance().getIdeFrame(project);
                StatusBar statusBar = frame.getStatusBar();
                StatusBarWidget widget = statusBar != null ? statusBar.getWidget("LineSeparator") : null;

                if (widget instanceof LineSeparatorPanel) {
                    FileEditorManagerEvent event = new FileEditorManagerEvent(FileEditorManager.getInstance(project),
                                                                              null, null, null, null);
View Full Code Here

TOP

Related Classes of com.intellij.openapi.wm.IdeFrame

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.