Package org.openide.util.lookup

Examples of org.openide.util.lookup.AbstractLookup


        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


    public FilterNode(Filter filter) {
        this(filter, new InstanceContent());
    }

    private FilterNode(Filter filter, InstanceContent content) {
        super(Children.LEAF, new AbstractLookup(content));
        content.add(filter);

        content.add(filter.getEditor());
        this.filter = filter;
        filter.getChangedEvent().addListener(new ChangedListener<Filter>() {
View Full Code Here

    public DiagramScene(Action[] actions, DiagramViewModel model) {
        this.actions = actions;
        selectedWidgets = new ArrayList<FigureWidget>();
        content = new InstanceContent();
        lookup = new AbstractLookup(content);
        this.setCheckClipping(true);
        this.getInputBindings().setZoomActionModifiers(0);

        JComponent comp = this.createView();
        comp.setDoubleBuffered(true);
View Full Code Here

    public GraphNode(InputGraph graph) {
        this(graph, new InstanceContent());
    }

    private GraphNode(final InputGraph graph, InstanceContent content) {
        super(Children.LEAF, new AbstractLookup(content));
        this.graph = graph;
        this.setDisplayName(graph.getName());
        content.add(graph);

        final GraphViewer viewer = Lookup.getDefault().lookup(GraphViewer.class);
View Full Code Here

    protected FolderNode(String name, GroupOrganizer organizer, List<String> subFolders, List<Group> groups) {
        this(name, organizer, subFolders, groups, new FolderChildren(), new InstanceContent());
    }

    private FolderNode(String name, GroupOrganizer organizer, List<String> oldSubFolders, final List<Group> groups, FolderChildren children, InstanceContent content) {
        super(children, new AbstractLookup(content));
        children.setParent(this);
        this.content = content;
        this.children = children;
        content.add(new RemoveCookie() {
View Full Code Here

        this(NbBundle.getMessage(ProjectImpl.class, "Project.default.prefix") + " " + id);
    }

    public ProjectImpl(String name) {
        instanceContent = new InstanceContent();
        lookup = new AbstractLookup(instanceContent);
        workspaceIds = new AtomicInteger(1);

        //Init Default Content
        ProjectMetaDataImpl metaDataImpl = new ProjectMetaDataImpl();
        instanceContent.add(metaDataImpl);
View Full Code Here

        this(project, id, NbBundle.getMessage(WorkspaceImpl.class, "Workspace.default.prefix") + " " + id);
    }

    public WorkspaceImpl(ProjectImpl project, int id, String name) {
        this.instanceContent = new InstanceContent();
        this.lookup = new AbstractLookup(instanceContent);
        this.id = id;
        this.project = project;

        //Init Default Content
        WorkspaceInformationImpl workspaceInformationImpl = new WorkspaceInformationImpl(name);
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

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.