directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r821631 - in /directory/studio/trunk: ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/ ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/ ldap...
Date Sun, 04 Oct 2009 22:42:32 GMT
Author: seelmann
Date: Sun Oct  4 22:42:31 2009
New Revision: 821631

URL: http://svn.apache.org/viewvc?rev=821631&view=rev
Log:
DIRSTUDIO-515: 
- removed IEntry.isDirectoryEntry() method as it isn't really useful
- reactivated RenameValueEditor

Modified:
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserContentProvider.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetConfiguration.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/RenameValueEditor.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/IEntry.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/AbstractEntry.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DummyEntry.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorConfiguration.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorConfiguration.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/BrowserViewLabelDecorator.java
    directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserContentProvider.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserContentProvider.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/browser/BrowserContentProvider.java
Sun Oct  4 22:42:31 2009
@@ -308,7 +308,7 @@
         {
             final IRootDSE rootDSE = ( IRootDSE ) parent;
 
-            if ( !rootDSE.isChildrenInitialized() && rootDSE.isDirectoryEntry() )
+            if ( !rootDSE.isChildrenInitialized() )
             {
                 new StudioBrowserJob( new InitializeChildrenRunnable( new IEntry[]
                     { rootDSE }, false ) ).execute();
@@ -336,7 +336,7 @@
         {
             final IEntry parentEntry = ( IEntry ) parent;
 
-            if ( !parentEntry.isChildrenInitialized() && parentEntry.isDirectoryEntry()
)
+            if ( !parentEntry.isChildrenInitialized() )
             {
                 new StudioBrowserJob( new InitializeChildrenRunnable( new IEntry[]
                     { parentEntry }, false ) ).execute();

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetConfiguration.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetConfiguration.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetConfiguration.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetConfiguration.java
Sun Oct  4 22:42:31 2009
@@ -188,7 +188,7 @@
     {
         if ( valueEditorManager == null )
         {
-            valueEditorManager = new ValueEditorManager( viewer.getTree(), false );
+            valueEditorManager = new ValueEditorManager( viewer.getTree(), false, false );
         }
 
         return valueEditorManager;

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetContentProvider.java
Sun Oct  4 22:42:31 2009
@@ -134,8 +134,7 @@
         {
             IEntry entry = ( IEntry ) inputElement;
 
-            boolean ai = entry.isAttributesInitialized();
-            if ( !ai && entry.isDirectoryEntry() )
+            if ( !entry.isAttributesInitialized() )
             {
                 InitializeAttributesRunnable runnable = new InitializeAttributesRunnable(
entry );
                 StudioBrowserJob job = new StudioBrowserJob( runnable );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/RenameValueEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/RenameValueEditor.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/RenameValueEditor.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/RenameValueEditor.java
Sun Oct  4 22:42:31 2009
@@ -144,7 +144,8 @@
                     Rdn newRdn = renameDialog.getRdn();
                     if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
                     {
-                        new RenameEntryJob( entry, newRdn, new SimulateRenameDialogImpl(
parent.getShell() ) )
+                        IEntry originalEntry = entry.getBrowserConnection().getEntryFromCache(
entry.getDn() );
+                        new RenameEntryJob( originalEntry, newRdn, new SimulateRenameDialogImpl(
parent.getShell() ) )
                             .execute();
                     }
                 }
@@ -237,7 +238,7 @@
      */
     public Object getRawValue( AttributeHierarchy attributeHierarchy )
     {
-        return attributeHierarchy.getEntry().isDirectoryEntry() ? attributeHierarchy.getEntry()
: null;
+        return attributeHierarchy.getEntry();
     }
 
 
@@ -248,7 +249,7 @@
      */
     public Object getRawValue( IValue value )
     {
-        return value.getAttribute().getEntry().isDirectoryEntry() ? value.getAttribute().getEntry()
: null;
+        return value.getAttribute().getEntry();
     }
 
 

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorManager.java
Sun Oct  4 22:42:31 2009
@@ -118,7 +118,7 @@
      *
      * @param parent the composite used to create the value editors
      */
-    public ValueEditorManager( Composite parent, boolean useEntryValueEditor )
+    public ValueEditorManager( Composite parent, boolean useEntryValueEditor, boolean useRenameValueEditor
)
     {
         this.parent = parent;
         userSelectedValueEditor = null;
@@ -147,10 +147,13 @@
         }
 
         // special case: rename editor
-        renameValueEditor = new RenameValueEditor( this.parent, this );
-        renameValueEditor.setValueEditorName( Messages.getString( "ValueEditorManager.RenameEditor"
) ); //$NON-NLS-1$
-        renameValueEditor.setValueEditorImageDescriptor( BrowserCommonActivator.getDefault().getImageDescriptor(
-            BrowserCommonConstants.IMG_RENAME ) );
+        if ( useRenameValueEditor )
+        {
+            renameValueEditor = new RenameValueEditor( this.parent, this );
+            renameValueEditor.setValueEditorName( Messages.getString( "ValueEditorManager.RenameEditor"
) ); //$NON-NLS-1$
+            renameValueEditor.setValueEditorImageDescriptor( BrowserCommonActivator.getDefault().getImageDescriptor(
+                BrowserCommonConstants.IMG_RENAME ) );
+        }
 
         // get default editors from value editor map
         defaultStringSingleLineValueEditor = class2ValueEditors.get( InPlaceTextValueEditor.class.getName()
);
@@ -172,7 +175,10 @@
             {
                 entryValueEditor.dispose();
             }
-            renameValueEditor.dispose();
+            if ( renameValueEditor != null )
+            {
+                renameValueEditor.dispose();
+            }
             defaultStringSingleLineValueEditor.dispose();
             defaultStringMultiLineValueEditor.dispose();
             defaultBinaryValueEditor.dispose();
@@ -310,7 +316,7 @@
         }
 
         // special case RDN attribute: always return rename editor
-        if ( userSelectedValueEditor == null && value.isRdnPart() && value.getAttribute().getEntry().isDirectoryEntry()
)
+        if ( userSelectedValueEditor == null && value.isRdnPart() && renameValueEditor
!= null )
         {
             return renameValueEditor;
         }
@@ -543,7 +549,10 @@
         {
             list.add( entryValueEditor );
         }
-        list.add( renameValueEditor );
+        if ( renameValueEditor != null )
+        {
+            list.add( renameValueEditor );
+        }
 
         return list.toArray( new IValueEditor[list.size()] );
     }

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeAttributesRunnable.java
Sun Oct  4 22:42:31 2009
@@ -128,7 +128,7 @@
             monitor.setTaskName( BrowserCoreMessages.bind( BrowserCoreMessages.jobs__init_entries_task,
new String[]
                 { this.entries[pi].getDn().getUpName() } ) );
             monitor.worked( 1 );
-            if ( entries[pi].getBrowserConnection() != null && entries[pi].isDirectoryEntry()
)
+            if ( entries[pi].getBrowserConnection() != null )
             {
                 initializeAttributes( entries[pi], monitor );
             }
@@ -143,7 +143,7 @@
     {
         for ( IEntry entry : entries )
         {
-            if ( entry.getBrowserConnection() != null && entry.isDirectoryEntry()
&& entry.isAttributesInitialized() )
+            if ( entry.getBrowserConnection() != null && entry.isAttributesInitialized()
)
             {
                 EventRegistry.fireEntryUpdated( new AttributesInitializedEvent( entry ),
this );
             }

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeChildrenRunnable.java
Sun Oct  4 22:42:31 2009
@@ -152,7 +152,7 @@
             monitor.worked( 1 );
 
             IBrowserConnection browserConnection = entry.getBrowserConnection();
-            if ( browserConnection != null && entry.isDirectoryEntry() )
+            if ( browserConnection != null )
             {
                 if ( entry instanceof IRootDSE )
                 {
@@ -180,7 +180,7 @@
     {
         for ( IEntry entry : entries )
         {
-            if ( entry.getBrowserConnection() != null && entry.isDirectoryEntry()
&& entry.isChildrenInitialized() )
+            if ( entry.getBrowserConnection() != null && entry.isChildrenInitialized()
)
             {
                 EventRegistry.fireEntryUpdated( new ChildrenInitializedEvent( entry ), this
);
             }

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/IEntry.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/IEntry.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/IEntry.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/IEntry.java
Sun Oct  4 22:42:31 2009
@@ -86,15 +86,6 @@
 
 
     /**
-     * Indicates whether this entry exists in directory. Otherwise it
-     * is a new entry created from the user and not still written to directory.
-     * 
-     * @return true it this entry is a directory entry
-     */
-    public abstract boolean isDirectoryEntry();
-
-
-    /**
      * Sets whether this entry exists in directory.
      * 
      * @param isDirectoryEntry

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/AbstractEntry.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/AbstractEntry.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/AbstractEntry.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/AbstractEntry.java
Sun Oct  4 22:42:31 2009
@@ -239,15 +239,6 @@
     /**
      * {@inheritDoc}
      */
-    public boolean isDirectoryEntry()
-    {
-        return ( flags & IS_DIRECTORY_ENTRY_FLAG ) != 0;
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
     public void setDirectoryEntry( boolean isDirectoryEntry )
     {
         if ( isDirectoryEntry )

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DelegateEntry.java
Sun Oct  4 22:42:31 2009
@@ -255,22 +255,6 @@
     /**
      * {@inheritDoc}
      */
-    public boolean isDirectoryEntry()
-    {
-        if ( getDelegate() != null )
-        {
-            return getDelegate().isDirectoryEntry();
-        }
-        else
-        {
-            return true;
-        }
-    }
-
-
-    /**
-     * {@inheritDoc}
-     */
     public void addAttribute( IAttribute attributeToAdd )
     {
         if ( getDelegate() != null )

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DummyEntry.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DummyEntry.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DummyEntry.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/impl/DummyEntry.java
Sun Oct  4 22:42:31 2009
@@ -343,15 +343,6 @@
 
 
     /**
-     * This implementation always returns false.
-     */
-    public boolean isDirectoryEntry()
-    {
-        return false;
-    }
-
-
-    /**
      * {@inheritDoc}
      */
     public boolean isReferral()

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditor.java
Sun Oct  4 22:42:31 2009
@@ -124,7 +124,7 @@
             BrowserUIConstants.PLUGIN_ID + "." + "tools_entry_editor" ); //$NON-NLS-1$ //$NON-NLS-2$
 
         // create configuration
-        configuration = new EntryEditorConfiguration();
+        configuration = new EntryEditorConfiguration( this );
 
         // create main widget
         mainWidget = new EntryEditorWidget( this.configuration );

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorConfiguration.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorConfiguration.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorConfiguration.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/EntryEditorConfiguration.java
Sun Oct  4 22:42:31 2009
@@ -38,11 +38,15 @@
 public class EntryEditorConfiguration extends EntryEditorWidgetConfiguration
 {
 
+    private EntryEditor entryEditor;
+    
+    
     /**
      * Creates a new instance of EntryEditorConfiguration.
      */
-    public EntryEditorConfiguration()
+    public EntryEditorConfiguration( EntryEditor entryEditor )
     {
+        this.entryEditor = entryEditor;
     }
 
 
@@ -71,7 +75,7 @@
     {
         if ( valueEditorManager == null )
         {
-            valueEditorManager = new ValueEditorManager( viewer.getTree(), true );
+            valueEditorManager = new ValueEditorManager( viewer.getTree(), true, entryEditor.isAutoSave()
);
         }
 
         return valueEditorManager;

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorConfiguration.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorConfiguration.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorConfiguration.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorConfiguration.java
Sun Oct  4 22:42:31 2009
@@ -242,7 +242,7 @@
     {
         if ( valueEditorManager == null )
         {
-            valueEditorManager = new ValueEditorManager( viewer.getTable(), true );
+            valueEditorManager = new ValueEditorManager( viewer.getTable(), true, true );
         }
         return valueEditorManager;
     }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/BrowserViewLabelDecorator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/BrowserViewLabelDecorator.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/BrowserViewLabelDecorator.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/BrowserViewLabelDecorator.java
Sun Oct  4 22:42:31 2009
@@ -72,15 +72,7 @@
 
         if ( entry != null )
         {
-            if ( !entry.isDirectoryEntry() )
-            {
-                decoration.addOverlay( BrowserUIPlugin.getDefault().getImageDescriptor(
-                    BrowserUIConstants.IMG_OVR_WARNING ), IDecoration.BOTTOM_LEFT );
-            }
-            else
-            {
-                decoration.addOverlay( null, IDecoration.BOTTOM_LEFT );
-            }
+            decoration.addOverlay( null, IDecoration.BOTTOM_LEFT );
         }
     }
 

Modified: directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java?rev=821631&r1=821630&r2=821631&view=diff
==============================================================================
--- directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java
(original)
+++ directory/studio/trunk/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/editor/LdifEditor.java
Sun Oct  4 22:42:31 2009
@@ -240,7 +240,7 @@
         ConnectionEventRegistry.addConnectionUpdateListener( this, ConnectionUIPlugin.getDefault().getEventRunner()
);
         getSite().getPage().addPartListener( this );
 
-        this.valueEditorManager = new ValueEditorManager( getSite().getShell(), false );
+        this.valueEditorManager = new ValueEditorManager( getSite().getShell(), false, false
);
     }
 
 



Mime
View raw message