Package org.apache.directory.ldapstudio.schemas.view.viewers

Examples of org.apache.directory.ldapstudio.schemas.view.viewers.HierarchicalViewer


    public void doubleClick( DoubleClickEvent event )
    {
        IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();

        HierarchicalViewer view = ( HierarchicalViewer ) PlatformUI.getWorkbench().getActiveWorkbenchWindow()
            .getActivePage().findView( HierarchicalViewer.ID );
        TreeViewer viewer = view.getViewer();

        // What we get from the treeViewer is a StructuredSelection
        StructuredSelection selection = ( StructuredSelection ) event.getSelection();

        // Here's the real object (an AttributeTypeWrapper, ObjectClassWrapper or IntermediateNode)
View Full Code Here


    /* (non-Javadoc)
     * @see org.eclipse.jface.action.Action#run()
     */
    public void run()
    {
        HierarchicalViewer viewer = ( HierarchicalViewer ) window.getActivePage().findView(
            Application.PLUGIN_ID + ".view.HierarchicalViewer" ); //$NON-NLS-1$

        if ( type.equals( SortType.alphabetical ) )
        {
            viewer.setOrder( new AlphabeticalOrderComparator() );
        }
        else if ( type.equals( SortType.unalphabetical ) )
        {
            viewer.setOrder( new UnAlphabeticalOrderComparator() );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.schemas.view.viewers.HierarchicalViewer

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.