本文整理汇总了Java中org.netbeans.spi.project.ui.support.NodeFactorySupport.createCompositeChildren方法的典型用法代码示例。如果您正苦于以下问题:Java NodeFactorySupport.createCompositeChildren方法的具体用法?Java NodeFactorySupport.createCompositeChildren怎么用?Java NodeFactorySupport.createCompositeChildren使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.spi.project.ui.support.NodeFactorySupport
的用法示例。
在下文中一共展示了NodeFactorySupport.createCompositeChildren方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RootNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@Messages({"# {0} - folder", "HINT_project_root_node=Module project in {0}"})
RootNode(@NonNull NbModuleProject project) {
// XXX add a NodePathResolver impl to lookup
super(NodeFactorySupport.createCompositeChildren(project, "Projects/org-netbeans-modules-apisupport-project/Nodes"),
Lookups.fixed(project, DataFolder.findFolder( project.getProjectDirectory() ),
project.getProjectDirectory()));
this.project = project;
boolean osgi = false;
Manifest man = project.getManifest();
if (man != null) {
Attributes attrs = man.getMainAttributes();
if (attrs != null) {
osgi = attrs.getValue(ManifestManager.BUNDLE_SYMBOLIC_NAME) != null;
}
}
setIconBaseWithExtension(
osgi ? NbModuleProject.NB_PROJECT_OSGI_ICON_PATH :
NbModuleProject.NB_PROJECT_ICON_PATH
);
pi = ProjectUtils.getInformation(project); // must keep reference to PI, it is a wrapper and would be immediately GCed
setDisplayName(pi.getDisplayName());
setShortDescription(HINT_project_root_node(FileUtil.getFileDisplayName(project.getProjectDirectory())));
pi.addPropertyChangeListener(WeakListeners.propertyChange(this, pi));
}
示例2: ProjectNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, DlangProject project)
throws DataObjectNotFoundException {
// super(node,
// new FilterNode.Children(node),
// new ProxyLookup(
// new Lookup[]{
// Lookups.singleton(project),
// node.getLookup()
// }));
super(node,
NodeFactorySupport.createCompositeChildren(
project,
"Projects/org-dlang-project/Nodes"),
// new FilterNode.Children(node),
new ProxyLookup(
new Lookup[]{
Lookups.singleton(project),
node.getLookup()
}));
this.project = project;
}
示例3: SuiteRootNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
SuiteRootNode(final SuiteProject suite) {
super(NodeFactorySupport.createCompositeChildren(suite, "Projects/org-netbeans-modules-apisupport-project-suite/Nodes"),
Lookups.fixed(new Object[] {suite, DataFolder.findFolder( suite.getProjectDirectory() ),
suite.getProjectDirectory()}));
this.suite = suite;
info = ProjectUtils.getInformation(suite);
info.addPropertyChangeListener(WeakListeners.propertyChange(this, info));
}
示例4: MavenProjectNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public MavenProjectNode(Lookup lookup, NbMavenProjectImpl proj) {
super(NodeFactorySupport.createCompositeChildren(proj, "Projects/org-netbeans-modules-maven/Nodes"), lookup); //NOI18N
this.project = proj;
info = ProjectUtils.getInformation(project);
info.addPropertyChangeListener(new PropertyChangeListener() {
@Override public void propertyChange(PropertyChangeEvent event) {
String prop = event.getPropertyName();
if (ProjectInformation.PROP_NAME.equals(prop)) {
fireNameChange(null, null);
} else if (ProjectInformation.PROP_DISPLAY_NAME.equals(prop)) {
fireDisplayNameChange(null, getDisplayName());
} else if (ProjectInformation.PROP_ICON.equals(prop)) {
fireIconChange();
fireOpenedIconChange();
}
}
});
proj.getLookup().lookup(ProjectProblemsProvider.class).addPropertyChangeListener(new PropertyChangeListener() {
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (ProjectProblemsProvider.PROP_PROBLEMS.equals(evt.getPropertyName())) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
fireNameChange(null, getName());
fireDisplayNameChange(null, getDisplayName());
fireShortDescriptionChange(null, getShortDescription());
}
});
}
}
});
}
示例5: LogicalViewRootNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@SuppressWarnings("LeakingThisInConstructor")
LogicalViewRootNode(@NonNull final Lookup lkp) {
super(NodeFactorySupport.createCompositeChildren(
project,
String.format("Projects/%s/Nodes",projectType)), //NOI18N
lkp);
broken = ProjectProblems.isBroken(project);
compileOnSaveDisabled = isCompileOnSaveDisabled();
addChangeListener(WeakListeners.change(this, LogicalViewProviderImpl.this));
final ProjectInformation pi = project.getLookup().lookup(ProjectInformation.class);
info = pi != null ? pi : new SimpleInfo(project);
info.addPropertyChangeListener(WeakListeners.propertyChange(this, info));
}
示例6: RootNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@SuppressWarnings("LeakingThisInConstructor")
public RootNode(FreeformProject p) {
super(NodeFactorySupport.createCompositeChildren(p, "Projects/org-netbeans-modules-ant-freeform/Nodes"), Lookups.singleton(p));
this.p = p;
info = ProjectUtils.getInformation(p);
info.addPropertyChangeListener(WeakListeners.propertyChange(this, info));
}
示例7: ProjectNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, PlayProject project) throws DataObjectNotFoundException {
super(node,
NodeFactorySupport.createCompositeChildren(
project, "Projects/com-qualixium-playnb/Nodes"),
new ProxyLookup(
new Lookup[]{
Lookups.singleton(project), node.getLookup()
}));
this.project = project;
this.actionsProcessor = new ActionsProcessor(project);
}
示例8: ProjectNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, AnsibleProject project) throws DataObjectNotFoundException {
super(node,
NodeFactorySupport.createCompositeChildren( project, "Projects/de-javastream-ansible/Nodes"),
new ProxyLookup(
new Lookup[]{
Lookups.singleton(project),
node.getLookup()
}
)
);
this.project = project;
}
示例9: createLogicalView
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
@Override
public Node createLogicalView() {
String layerNodesFolder = BMProject.getLayerNodesPath(project.getType());
Children projectChildren = NodeFactorySupport.createCompositeChildren(project, layerNodesFolder);
BMProjectNode root = new BMProjectNode(new AbstractNode(projectChildren), project);
rootNodeRef = new WeakReference<>(root);
return root;
}
示例10: ProjectNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, BaciBeansProject project)
throws DataObjectNotFoundException {
super(node,
NodeFactorySupport.createCompositeChildren(
project,
"Projects/edu-pepperdine-modules-baci/Nodes"),
//new FilterNode.Children(node),
new ProxyLookup(
new Lookup[]{
Lookups.singleton(project),
node.getLookup()
}));
this.project = project;
}
示例11: SourceNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public SourceNode(Node node, CacheProject project) {
super(node,
NodeFactorySupport.createCompositeChildren(project, "Projects/org-nbstudio-project-sources/Nodes"),
new ProxyLookup(
new Lookup[]{
Lookups.singleton(project),
node.getLookup()
}));
setDisplayName("Source");
}
示例12: ProjectNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, CacheProject project) throws DataObjectNotFoundException {
super(node,
NodeFactorySupport.createCompositeChildren(project, "Projects/org-nbstudio-project/Nodes"),
// new FilterNode.Children(node),
new ProxyLookup(
new Lookup[]{
Lookups.singleton(project),
node.getLookup()
}
));
this.project = project;
}
示例13: JReserveProjectRootNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
private JReserveProjectRootNode(Project project, Node node) {
super(node,
NodeFactorySupport.createCompositeChildren(project, LAYER_PATH),
new ProxyLookup(project.getLookup(), node.getLookup())
);
setDisplayName(ProjectUtils.getInformation(project).getDisplayName());
EventBusManager.getDefault().subscribe(this);
}
示例14: ProjectNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public ProjectNode(Node node, JBakeProject project) throws DataObjectNotFoundException {
super(node,NodeFactorySupport.createCompositeChildren( project, "Projects/org-jbake-project/Nodes")
// new FilterNode.Children(node)
, new ProxyLookup(new Lookup[]{Lookups.singleton(project), node.getLookup()}));
this.project = project;
}
示例15: TextNode
import org.netbeans.spi.project.ui.support.NodeFactorySupport; //导入方法依赖的package包/类
public TextNode(Node node, GoProject project) throws DataObjectNotFoundException {
super(NodeFactorySupport.createCompositeChildren(project, "Projects/" + GoProject.GO_PROJECT_ID + "/Nodes"),
Lookups.singleton(project));
this.project = project;
}