MyDoggy のドキュメントと例はあまり役に立ちません (TutorialSet にも同じ問題があり、MyDoggySet には判読できないコードがあります)。
エディタを構築していますが、ドッキング可能なフレームが必要です。MyDoggy を使用しましたが、問題があります。ウィンドウのサイズを変更すると、コンテンツのサイズを変更する代わりに、下の ToolWindow のサイズが次のように変更されます。
これに:
ToolWindow の代わりにテキスト エディタ (タブ付きコンポーネント) のサイズを変更するにはどうすればよいですか?
関連するコードを次に示します (混乱して申し訳ありません。この問題に取り組むための数え切れないほどの試みによるものです)。
toolWindowManager = new MyDoggyToolWindowManager();
contentManager = toolWindowManager.getContentManager();
MultiSplitContentManagerUI contentManagerUI = new MyDoggyMultiSplitContentManagerUI();
contentManager.setContentManagerUI(contentManagerUI);
contentManagerUI.setShowAlwaysTab(true);
contentManagerUI.setTabPlacement(TabPlacement.TOP);
errorDisplay = toolWindowManager.registerToolWindow("Errors",
"Errors", null, new ErrorList(), ToolWindowAnchor.BOTTOM);
errorDisplay.setType(ToolWindowType.DOCKED);
DockedTypeDescriptor dockedTypeDescriptor = (DockedTypeDescriptor) errorDisplay
.getTypeDescriptor(ToolWindowType.DOCKED);
dockedTypeDescriptor.setDockLength(100);
dockedTypeDescriptor.setPopupMenuEnabled(true);
RepresentativeAnchorDescriptor<?> representativeAnchorDescriptor = errorDisplay
.getRepresentativeAnchorDescriptor();
representativeAnchorDescriptor.setPreviewEnabled(true);
representativeAnchorDescriptor.setPreviewDelay(1500);
representativeAnchorDescriptor.setPreviewTransparentRatio(0.4f);
errorDisplay.setAvailable(true);
errorDisplay.setActive(true);
newDocument();
for (ToolWindow window : toolWindowManager.getToolWindows())
window.setAvailable(true);
newDocument :
...
Content c = cm.addContent("editor_untitled" + id, "Untitled " + id,
null, new EditorPane(), null, new MultiSplitConstraint(curDoc));
...
TabbedContentUI contentUI = (TabbedContentUI) c.getContentUI();
contentUI.setCloseable(true);
contentUI.setDetachable(true);
contentUI.setTransparentMode(true);
contentUI.setTransparentRatio(0.7f);
contentUI.setTransparentDelay(1000);