本文整理汇总了Java中org.openide.loaders.DataFolder.createNodeChildren方法的典型用法代码示例。如果您正苦于以下问题:Java DataFolder.createNodeChildren方法的具体用法?Java DataFolder.createNodeChildren怎么用?Java DataFolder.createNodeChildren使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.openide.loaders.DataFolder
的用法示例。
在下文中一共展示了DataFolder.createNodeChildren方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GroupNode
import org.openide.loaders.DataFolder; //导入方法依赖的package包/类
public GroupNode(Project project, SourceGroup group, boolean isProjectDir, DataFolder dataFolder ) {
super( dataFolder.getNodeDelegate(),
dataFolder.createNodeChildren( VISIBILITY_QUERY_FILTER ),
createLookup(project, group, dataFolder, isProjectDir));
this.pi = ProjectUtils.getInformation( project );
this.group = group;
this.isProjectDir = isProjectDir;
if(isProjectDir) {
LogicalViewProvider lvp = project.getLookup().lookup(LogicalViewProvider.class);
// used to retrieve e.g. actions in case of a folder representing a project,
// so that a projects context menu is the same is in a logical view
this.projectDelegateNode = lvp != null ? lvp.createLogicalView() : null;
} else {
this.projectDelegateNode = null;
}
pi.addPropertyChangeListener(WeakListeners.propertyChange(this, pi));
group.addPropertyChangeListener( WeakListeners.propertyChange( this, group ) );
}
示例2: PackageNode
import org.openide.loaders.DataFolder; //导入方法依赖的package包/类
public PackageNode( FileObject root, DataFolder dataFolder, boolean empty ) {
super( dataFolder.getNodeDelegate(),
empty ? Children.LEAF : dataFolder.createNodeChildren( NO_FOLDERS_FILTER ),
new ProxyLookup(
Lookups.singleton(new NoFoldersContainer (dataFolder)),
dataFolder.getNodeDelegate().getLookup(),
Lookups.singleton(SearchInfoDefinitionFactory.createFlatSearchInfo(
dataFolder.getPrimaryFile()))));
this.root = root;
this.dataFolder = dataFolder;
this.isDefaultPackage = root.equals( dataFolder.getPrimaryFile() );
this.accRes = new AtomicReference<>();
}
示例3: getTemplateRootNode
import org.openide.loaders.DataFolder; //导入方法依赖的package包/类
static Node getTemplateRootNode () {
if (templatesRootNode == null) {
DataFolder df = DataFolder.findFolder (getTemplatesRoot ());
templatesRootNode = new TemplateNode (new FilterNode (df.getNodeDelegate (), df.createNodeChildren (new TemplateFilter ())));
}
return templatesRootNode;
}
示例4: TreeRootNode
import org.openide.loaders.DataFolder; //导入方法依赖的package包/类
private TreeRootNode(DataFolder folder, SourceGroup g, boolean reduced) {
this(new FilterNode(folder.getNodeDelegate(), reduced ? Children.LEAF : folder.createNodeChildren(new GroupDataFilter(g))), folder, g, reduced);
}
示例5: createFolderActionNode
import org.openide.loaders.DataFolder; //导入方法依赖的package包/类
static FolderActionNode createFolderActionNode(DataFolder df) {
return new FolderActionNode(new AbstractNode(df.createNodeChildren(new ActionIconDataFilter())));
}
示例6: ViewItemNode
import org.openide.loaders.DataFolder; //导入方法依赖的package包/类
public ViewItemNode(DataFolder folder, String includes, String excludes, String name, String displayName) {
super(folder.getNodeDelegate(), folder.createNodeChildren(new GroupDataFilter(folder.getPrimaryFile(), includes, excludes)));
this.name = name;
this.displayName = displayName;
}