【发布时间】:2015-05-28 08:12:37
【问题描述】:
我在我的 Eclipse RCP 应用程序中使用ContainerSelectionDialog。我现在想在对话框中添加标签,里面有一些额外的东西。
这就是我的ContainerSelectionDialog 的样子:
// ...
ContainerSelectionDialog dialog = new ContainerSelectionDialog(
Display.getDefault().getActiveShell(), c, true,
"Please select target folder");
int open = dialog.open();
if (!(open == org.eclipse.jface.window.Window.OK))
return null;
Object[] result = dialog.getResult();
IPath path = (IPath) result[0];
targetFolder = ResourcesPlugin.getWorkspace().getRoot()
.findMember(path);
containerPath = targetFolder.getLocation().toPortableString();
// ...
如何向此对话框添加选项卡?
【问题讨论】:
-
我认为你可以用这个对话框做的最好的事情是在树下面添加额外的控件。
-
你能举个例子吗?
标签: java dialog swt eclipse-rcp jface