Package org.openide.util.lookup

Examples of org.openide.util.lookup.ProxyLookup


        registerEditor(MarkdownLanguageConfig.MIME_TYPE, true);

        lookupContent = new InstanceContent();
        lookupContent.add(new RenderableImpl(this));
       
        lookup = new ProxyLookup(getCookieSet().getLookup(), new AbstractLookup(lookupContent));
    }
View Full Code Here


        public TextNode(Node node, LilyProject project) throws DataObjectNotFoundException {
            super(node, new FilterNode.Children(node),
                    //The projects system wants the project in the Node's lookup.
                    //NewAction and friends want the original Node's lookup.
                    //Make a merge of both
                    new ProxyLookup(new Lookup[]{Lookups.singleton(project),
                        node.getLookup()
                    }));
            this.project = project;
        }
View Full Code Here

        rangeSliderModel.getChangedEvent().addListener(this);
        container.add(BorderLayout.CENTER, rangeSlider);

        scene = new DiagramScene(actions, rangeSliderModel);
        content = new InstanceContent();
        this.associateLookup(new ProxyLookup(new Lookup[]{scene.getLookup(), new AbstractLookup(content)}));
        content.add(exportCookie);
        content.add(rangeSliderModel);


        findPanel = new FindPanel(diagram.getFigures());
View Full Code Here

    MVCNode(DataFolder folder, DataFilter filter, String name) {
        this(folder, new FilterNode(folder.getNodeDelegate(), folder.createNodeChildren(filter)), name);
    }

    private MVCNode(DataFolder folder, FilterNode node, String name) {
        super(node, new MVCNode.FolderChildren(node, false), new ProxyLookup(folder.getNodeDelegate().getLookup()));

        disableDelegation(DELEGATE_GET_DISPLAY_NAME | DELEGATE_SET_DISPLAY_NAME | DELEGATE_GET_SHORT_DESCRIPTION | DELEGATE_GET_ACTIONS);
        setDisplayName(name);
    }
View Full Code Here

    private static final class PackageNode extends FilterNode {

        public PackageNode(final Node originalNode, boolean isTest) {
            super(originalNode, new MVCNode.FolderChildren(originalNode, isTest),
                    new ProxyLookup(originalNode.getLookup()));

        }
View Full Code Here

        public SourcesNode (Node node, QuorumProject project) throws DataObjectNotFoundException {
            super (node, new ProjectFilteredChildren(node),
                    //The projects system wants the project in the Node's lookup.
                    //NewAction and friends want the original Node's lookup.
                    //Make a merge of both
                    new ProxyLookup (new Lookup[] {Lookups.singleton(project),
                    node.getLookup() }));
            FileObject lookup = node.getLookup().lookup(FileObject.class);
            fileObject = lookup;
            this.project = project;
        }
View Full Code Here

*
*/
class KeywordSearchFilterNode extends FilterNode {

    KeywordSearchFilterNode(HighlightedTextMarkup highlights, Node original) {
        super(original, null, new ProxyLookup(Lookups.singleton(highlights), original.getLookup()));
    }
View Full Code Here

    /**
     * the constructor
     */
    DirectoryTreeFilterNode(Node arg, boolean createChildren) {
        super(arg, DirectoryTreeFilterChildren.createInstance(arg, createChildren),
              new ProxyLookup(Lookups.singleton(new OriginalNode(arg)),
                              arg.getLookup()));
    }
View Full Code Here

TOP

Related Classes of org.openide.util.lookup.ProxyLookup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.