You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2009/10/02 14:46:53 UTC
svn commit: r820992 -
/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditor.java
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.