List of usage examples for com.intellij.openapi.wm ToolWindowId INSPECTION
String INSPECTION
To view the source code for com.intellij.openapi.wm ToolWindowId INSPECTION.
Click Source Link
From source file:com.android.tools.idea.tests.gui.framework.fixture.InspectionsFixture.java
License:Apache License
private InspectionsFixture(IdeFrameFixture ideFrameFixture, InspectionTree tree) { super(ToolWindowId.INSPECTION, ideFrameFixture.getProject(), ideFrameFixture.robot()); myTree = tree; }
From source file:com.intellij.codeInspection.ex.GlobalInspectionContextImpl.java
License:Apache License
public synchronized void addView(@NotNull InspectionResultsView view, String title) { if (myContent != null) return;//from w ww. j a va 2s.c o m myContentManager.getValue().addContentManagerListener(new ContentManagerAdapter() { @Override public void contentRemoved(ContentManagerEvent event) { if (event.getContent() == myContent) { if (myView != null) { close(false); } myContent = null; } } }); myView = view; myContent = ContentFactory.SERVICE.getInstance().createContent(view, title, false); myContent.setDisposer(myView); ContentManager contentManager = getContentManager(); contentManager.addContent(myContent); contentManager.setSelectedContent(myContent); ToolWindowManager.getInstance(getProject()).getToolWindow(ToolWindowId.INSPECTION).activate(null); }
From source file:com.intellij.codeInspection.ex.GlobalInspectionContextImpl.java
License:Apache License
@Override protected void notifyInspectionsFinished() { if (ApplicationManager.getApplication().isUnitTestMode()) return;/* w ww. ja va 2 s. co m*/ UIUtil.invokeLaterIfNeeded(new Runnable() { @Override public void run() { LOG.info("Code inspection finished"); if (myView != null) { if (!myView.update() && !getUIOptions().SHOW_ONLY_DIFF) { NotificationGroup.toolWindowGroup("Inspection Results", ToolWindowId.INSPECTION, true) .createNotification(InspectionsBundle.message("inspection.no.problems.message"), MessageType.INFO) .notify(getProject()); close(true); } else { addView(myView); } } } }); }
From source file:com.intellij.codeInspection.ex.InspectionManagerEx.java
License:Apache License
public InspectionManagerEx(final Project project) { super(project); if (ApplicationManager.getApplication().isHeadlessEnvironment()) { myContentManager = new NotNullLazyValue<ContentManager>() { @NotNull/* w w w. j a v a 2s. co m*/ @Override protected ContentManager compute() { ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project); toolWindowManager.registerToolWindow(ToolWindowId.INSPECTION, true, ToolWindowAnchor.BOTTOM, project); return ContentFactory.SERVICE.getInstance().createContentManager(new TabbedPaneContentUI(), true, project); } }; } else { myContentManager = new NotNullLazyValue<ContentManager>() { @NotNull @Override protected ContentManager compute() { ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project); ToolWindow toolWindow = toolWindowManager.registerToolWindow(ToolWindowId.INSPECTION, true, ToolWindowAnchor.BOTTOM, project); ContentManager contentManager = toolWindow.getContentManager(); toolWindow.setIcon(AllIcons.Toolwindows.ToolWindowInspection); new ContentManagerWatcher(toolWindow, contentManager); return contentManager; } }; } }
From source file:com.intellij.codeInspection.ui.InspectionResultsView.java
License:Apache License
private boolean isAutoScrollMode() { String activeToolWindowId = ToolWindowManager.getInstance(myProject).getActiveToolWindowId(); return myGlobalInspectionContext.getUIOptions().AUTOSCROLL_TO_SOURCE && (activeToolWindowId == null || activeToolWindowId.equals(ToolWindowId.INSPECTION)); }