This commit is contained in:
peter
2014-07-01 16:48:13 +02:00
parent 366a5c995a
commit 63dc0bad14
2 changed files with 2 additions and 0 deletions
@@ -270,6 +270,7 @@ public abstract class MasterDetailsComponent implements Configurable, DetailsCom
return new Dimension(800, 600);
}
@NotNull
public JComponent createComponent() {
reInitWholePanelIfNeeded();
@@ -753,6 +753,7 @@ public class Tree extends JTree implements ComponentWithEmptyText, ComponentWith
UIUtil.setLineStyleAngled(this);
}
@NotNull
public <T> T[] getSelectedNodes(Class<T> nodeType, @Nullable NodeFilter<T> filter) {
TreePath[] paths = getSelectionPaths();
if (paths == null) return (T[])Array.newInstance(nodeType, 0);