mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[lang] Dataflow to/from here: icon for toolwindows; i18n
GitOrigin-RevId: 728fbbfb31557a0e58742412f1c047f409215605
This commit is contained in:
committed by
intellij-monorepo-bot
parent
35c14b4780
commit
99e1658136
@@ -330,6 +330,8 @@ todo.comment.problem.descriptor=TODO comment <code>#ref</code> #loc
|
||||
long.line.display.name=Line is longer than allowed by code style
|
||||
tab.title.analyze.dataflow.to.here=Analyze Dataflow to {0}
|
||||
tab.title.analyze.dataflow.from=Analyze Dataflow from {0}
|
||||
toolwindow.name.dataflow.to.here=Analyze Dataflow To
|
||||
toolwindow.name.dataflow.from.here=Analyze Dataflow From
|
||||
tab.title.grouped.by.value=\ (Grouped by Value)
|
||||
this.class.scope.name=This Class
|
||||
popup.title.choose.target=Choose Target
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.intellij.slicer;
|
||||
|
||||
import com.intellij.BundleBase;
|
||||
import com.intellij.analysis.AnalysisUIOptions;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.ide.impl.ContentManagerWatcher;
|
||||
import com.intellij.lang.LangBundle;
|
||||
import com.intellij.openapi.components.PersistentStateComponent;
|
||||
@@ -12,6 +13,7 @@ import com.intellij.openapi.components.StoragePathMacros;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.NlsContexts;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.wm.RegisterToolWindowTask;
|
||||
import com.intellij.openapi.wm.ToolWindow;
|
||||
import com.intellij.openapi.wm.ToolWindowAnchor;
|
||||
import com.intellij.openapi.wm.ToolWindowManager;
|
||||
@@ -52,7 +54,8 @@ public final class SliceManager implements PersistentStateComponent<SliceManager
|
||||
private ContentManager getContentManager(boolean dataFlowToThis) {
|
||||
if (dataFlowToThis) {
|
||||
if (myBackContentManager == null) {
|
||||
ToolWindow backToolWindow = ToolWindowManager.getInstance(myProject).registerToolWindow(BACK_TOOLWINDOW_ID, true, ToolWindowAnchor.BOTTOM, myProject);
|
||||
ToolWindow backToolWindow = ToolWindowManager.getInstance(myProject).registerToolWindow(RegisterToolWindowTask.closable(
|
||||
BACK_TOOLWINDOW_ID, LangBundle.messagePointer("toolwindow.name.dataflow.to.here"), AllIcons.Toolwindows.ToolWindowAnalyzeDataflow, ToolWindowAnchor.BOTTOM));
|
||||
myBackContentManager = backToolWindow.getContentManager();
|
||||
ContentManagerWatcher.watchContentManager(backToolWindow, myBackContentManager);
|
||||
}
|
||||
@@ -60,7 +63,8 @@ public final class SliceManager implements PersistentStateComponent<SliceManager
|
||||
}
|
||||
|
||||
if (myForthContentManager == null) {
|
||||
ToolWindow forthToolWindow = ToolWindowManager.getInstance(myProject).registerToolWindow(FORTH_TOOLWINDOW_ID, true, ToolWindowAnchor.BOTTOM, myProject);
|
||||
ToolWindow forthToolWindow = ToolWindowManager.getInstance(myProject).registerToolWindow(RegisterToolWindowTask.closable(
|
||||
FORTH_TOOLWINDOW_ID, LangBundle.messagePointer("toolwindow.name.dataflow.from.here"), AllIcons.Toolwindows.ToolWindowAnalyzeDataflow, ToolWindowAnchor.BOTTOM));
|
||||
myForthContentManager = forthToolWindow.getContentManager();
|
||||
ContentManagerWatcher.watchContentManager(forthToolWindow, myForthContentManager);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user