Package org.apache.directory.studio.ldapbrowser.ui.editors.entry

Examples of org.apache.directory.studio.ldapbrowser.ui.editors.entry.EntryEditorInput


            {
                if ( entries.length == 1 )
                {
                    try
                    {
                        EntryEditorInput input = new EntryEditorInput( entries[0] );
                        view.getSite().getPage().openEditor( input, EntryEditor.getId(), false );
                    }
                    catch ( PartInitException e )
                    {
                    }
                }
                else if ( searchResults.length == 1 )
                {
                    try
                    {
                        EntryEditorInput input = new EntryEditorInput( searchResults[0] );
                        view.getSite().getPage().openEditor( input, EntryEditor.getId(), false );
                    }
                    catch ( PartInitException e )
                    {
                    }
                }
                else if ( bookmarks.length == 1 )
                {
                    try
                    {
                        EntryEditorInput input = new EntryEditorInput( bookmarks[0] );
                        view.getSite().getPage().openEditor( input, EntryEditor.getId(), false );
                    }
                    catch ( PartInitException e )
                    {
                    }
View Full Code Here


            {
                EntryEditor editor = ( EntryEditor ) part;
                IEditorInput input = editor.getEditorInput();
                if ( input != null && input instanceof EntryEditorInput )
                {
                    EntryEditorInput eei = ( EntryEditorInput ) input;
                    IEntry entry = eei.getResolvedEntry();
                    if ( entry != null )
                    {
                        objectToSelect = entry.getBrowserConnection().getConnection();
                    }
                }
View Full Code Here

            {
                EntryEditor editor = ( EntryEditor ) part;
                IEditorInput input = editor.getEditorInput();
                if ( input != null && input instanceof EntryEditorInput )
                {
                    EntryEditorInput eei = ( EntryEditorInput ) input;
                    objectToSelect = eei.getInput();
                }
            }
            else if ( part instanceof SearchResultEditor )
            {
                SearchResultEditor editor = ( SearchResultEditor ) part;
View Full Code Here

            {
                if ( entries.length == 1 )
                {
                    try
                    {
                        EntryEditorInput input = new EntryEditorInput( entries[0] );
                        view.getSite().getPage().openEditor( input, EntryEditor.getId(), false );
                    }
                    catch ( PartInitException e )
                    {
                    }
                }
                else if ( searchResults.length == 1 )
                {
                    try
                    {
                        EntryEditorInput input = new EntryEditorInput( searchResults[0] );
                        view.getSite().getPage().openEditor( input, EntryEditor.getId(), false );
                    }
                    catch ( PartInitException e )
                    {
                    }
                }
                else if ( bookmarks.length == 1 )
                {
                    try
                    {
                        EntryEditorInput input = new EntryEditorInput( bookmarks[0] );
                        view.getSite().getPage().openEditor( input, EntryEditor.getId(), false );
                    }
                    catch ( PartInitException e )
                    {
                    }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.ldapbrowser.ui.editors.entry.EntryEditorInput

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.