Package org.noos.xing.mydoggy.plaf.common.context

Examples of org.noos.xing.mydoggy.plaf.common.context.DefaultMutableContext


        titleBarTabs = new ToolWindowTabPanel(this, descriptor);
        toolWindow.getToolWindowTabs()[0].setSelected(true);

        // Buttons
        titleBarButtons = resourceManager.createInstance(TitleBarButtons.class,
                                                         new DefaultMutableContext(ToolWindowDescriptor.class, descriptor,
                                                                                   ToolWindowContainer.class, this
                                                         ));

        // Set TitleBar content
        titleBar.add(titleBarTabs, "1,1");
View Full Code Here


    }

    protected void initListeners() {
        focusListener = new FocusOwnerPropertyChangeListener(
                                    resourceManager.createInstance(ParentOfQuestion.class,
                                                                   new DefaultMutableContext(ToolWindow.class, toolWindow,
                                                                                             Component.class, container)));

        addPropertyChangeListener("active", new ActivePropertyChangeListener());
        addPropertyChangeListener("type", new TypePropertyChangeListener());
        addPropertyChangeListener("maximized.before", new MaximizedBeforePropertyChangeListener());
View Full Code Here

        toolWindowSource.addPlafPropertyChangeListener("active", new ActivePropertyChangeListener());

        // Register focus listener ....
        focusListener = new FocusOwnerPropertyChangeListener(
                getManager().getResourceManager().createInstance(ParentOfQuestion.class,
                                                                 new DefaultMutableContext(ToolWindow.class, toolWindow,
                                                                                           Component.class, toolWindowPanel))
        );
        KeyboardFocusManager.getCurrentKeyboardFocusManager().addPropertyChangeListener("focusOwner", focusListener);
       
        manager.addInternalPropertyChangeListener("managerWindowAncestor", new PropertyChangeListener() {
View Full Code Here

        return null;
    }

    public MutableContext getContext() {
        DefaultMutableContext context = new DefaultMutableContext();
        context.put(ToolWindowManager.class, this);
        context.put(MyDoggyToolWindowManager.class, this);
        context.put(ResourceManager.class, getResourceManager());

        return context;
    }
View Full Code Here

        return context;
    }

    public MutableContext getContext(Object... entries) {
        DefaultMutableContext context = new DefaultMutableContext(entries);
        context.put(ToolWindowManager.class, this);
        context.put(MyDoggyToolWindowManager.class, this);
        context.put(ResourceManager.class, getResourceManager());

        return context;
    }
View Full Code Here

            callback = dummyCallback;
        }

        try {
            // Setup the context
            DefaultMutableContext context = new DefaultMutableContext();
            context.put(ToolWindowManager.class, toolWindowManager);
            context.put(MyDoggyToolWindowManager.class, toolWindowManager);
            context.put(MergePolicyApplier.class, mergePolicyApplierMap.get(mergePolicy));
            context.put(PersistenceDelegateCallback.class, callback);

            // start parsing..
            masterElementParser.parse(element, context);
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

        Thread.currentThread().setContextClassLoader(bundleClassLoader);

        try {
            XMLWriter writer = new XMLWriter(new OutputStreamWriter(outputStream));

            MutableContext context = new DefaultMutableContext();
            context.put(MyDoggyToolWindowManager.class, toolWindowManager);
            context.put(PersistenceDelegateFilter.class, (filter != null) ? filter : dummyFilter);
            context.put(InternalPersistenceDelegateFilter.class,
                    (filter != null)
                            ? (filter instanceof InternalPersistenceDelegateFilter ? filter : new InternalPersistenceDelegateFilterWrapper(filter))
                            : dummyFilter);
            context.put("standalone", standalone);

            masterElementWriter.write(writer, context);

            writer.flush();
        } catch (Exception e) {
View Full Code Here

        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        try {
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document document = builder.parse(inputStream);

            DefaultMutableContext context = new DefaultMutableContext();
            context.put(ToolWindowManager.class, toolWindowManager);
            context.put(MyDoggyToolWindowManager.class, toolWindowManager);
            context.put(MergePolicyApplier.class, mergePolicyApplierMap.get(mergePolicy));
            context.put(PersistenceDelegateCallback.class, callback);

            masterElementParser.parse(document.getDocumentElement(), context);
        } catch (Exception e) {
            // Restore
            e.printStackTrace();
View Full Code Here

        return null;
    }

    public MutableContext getContext() {
        DefaultMutableContext context = new DefaultMutableContext();
        context.put(ToolWindowManager.class, this);
        context.put(ResourceManager.class, getResourceManager());

        return context;
    }
View Full Code Here

        return context;
    }

    public MutableContext getContext(Object... entries) {
        DefaultMutableContext context = new DefaultMutableContext(entries);
        context.put(ToolWindowManager.class, this);
        context.put(ResourceManager.class, getResourceManager());

        return context;
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.common.context.DefaultMutableContext

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.