Package de.mindcrimeilab.util

Examples of de.mindcrimeilab.util.DefaultMutableTreeNodeAccessor


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

            @Override
View Full Code Here


    private final XsPropertiesSelectionListener xsPropertiesSelectionListener;

    public TypeUsageView() {
        unusedTypesConstraint = new SchemaTypeConstraint();
        usedTypesConstraint = new SchemaTypeConstraint(new DefaultMutableTreeNodeAccessor());
        xsPropertiesSelectionListener = new XsPropertiesSelectionListener(xsElementPropertiesExecutor);
    }
View Full Code Here

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

            usedTypeHierarchyCommand.setValueModel(vModel);
            usedTypeHierarchyCommand.setAccessor(new DefaultMutableTreeNodeAccessor());

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

TOP

Related Classes of de.mindcrimeilab.util.DefaultMutableTreeNodeAccessor

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.