Examples of JTreeValueModelAdapter


Examples of de.mindcrimeilab.xsanalyzer.model.JTreeValueModelAdapter

    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"});

        jtStructure.addMouseListener(new PopupMenuMouseListener() {
View Full Code Here

Examples of de.mindcrimeilab.xsanalyzer.model.JTreeValueModelAdapter

            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());

            usedTypeInspectionCommand.setValueModel(vModel);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.