Package de.mindcrimeilab.xsanalyzer.model

Examples of de.mindcrimeilab.xsanalyzer.model.TreeSelectionValueModelAdapter


    private void createTree() {
        jtStructure = new JTree(new DefaultMutableTreeNode(getMessage("outlineView.structureTree.initialMessage")));
        jtStructure.setCellRenderer(new SchemaElementsRenderer());

        final ValueModel selectionHolder = new TreeSelectionValueModelAdapter(jtStructure.getSelectionModel());
        final ValueModel vModel = new JTreeValueModelAdapter((TreeSelectionValueModelAdapter) selectionHolder);

        final DefaultMutableTreeNodeAccessor accessor = new DefaultMutableTreeNodeAccessor();
        final CommandGroup group = getWindowCommandManager().createCommandGroup("schemaElementsCommandGroup", new Object[] { new TypeHierarchyCommand(vModel), new TypeInspectionCommand(vModel), "separator", "propertiesCommand"});
View Full Code Here


            final FilteredTreeModel filteredModel = new FilteredTreeModel(usedTypesTreeModelAdapter, usedTypesConstraint);
            jtUsedTypes.setModel(filteredModel);
            // jtUsedTypes.setModel(usedTypesTreeModelAdapter);
            numUsedTypes.setValue(usedTypesTreeModelAdapter.getChildCount(usedTypesTreeModelAdapter.getRoot()));

            final ValueModel selectionHolder = new TreeSelectionValueModelAdapter(jtUsedTypes.getSelectionModel());
            final ValueModel vModel = new JTreeValueModelAdapter((TreeSelectionValueModelAdapter) selectionHolder);

            usedTypeHierarchyCommand.setValueModel(vModel);
            usedTypeHierarchyCommand.setAccessor(new DefaultMutableTreeNodeAccessor());
View Full Code Here

TOP

Related Classes of de.mindcrimeilab.xsanalyzer.model.TreeSelectionValueModelAdapter

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.