0
我想在Eclipse RCE應用程序中使用JFace實現選項卡式對話框。其中一個選項卡的內容應該是ContainerSelectionDialog
,其內容如下所示:帶有標籤的JFace對話框
ContainerSelectionDialog dialog = new ContainerSelectionDialog(
Display.getDefault().getActiveShell(), container, 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();
這怎麼可能imlement一個標籤對話框,並添加ContainerSelectionDialog
的標籤之一?