Package org.openide.util.lookup

Examples of org.openide.util.lookup.AbstractLookup


    private AbstractLookup lookup;
    private InstanceContent content;

    public RankingEventBus() {
        content = new InstanceContent();
        lookup = new AbstractLookup(content);
    }
View Full Code Here


        init();
    }

    public void init() {
        instanceContent = new InstanceContent();
        lookup = new AbstractLookup(instanceContent);

        //Init Default Content
        ProjectMetaDataImpl metaDataImpl = new ProjectMetaDataImpl();
        add(metaDataImpl);
        ProjectInformationImpl projectInformationImpl = new ProjectInformationImpl(this);
View Full Code Here

    private InstanceContent content;
    private Map<Class<? extends Filter>, FilterBuilder> buildersMap;

    public FilterLibraryImpl() {
        content = new InstanceContent();
        lookup = new AbstractLookup(content);

        for (FilterBuilder builder : Lookup.getDefault().lookupAll(FilterBuilder.class)) {
            content.add(builder);
        }
View Full Code Here

        init(project);
    }

    public void init(Project project) {
        instanceContent = new InstanceContent();
        lookup = new AbstractLookup(instanceContent);

        //Init Default Content
        WorkspaceInformationImpl workspaceInformationImpl = new WorkspaceInformationImpl(project);
        add(workspaceInformationImpl);
    }
View Full Code Here

    Result<MyThing> result;

    public Lookup getLookup() {
        if(lookup == null) {
            ic = new InstanceContent();
            lookup = new AbstractLookup (ic);
        }
        return lookup;
    }
View Full Code Here

            return p;
        }

        private Driver(Class<T> clazz) {
            ic = new InstanceContent();
            lookup = new AbstractLookup(ic);
            lookupResult = lookup.lookupResult(clazz);
        }
View Full Code Here

        init(img);
    }

    private void init(BufferedImage img) {
        saveLookup = new InstanceContent();
        associateLookup(new ProxyLookup(new AbstractLookup(content),
                new AbstractLookup(saveLookup), Lookups.singleton(this)));
        content.add(dataInfo);
        final Parameters params = new Parameters(dataInfo, this);
        content.add(params);
        final ColorMapper cm = new ColorMapper(params, this);
        content.add(cm);
View Full Code Here

        setChildren( createProjectChildren( getLookup().lookup( NodeJSProject.class ) ) );
    }

    @SuppressWarnings ("LeakingThisInConstructor") //NOI18N
    public RootNode ( NodeJSProject project, InstanceContent content ) {
        super( createProjectChildren( project ), new ProxyLookup( project.getLookup(), new AbstractLookup( content ) ) );
        content.add( this );
        final ProjectInformation info = getLookup().lookup( ProjectInformation.class );
        setDisplayName( info.getDisplayName() );
        info.addPropertyChangeListener( new PropertyChangeListener() {
            @Override
View Full Code Here

        public GenericNode ( Key key, ChildFactory<?> factory, NodeJSProject project ) {
            this( key, factory, project, new InstanceContent() );
        }

        public GenericNode ( Key key, ChildFactory<?> factory, NodeJSProject project, InstanceContent content ) {
            this( key, factory, project, content, new Mut( Lookups.fixed( project, key ), new AbstractLookup( content ) ) );
        }
View Full Code Here

        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

TOP

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

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.