From commits-return-23186-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Fri Oct 02 12:47:17 2009 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 11136 invoked from network); 2 Oct 2009 12:47:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 12:47:17 -0000 Received: (qmail 63382 invoked by uid 500); 2 Oct 2009 12:47:17 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 63321 invoked by uid 500); 2 Oct 2009 12:47:17 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 63310 invoked by uid 99); 2 Oct 2009 12:47:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 12:47:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 12:47:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 33F5E23888DB; Fri, 2 Oct 2009 12:46:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r820992 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditor.java Date: Fri, 02 Oct 2009 12:46:53 -0000 To: commits@directory.apache.org From: seelmann@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091002124653.33F5E23888DB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: seelmann Date: Fri Oct 2 12:46:52 2009 New Revision: 820992 URL: http://svn.apache.org/viewvc?rev=820992&view=rev Log: DIRSTUDIO-519: set connection when setting the input Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditor.java Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditor.java URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditor.java?rev=820992&r1=820991&r2=820992&view=diff ============================================================================== --- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditor.java (original) +++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditor.java Fri Oct 2 12:46:52 2009 @@ -67,6 +67,16 @@ @Override + protected void doSetInput( IEditorInput input ) throws CoreException + { + super.doSetInput( input ); + + EntryEditorInput eei = getEntryEditorInput(); + setConnection( eei.getResolvedEntry().getBrowserConnection() ); + } + + + @Override public void createPartControl( Composite parent ) { // don't show the tool bar @@ -142,7 +152,8 @@ */ public void workingCopyModified( Object source ) { - ( ( LdifEntryEditorDocumentProvider ) getDocumentProvider() ).workingCopyModified( getEntryEditorInput(), source ); + ( ( LdifEntryEditorDocumentProvider ) getDocumentProvider() ).workingCopyModified( getEntryEditorInput(), + source ); } @@ -160,7 +171,7 @@ */ return; } - + try { inShowEditorInput = true; @@ -177,7 +188,7 @@ { return; } - + /* * Workaround to make link-with-editor working for the single-tab editor: * The call of firePropertyChange is used to inform the link-with-editor action.