directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
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 GMT
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.



Mime
View raw message