directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r827984 - in /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio: entryeditors/ ldapbrowser/ui/editors/entry/ ldapbrowser/ui/editors/schemabrowser/ ldapbrowser/ui/editors/searchresult/ ldapbrowser/ui/views/brows...
Date Wed, 21 Oct 2009 12:16:29 GMT
Author: pamarcelot
Date: Wed Oct 21 12:16:28 2009
New Revision: 827984

URL: http://svn.apache.org/viewvc?rev=827984&view=rev
Log:
Code formatting.

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/IEntryEditor.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/entry/LdifEntryEditorDocumentProvider.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorNavigationLocation.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorCellModifier.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DragListener.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DropListener.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/LinkWithEditorAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewUniversalListener.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsView.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ClearAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ExportAction.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/Messages.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/SearchLogsViewUniversalListener.java
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ImportLdifWizard.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorUtils.java Wed Oct 21 12:16:28 2009
@@ -91,8 +91,7 @@
                 else
                 {
                     return NLS.bind( Messages.getString( "EntryEditorNavigationLocation.Entry" ), //$NON-NLS-1$
-                        input.getEntryInput().getDn().getUpName() )
-                        + connectionName;
+                        input.getEntryInput().getDn().getUpName() ) + connectionName;
                 }
             }
             else if ( input.getSearchResultInput() != null )

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/IEntryEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/IEntryEditor.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/IEntryEditor.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/IEntryEditor.java Wed Oct 21 12:16:28 2009
@@ -41,14 +41,14 @@
      */
     public boolean canHandle( IEntry entry );
 
-    
+
     /**
      * Informs the entry editor that the working copy was modified.
      * 
      * @param source the source of the modification, may be null
      */
     public void workingCopyModified( Object source );
-    
+
 
     /**
      * Gets the entry editor input.

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=827984&r1=827983&r2=827984&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 Wed Oct 21 12:16:28 2009
@@ -39,8 +39,8 @@
 {
 
     private EntryEditor entryEditor;
-    
-    
+
+
     /**
      * Creates a new instance of EntryEditorConfiguration.
      */

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorDocumentProvider.java Wed Oct 21 12:16:28 2009
@@ -103,7 +103,7 @@
         try
         {
             LdapDN newDN = new LdapDN( records[0].getDnLine().getUnfoldedDn() );
-            if(!newDN.equals( input.getResolvedEntry().getDn() ))
+            if ( !newDN.equals( input.getResolvedEntry().getDn() ) )
             {
                 throw new CoreException( new Status( IStatus.ERROR, BrowserUIConstants.PLUGIN_ID, NLS.bind( Messages
                     .getString( "LdifEntryEditorDocumentProvider.ModDnNotSupported" ), records[0].getInvalidString() ) ) ); //$NON-NLS-1$
@@ -114,7 +114,7 @@
             throw new CoreException( new Status( IStatus.ERROR, BrowserUIConstants.PLUGIN_ID, Messages
                 .getString( "LdifEntryEditorDocumentProvider.InvalidDN" ) ) ); //$NON-NLS-1$
         }
-        
+
         IStatus status = input.saveSharedWorkingCopy( false, editor );
         if ( status != null && !status.isOK() )
         {

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorNavigationLocation.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorNavigationLocation.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorNavigationLocation.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/entry/LdifEntryEditorNavigationLocation.java Wed Oct 21 12:16:28 2009
@@ -20,12 +20,14 @@
 
 package org.apache.directory.studio.ldapbrowser.ui.editors.entry;
 
+
 import org.apache.directory.studio.entryeditors.EntryEditorInput;
 import org.apache.directory.studio.entryeditors.EntryEditorUtils;
 import org.eclipse.ui.INavigationLocation;
 import org.eclipse.ui.texteditor.ITextEditor;
 import org.eclipse.ui.texteditor.TextSelectionNavigationLocation;
 
+
 /**
  * Represents the text selection context marked for the user in the navigation history.
  *
@@ -35,11 +37,12 @@
 public class LdifEntryEditorNavigationLocation extends TextSelectionNavigationLocation
 {
 
-    public LdifEntryEditorNavigationLocation(ITextEditor part, boolean initialize)
+    public LdifEntryEditorNavigationLocation( ITextEditor part, boolean initialize )
     {
-        super(part, initialize);
+        super( part, initialize );
     }
-    
+
+
     /**
      * {@inheritDoc}
      */
@@ -48,7 +51,8 @@
         String text = EntryEditorUtils.getHistoryNavigationText( getEntryEditorInput() );
         return text != null ? text : super.getText();
     }
-    
+
+
     /**
      * {@inheritDoc}
      */
@@ -81,7 +85,8 @@
             return entry.equals( other );
         }
     }
-    
+
+
     private EntryEditorInput getEntryEditorInput()
     {
         Object editorInput = getInput();

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/schemabrowser/Messages.java Wed Oct 21 12:16:28 2009
@@ -20,23 +20,32 @@
 
 package org.apache.directory.studio.ldapbrowser.ui.editors.schemabrowser;
 
+
 import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
-public class Messages {
-	private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.ui.editors.schemabrowser.messages"; //$NON-NLS-1$
-
-	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
-			.getBundle(BUNDLE_NAME);
-
-	private Messages() {
-	}
 
-	public static String getString(String key) {
-		try {
-			return RESOURCE_BUNDLE.getString(key);
-		} catch (MissingResourceException e) {
-			return '!' + key + '!';
-		}
-	}
+public class Messages
+{
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.ldapbrowser.ui.editors.schemabrowser.messages"; //$NON-NLS-1$
+
+    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+    private Messages()
+    {
+    }
+
+
+    public static String getString( String key )
+    {
+        try
+        {
+            return RESOURCE_BUNDLE.getString( key );
+        }
+        catch ( MissingResourceException e )
+        {
+            return '!' + key + '!';
+        }
+    }
 }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorCellModifier.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorCellModifier.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorCellModifier.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorCellModifier.java Wed Oct 21 12:16:28 2009
@@ -155,12 +155,12 @@
             }
             else if ( ah != null && newRawValue == null )
             {
-                List<IValue> values = new ArrayList<IValue>(); 
-                for(IAttribute attribute : ah.getAttributes())
+                List<IValue> values = new ArrayList<IValue>();
+                for ( IAttribute attribute : ah.getAttributes() )
                 {
                     for ( IValue value : attribute.getValues() )
                     {
-                        values.add(value);
+                        values.add( value );
                     }
                 }
                 new CompoundModification().deleteValues( values );

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/editors/searchresult/SearchResultEditorQuickFilterWidget.java Wed Oct 21 12:16:28 2009
@@ -108,7 +108,7 @@
         // Reseting the layout of the composite to be displayed correctly
         GridData compositeGridData = new GridData( SWT.FILL, SWT.NONE, true, false );
         composite.setLayoutData( compositeGridData );
-        
+
         innerComposite = BaseWidgetUtils.createColumnContainer( this.composite, 2, 1 );
 
         quickFilterValueText = new Text( innerComposite, SWT.BORDER );
@@ -154,7 +154,7 @@
         compositeGridData.heightHint = 0;
         compositeGridData.widthHint = 0;
         composite.setLayoutData( compositeGridData );
-        
+
         if ( !"".equals( quickFilterValueText.getText() ) ) //$NON-NLS-1$
         {
             quickFilterValueText.setText( "" ); //$NON-NLS-1$

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DragListener.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DragListener.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DragListener.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DragListener.java Wed Oct 21 12:16:28 2009
@@ -20,6 +20,7 @@
 
 package org.apache.directory.studio.ldapbrowser.ui.views.browser;
 
+
 import org.eclipse.swt.dnd.DragSourceListener;
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DropListener.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DropListener.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DropListener.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/DropListener.java Wed Oct 21 12:16:28 2009
@@ -20,6 +20,7 @@
 
 package org.apache.directory.studio.ldapbrowser.ui.views.browser;
 
+
 import org.eclipse.swt.dnd.DropTargetListener;
 
 
@@ -33,244 +34,244 @@
  */
 public class DropListener /* implements DropTargetListener, ModelModifier */
 {/*
- * 
- * private Shell shell; private Clipboard systemClipboard; private
- * InternalClipboard internalClipboard;
- * 
- * 
- * public DropListener(Shell shell, Clipboard systemClipboard,
- * InternalClipboard internalClipboard) { this.shell = shell;
- * this.systemClipboard = systemClipboard; this.internalClipboard =
- * internalClipboard;
- *  } public void dispose() { this.shell = null; this.systemClipboard =
- * null; this.internalClipboard = null;
- *  }
- * 
- * private int dragOperation = DND.DROP_NONE;
- * 
- * public void dragEnter(DropTargetEvent event) {
- * //System.out.println("dragEnter: " + event.detail); dragOperation =
- * event.detail; event.currentDataType =
- * BrowserTransfer.getInstance().getSupportedTypes()[0];
- * this.check(event); }
- * 
- * public void dragLeave(DropTargetEvent event) {
- * //System.out.println("dragLeave: " + event.detail); dragOperation =
- * DND.DROP_NONE; }
- * 
- * public void dragOperationChanged(DropTargetEvent event) {
- * //System.out.println("dragOperationChanged: " + event.detail);
- * dragOperation = event.detail; this.check(event); }
- * 
- * public void dragOver(DropTargetEvent event) {
- * //System.out.println("dragOver: " + event.item.getData());
- * 
- * this.check(event);
- * 
- * //System.out.println("dragOver: " + event.detail);
- * 
- * //System.out.println();
- * //System.out.println(event.item.getClass().getName());
- * //System.out.println(event.item.getData().getClass().getName());
- * //System.out.println(event.currentDataType.type); }
- * 
- * private void check(DropTargetEvent event) { if(event.item != null &&
- * event.item.getData() != null) { if
- * (BrowserTransfer.getInstance().isSupportedType(event.currentDataType)) {
- * if(event.item.getData() instanceof ISearch &&
- * this.internalClipboard.getObjectToTransfer() instanceof ISearch[]) {
- * event.detail = dragOperation; return; } else if(event.item.getData()
- * instanceof BrowserCategory &&
- * ((BrowserCategory)event.item.getData()).getType() ==
- * BrowserCategory.TYPE_SEARCHES &&
- * this.internalClipboard.getObjectToTransfer() instanceof ISearch[]) {
- * event.detail = dragOperation; return; } else if(event.item.getData()
- * instanceof IEntry && this.internalClipboard.getObjectToTransfer()
- * instanceof IEntry[]) { event.detail = dragOperation;
- * 
- * IEntry[] entries =
- * (IEntry[])this.internalClipboard.getObjectToTransfer(); for(int i=0;
- * i<entries.length; i++) { if(entries[i].hasChildren()) { event.detail =
- * DND.DROP_COPY; return; } }
- * 
- * return; } else if(event.item.getData() instanceof IEntry &&
- * this.internalClipboard.getObjectToTransfer() instanceof
- * ISearchResult[]) { event.detail = dragOperation;
- * 
- * ISearchResult[] srs =
- * (ISearchResult[])this.internalClipboard.getObjectToTransfer();
- * for(int i=0; i<srs.length; i++) {
- * if(!srs[i].getEntry().hasChildren()) { event.detail = DND.DROP_COPY;
- * return; } }
- * 
- * return; } else { event.detail = DND.DROP_NONE; } } else {
- * event.detail = DND.DROP_NONE; } } else { event.detail =
- * DND.DROP_NONE; } }
- * 
- * public void drop(DropTargetEvent event) {
- * 
- * //System.out.println("drop: " + event);
- * 
- * try {
- * 
- * if
- * (BrowserTransfer.getInstance().isSupportedType(event.currentDataType) &&
- * event.data instanceof String &&
- * this.internalClipboard.getClass().getName().equals(event.data)) {
- * 
- * if(event.detail == DND.DROP_MOVE) {
- * this.internalClipboard.setOperationType(InternalClipboard.TYPE_MOVE_OPERATION); }
- * else if(event.detail == DND.DROP_COPY) {
- * this.internalClipboard.setOperationType(InternalClipboard.TYPE_DUPLICATE_OPERATION); }
- * else {
- * this.internalClipboard.setOperationType(InternalClipboard.TYPE_UNKNOWN); }
- * 
- * 
- * ISearch[] selectedSearches = new ISearch[0]; IEntry[] selectedEntries =
- * new IEntry[0]; ISearchResult[] selectedSearchResults = new
- * ISearchResult[0]; BrowserCategory[] selectedBrowserViewCategories =
- * new BrowserCategory[0];
- * 
- * if (event.item != null && event.item.getData() instanceof ISearch) {
- * selectedSearches = new ISearch[]{(ISearch) event.item.getData()}; }
- * else if (event.item != null && event.item.getData() instanceof
- * IEntry) { selectedEntries = new IEntry[]{(IEntry)
- * event.item.getData()}; } else if (event.item != null &&
- * event.item.getData() instanceof ISearchResult) {
- * selectedSearchResults = new ISearchResult[]{(ISearchResult)
- * event.item.getData()}; } else if (event.item != null &&
- * event.item.getData() instanceof BrowserCategory) {
- * selectedBrowserViewCategories = new
- * BrowserCategory[]{(BrowserCategory) event.item.getData()}; }
- * 
- * this.runPaste(this.internalClipboard, selectedSearches,
- * selectedEntries, selectedSearchResults,
- * selectedBrowserViewCategories);
- * 
- * 
- *  // // get search to handle and its search manager // ISearch[]
- * searches = (ISearch[]) event.data; // for(int i=0; i<searches.length;
- * i++) { // ISearch search = searches[i]; // IConnection connection =
- * search.getConnection(); // SearchManager dragSearchManager =
- * connection.getSearchManager(); // // // get position // //int
- * position = dragSearchManager.indexOf(search); // // // get drop
- * search manager and drop position, // // default is last and the drop
- * search // int dropPosition = -1; // SearchManager dropSearchManager =
- * null; // if (event.item != null && event.item.getData() instanceof
- * ISearch) { // ISearch dropSearch = (ISearch) event.item.getData(); //
- * dropSearchManager = dropSearch.getConnection().getSearchManager(); //
- * dropPosition = dropSearchManager.indexOf(dropSearch); // } else { //
- * dropSearchManager = this.selectedConnection.getSearchManager(); //
- * dropPosition = dropSearchManager.getSearchCount(); // } // if
- * (dropPosition == -1) { // dropSearchManager = dragSearchManager; //
- * dropPosition = dragSearchManager.getSearchCount(); // } // // // if
- * MOVE operation, first remove from old position // if (event.detail ==
- * DND.DROP_MOVE && dragSearchManager == dropSearchManager) { //
- * dragSearchManager.removeSearch(search); //
- * if(dropPosition>dragSearchManager.getSearchCount()) { //
- * dropPosition--; // } // dropSearchManager.addSearch(dropPosition,
- * search); // event.detail = DND.DROP_NONE; // // } else if
- * (event.detail == DND.DROP_COPY || // (event.detail == DND.DROP_MOVE &&
- * dragSearchManager != dropSearchManager)) { // ISearch newSearch =
- * (ISearch) search.clone(); //
- * newSearch.setConnection(dropSearchManager.getConnection()); //
- * dropSearchManager.addSearch(dropPosition, newSearch); // // } // else { //
- * event.detail = DND.DROP_NONE; // } // } } } catch (Exception e) {
- * event.detail = DND.DROP_NONE; e.printStackTrace(); }
- *  }
- * 
- * public void dropAccept(DropTargetEvent event) {
- * //System.out.println("dropAccept: " + event.detail + event.feedback);
- * event.currentDataType =
- * BrowserTransfer.getInstance().getSupportedTypes()[0]; check(event); }
- * 
- * 
- * 
- * 
- * public void runPaste(InternalClipboard internalClipboard, ISearch[]
- * selectedSearches, IEntry[] selectedEntries, ISearchResult[]
- * selectedSearchResults, BrowserCategory[]
- * selectedBrowserViewCategories) { Object objectToTransfer =
- * internalClipboard.getObjectToTransfer();
- * 
- * if (objectToTransfer != null && objectToTransfer instanceof ISearch[] &&
- * selectedSearches.length > 0 && selectedEntries.length == 0 &&
- * selectedSearchResults.length == 0) { ISearch[] searchesToTransfer =
- * (ISearch[]) objectToTransfer; if (searchesToTransfer != null &&
- * searchesToTransfer.length > 0) { ISearch pasteSearch =
- * selectedSearches[selectedSearches.length-1]; IConnection connection =
- * pasteSearch.getConnection(); SearchManager searchManager =
- * connection.getSearchManager();
- * 
- * int index = searchManager.indexOf(pasteSearch);
- * 
- * for(int i=0; i<searchesToTransfer.length; i++) { ISearch newSearch =
- * (ISearch) searchesToTransfer[i].clone();
- * newSearch.setConnection(connection);
- * if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_DUPLICATE_OPERATION) {
- * searchManager.addSearch(index+1+i, newSearch); } else
- * if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_MOVE_OPERATION) {
- * searchesToTransfer[i].getConnection().getSearchManager().removeSearch(searchesToTransfer[i].getName());
- * searchManager.addSearch(index+i, newSearch);
- * if(searchManager.indexOf(pasteSearch) < index) { index =
- * searchManager.indexOf(pasteSearch); } } } } } else if
- * (objectToTransfer != null && objectToTransfer instanceof ISearch[] &&
- * selectedBrowserViewCategories.length == 1 &&
- * selectedBrowserViewCategories[0].getType()==BrowserCategory.TYPE_SEARCHES) {
- * ISearch[] searchesToTransfer = (ISearch[]) objectToTransfer; if
- * (searchesToTransfer != null && searchesToTransfer.length > 0) {
- * IConnection connection =
- * selectedBrowserViewCategories[0].getParent(); SearchManager
- * searchManager = connection.getSearchManager(); for(int i=0; i<searchesToTransfer.length;
- * i++) { ISearch newSearch = (ISearch) searchesToTransfer[i].clone();
- * newSearch.setConnection(connection);
- * if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_DUPLICATE_OPERATION) {
- * searchManager.addSearch(searchManager.getSearchCount(), newSearch); }
- * else if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_MOVE_OPERATION) {
- * searchesToTransfer[i].getConnection().getSearchManager().removeSearch(searchesToTransfer[i].getName());
- * searchManager.addSearch(searchManager.getSearchCount(), newSearch); } } } }
- * else if (objectToTransfer != null && objectToTransfer instanceof
- * IEntry[] && selectedEntries.length == 1 && selectedSearches.length ==
- * 0 && selectedSearchResults.length == 0) { IEntry[] entries =
- * (IEntry[]) objectToTransfer; if (entries != null && entries.length >
- * 0) { if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_DUPLICATE_OPERATION) new
- * CopyEntriesJob(selectedEntries[0], entries).execute(); else
- * if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_MOVE_OPERATION) this.move(selectedEntries[0],
- * entries); } } else if (objectToTransfer != null && objectToTransfer
- * instanceof ISearchResult[] && selectedEntries.length == 1 &&
- * selectedSearches.length == 0 && selectedSearchResults.length == 0) {
- * ISearchResult[] searchResults = (ISearchResult[]) objectToTransfer;
- * IEntry[] entries = new IEntry[searchResults.length]; for(int i=0; i<searchResults.length;
- * i++) { entries[i] = searchResults[i].getEntry(); } if (entries !=
- * null && entries.length > 0) { if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_DUPLICATE_OPERATION) new
- * CopyEntriesJob(selectedEntries[0], entries).execute(); else
- * if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_MOVE_OPERATION) this.move(selectedEntries[0],
- * entries); } }
- * 
- * if(internalClipboard.getOperationType() ==
- * InternalClipboard.TYPE_MOVE_OPERATION) { internalClipboard.clear(); } }
- * 
- * private void move (final IEntry newParent, final IEntry[]
- * entriesToMove) {
- * 
- * for(int i=0; i<entriesToMove.length; i++) { try {
- * entriesToMove[i].moveTo(newParent, this); }
- * catch(ModelModificationException mme) {
- * BrowserUIPlugin.getDefault().getExceptionHandler().handleException(mme.getMessage(),
- * mme); } catch(Exception e) {
- * BrowserUIPlugin.getDefault().getExceptionHandler().handleException(e.getMessage(),
- * e); } }
- * 
- * //EventRegistry.fireEntryUpdated(new
- * ChildrenInitializedEvent(newParent, newParent.getConnection()),
- * this); }
- */
+* 
+* private Shell shell; private Clipboard systemClipboard; private
+* InternalClipboard internalClipboard;
+* 
+* 
+* public DropListener(Shell shell, Clipboard systemClipboard,
+* InternalClipboard internalClipboard) { this.shell = shell;
+* this.systemClipboard = systemClipboard; this.internalClipboard =
+* internalClipboard;
+*  } public void dispose() { this.shell = null; this.systemClipboard =
+* null; this.internalClipboard = null;
+*  }
+* 
+* private int dragOperation = DND.DROP_NONE;
+* 
+* public void dragEnter(DropTargetEvent event) {
+* //System.out.println("dragEnter: " + event.detail); dragOperation =
+* event.detail; event.currentDataType =
+* BrowserTransfer.getInstance().getSupportedTypes()[0];
+* this.check(event); }
+* 
+* public void dragLeave(DropTargetEvent event) {
+* //System.out.println("dragLeave: " + event.detail); dragOperation =
+* DND.DROP_NONE; }
+* 
+* public void dragOperationChanged(DropTargetEvent event) {
+* //System.out.println("dragOperationChanged: " + event.detail);
+* dragOperation = event.detail; this.check(event); }
+* 
+* public void dragOver(DropTargetEvent event) {
+* //System.out.println("dragOver: " + event.item.getData());
+* 
+* this.check(event);
+* 
+* //System.out.println("dragOver: " + event.detail);
+* 
+* //System.out.println();
+* //System.out.println(event.item.getClass().getName());
+* //System.out.println(event.item.getData().getClass().getName());
+* //System.out.println(event.currentDataType.type); }
+* 
+* private void check(DropTargetEvent event) { if(event.item != null &&
+* event.item.getData() != null) { if
+* (BrowserTransfer.getInstance().isSupportedType(event.currentDataType)) {
+* if(event.item.getData() instanceof ISearch &&
+* this.internalClipboard.getObjectToTransfer() instanceof ISearch[]) {
+* event.detail = dragOperation; return; } else if(event.item.getData()
+* instanceof BrowserCategory &&
+* ((BrowserCategory)event.item.getData()).getType() ==
+* BrowserCategory.TYPE_SEARCHES &&
+* this.internalClipboard.getObjectToTransfer() instanceof ISearch[]) {
+* event.detail = dragOperation; return; } else if(event.item.getData()
+* instanceof IEntry && this.internalClipboard.getObjectToTransfer()
+* instanceof IEntry[]) { event.detail = dragOperation;
+* 
+* IEntry[] entries =
+* (IEntry[])this.internalClipboard.getObjectToTransfer(); for(int i=0;
+* i<entries.length; i++) { if(entries[i].hasChildren()) { event.detail =
+* DND.DROP_COPY; return; } }
+* 
+* return; } else if(event.item.getData() instanceof IEntry &&
+* this.internalClipboard.getObjectToTransfer() instanceof
+* ISearchResult[]) { event.detail = dragOperation;
+* 
+* ISearchResult[] srs =
+* (ISearchResult[])this.internalClipboard.getObjectToTransfer();
+* for(int i=0; i<srs.length; i++) {
+* if(!srs[i].getEntry().hasChildren()) { event.detail = DND.DROP_COPY;
+* return; } }
+* 
+* return; } else { event.detail = DND.DROP_NONE; } } else {
+* event.detail = DND.DROP_NONE; } } else { event.detail =
+* DND.DROP_NONE; } }
+* 
+* public void drop(DropTargetEvent event) {
+* 
+* //System.out.println("drop: " + event);
+* 
+* try {
+* 
+* if
+* (BrowserTransfer.getInstance().isSupportedType(event.currentDataType) &&
+* event.data instanceof String &&
+* this.internalClipboard.getClass().getName().equals(event.data)) {
+* 
+* if(event.detail == DND.DROP_MOVE) {
+* this.internalClipboard.setOperationType(InternalClipboard.TYPE_MOVE_OPERATION); }
+* else if(event.detail == DND.DROP_COPY) {
+* this.internalClipboard.setOperationType(InternalClipboard.TYPE_DUPLICATE_OPERATION); }
+* else {
+* this.internalClipboard.setOperationType(InternalClipboard.TYPE_UNKNOWN); }
+* 
+* 
+* ISearch[] selectedSearches = new ISearch[0]; IEntry[] selectedEntries =
+* new IEntry[0]; ISearchResult[] selectedSearchResults = new
+* ISearchResult[0]; BrowserCategory[] selectedBrowserViewCategories =
+* new BrowserCategory[0];
+* 
+* if (event.item != null && event.item.getData() instanceof ISearch) {
+* selectedSearches = new ISearch[]{(ISearch) event.item.getData()}; }
+* else if (event.item != null && event.item.getData() instanceof
+* IEntry) { selectedEntries = new IEntry[]{(IEntry)
+* event.item.getData()}; } else if (event.item != null &&
+* event.item.getData() instanceof ISearchResult) {
+* selectedSearchResults = new ISearchResult[]{(ISearchResult)
+* event.item.getData()}; } else if (event.item != null &&
+* event.item.getData() instanceof BrowserCategory) {
+* selectedBrowserViewCategories = new
+* BrowserCategory[]{(BrowserCategory) event.item.getData()}; }
+* 
+* this.runPaste(this.internalClipboard, selectedSearches,
+* selectedEntries, selectedSearchResults,
+* selectedBrowserViewCategories);
+* 
+* 
+*  // // get search to handle and its search manager // ISearch[]
+* searches = (ISearch[]) event.data; // for(int i=0; i<searches.length;
+* i++) { // ISearch search = searches[i]; // IConnection connection =
+* search.getConnection(); // SearchManager dragSearchManager =
+* connection.getSearchManager(); // // // get position // //int
+* position = dragSearchManager.indexOf(search); // // // get drop
+* search manager and drop position, // // default is last and the drop
+* search // int dropPosition = -1; // SearchManager dropSearchManager =
+* null; // if (event.item != null && event.item.getData() instanceof
+* ISearch) { // ISearch dropSearch = (ISearch) event.item.getData(); //
+* dropSearchManager = dropSearch.getConnection().getSearchManager(); //
+* dropPosition = dropSearchManager.indexOf(dropSearch); // } else { //
+* dropSearchManager = this.selectedConnection.getSearchManager(); //
+* dropPosition = dropSearchManager.getSearchCount(); // } // if
+* (dropPosition == -1) { // dropSearchManager = dragSearchManager; //
+* dropPosition = dragSearchManager.getSearchCount(); // } // // // if
+* MOVE operation, first remove from old position // if (event.detail ==
+* DND.DROP_MOVE && dragSearchManager == dropSearchManager) { //
+* dragSearchManager.removeSearch(search); //
+* if(dropPosition>dragSearchManager.getSearchCount()) { //
+* dropPosition--; // } // dropSearchManager.addSearch(dropPosition,
+* search); // event.detail = DND.DROP_NONE; // // } else if
+* (event.detail == DND.DROP_COPY || // (event.detail == DND.DROP_MOVE &&
+* dragSearchManager != dropSearchManager)) { // ISearch newSearch =
+* (ISearch) search.clone(); //
+* newSearch.setConnection(dropSearchManager.getConnection()); //
+* dropSearchManager.addSearch(dropPosition, newSearch); // // } // else { //
+* event.detail = DND.DROP_NONE; // } // } } } catch (Exception e) {
+* event.detail = DND.DROP_NONE; e.printStackTrace(); }
+*  }
+* 
+* public void dropAccept(DropTargetEvent event) {
+* //System.out.println("dropAccept: " + event.detail + event.feedback);
+* event.currentDataType =
+* BrowserTransfer.getInstance().getSupportedTypes()[0]; check(event); }
+* 
+* 
+* 
+* 
+* public void runPaste(InternalClipboard internalClipboard, ISearch[]
+* selectedSearches, IEntry[] selectedEntries, ISearchResult[]
+* selectedSearchResults, BrowserCategory[]
+* selectedBrowserViewCategories) { Object objectToTransfer =
+* internalClipboard.getObjectToTransfer();
+* 
+* if (objectToTransfer != null && objectToTransfer instanceof ISearch[] &&
+* selectedSearches.length > 0 && selectedEntries.length == 0 &&
+* selectedSearchResults.length == 0) { ISearch[] searchesToTransfer =
+* (ISearch[]) objectToTransfer; if (searchesToTransfer != null &&
+* searchesToTransfer.length > 0) { ISearch pasteSearch =
+* selectedSearches[selectedSearches.length-1]; IConnection connection =
+* pasteSearch.getConnection(); SearchManager searchManager =
+* connection.getSearchManager();
+* 
+* int index = searchManager.indexOf(pasteSearch);
+* 
+* for(int i=0; i<searchesToTransfer.length; i++) { ISearch newSearch =
+* (ISearch) searchesToTransfer[i].clone();
+* newSearch.setConnection(connection);
+* if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_DUPLICATE_OPERATION) {
+* searchManager.addSearch(index+1+i, newSearch); } else
+* if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_MOVE_OPERATION) {
+* searchesToTransfer[i].getConnection().getSearchManager().removeSearch(searchesToTransfer[i].getName());
+* searchManager.addSearch(index+i, newSearch);
+* if(searchManager.indexOf(pasteSearch) < index) { index =
+* searchManager.indexOf(pasteSearch); } } } } } else if
+* (objectToTransfer != null && objectToTransfer instanceof ISearch[] &&
+* selectedBrowserViewCategories.length == 1 &&
+* selectedBrowserViewCategories[0].getType()==BrowserCategory.TYPE_SEARCHES) {
+* ISearch[] searchesToTransfer = (ISearch[]) objectToTransfer; if
+* (searchesToTransfer != null && searchesToTransfer.length > 0) {
+* IConnection connection =
+* selectedBrowserViewCategories[0].getParent(); SearchManager
+* searchManager = connection.getSearchManager(); for(int i=0; i<searchesToTransfer.length;
+* i++) { ISearch newSearch = (ISearch) searchesToTransfer[i].clone();
+* newSearch.setConnection(connection);
+* if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_DUPLICATE_OPERATION) {
+* searchManager.addSearch(searchManager.getSearchCount(), newSearch); }
+* else if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_MOVE_OPERATION) {
+* searchesToTransfer[i].getConnection().getSearchManager().removeSearch(searchesToTransfer[i].getName());
+* searchManager.addSearch(searchManager.getSearchCount(), newSearch); } } } }
+* else if (objectToTransfer != null && objectToTransfer instanceof
+* IEntry[] && selectedEntries.length == 1 && selectedSearches.length ==
+* 0 && selectedSearchResults.length == 0) { IEntry[] entries =
+* (IEntry[]) objectToTransfer; if (entries != null && entries.length >
+* 0) { if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_DUPLICATE_OPERATION) new
+* CopyEntriesJob(selectedEntries[0], entries).execute(); else
+* if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_MOVE_OPERATION) this.move(selectedEntries[0],
+* entries); } } else if (objectToTransfer != null && objectToTransfer
+* instanceof ISearchResult[] && selectedEntries.length == 1 &&
+* selectedSearches.length == 0 && selectedSearchResults.length == 0) {
+* ISearchResult[] searchResults = (ISearchResult[]) objectToTransfer;
+* IEntry[] entries = new IEntry[searchResults.length]; for(int i=0; i<searchResults.length;
+* i++) { entries[i] = searchResults[i].getEntry(); } if (entries !=
+* null && entries.length > 0) { if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_DUPLICATE_OPERATION) new
+* CopyEntriesJob(selectedEntries[0], entries).execute(); else
+* if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_MOVE_OPERATION) this.move(selectedEntries[0],
+* entries); } }
+* 
+* if(internalClipboard.getOperationType() ==
+* InternalClipboard.TYPE_MOVE_OPERATION) { internalClipboard.clear(); } }
+* 
+* private void move (final IEntry newParent, final IEntry[]
+* entriesToMove) {
+* 
+* for(int i=0; i<entriesToMove.length; i++) { try {
+* entriesToMove[i].moveTo(newParent, this); }
+* catch(ModelModificationException mme) {
+* BrowserUIPlugin.getDefault().getExceptionHandler().handleException(mme.getMessage(),
+* mme); } catch(Exception e) {
+* BrowserUIPlugin.getDefault().getExceptionHandler().handleException(e.getMessage(),
+* e); } }
+* 
+* //EventRegistry.fireEntryUpdated(new
+* ChildrenInitializedEvent(newParent, newParent.getConnection()),
+* this); }
+*/
 }

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/LinkWithEditorAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/LinkWithEditorAction.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/LinkWithEditorAction.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/browser/LinkWithEditorAction.java Wed Oct 21 12:16:28 2009
@@ -17,7 +17,7 @@
  *  under the License. 
  *  
  */
- 
+
 package org.apache.directory.studio.ldapbrowser.ui.views.browser;
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewActionGroup.java Wed Oct 21 12:16:28 2009
@@ -106,8 +106,8 @@
             ImportExportAction.TYPE_EXPORT_CSV ) ) );
         connectionActionMap.put( exportExcelAction, new ConnectionViewActionProxy( viewer, this,
             new ImportExportAction( ImportExportAction.TYPE_EXPORT_EXCEL ) ) );
-        connectionActionMap.put( exportOdfAction, new ConnectionViewActionProxy( viewer, this,
-            new ImportExportAction( ImportExportAction.TYPE_EXPORT_ODF ) ) );
+        connectionActionMap.put( exportOdfAction, new ConnectionViewActionProxy( viewer, this, new ImportExportAction(
+            ImportExportAction.TYPE_EXPORT_ODF ) ) );
         connectionActionMap.put( importConnectionsAction, new ConnectionViewActionProxy( viewer, this,
             new ImportConnectionsAction() ) );
         connectionActionMap.put( exportConnectionsAction, new ConnectionViewActionProxy( viewer, this,

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewUniversalListener.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewUniversalListener.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewUniversalListener.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/connection/ConnectionViewUniversalListener.java Wed Oct 21 12:16:28 2009
@@ -128,8 +128,8 @@
 
             try
             {
-                PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView( ModificationLogsView.getId(),
-                    null, IWorkbenchPage.VIEW_CREATE );
+                PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(
+                    ModificationLogsView.getId(), null, IWorkbenchPage.VIEW_CREATE );
             }
             catch ( PartInitException e )
             {

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsView.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsView.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsView.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsView.java Wed Oct 21 12:16:28 2009
@@ -119,10 +119,10 @@
         actionGroup = new ModificationLogsViewActionGroup( this );
         actionGroup.fillActionBars( getViewSite().getActionBars() );
         // this.actionGroup.fillContextMenu(this.configuration.getContextMenuManager(this.mainWidget.getViewer()));
-        
+
         // create the listener
         universalListener = new ModificationLogsViewUniversalListener( this );
-        
+
         // set help context
         PlatformUI.getWorkbench().getHelpSystem().setHelp( mainWidget.getSourceViewer().getTextWidget(),
             BrowserUIConstants.PLUGIN_ID + "." + "tools_modification_logs_view" ); //$NON-NLS-1$ //$NON-NLS-2$

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/modificationlogs/ModificationLogsViewUniversalListener.java Wed Oct 21 12:16:28 2009
@@ -80,7 +80,8 @@
                     Connection[] connections = BrowserSelectionUtils.getConnections( selection );
                     if ( connections.length == 1 )
                     {
-                        IBrowserConnection connection = BrowserCorePlugin.getDefault().getConnectionManager().getBrowserConnectionById( connections[0].getId() );
+                        IBrowserConnection connection = BrowserCorePlugin.getDefault().getConnectionManager()
+                            .getBrowserConnectionById( connections[0].getId() );
                         ModificationLogsViewInput input = new ModificationLogsViewInput( connection, 0 );
                         setInput( input );
                         scrollToNewest();
@@ -246,7 +247,7 @@
                         fw = new FileWriter( files[i] );
                         fw.write( "" ); //$NON-NLS-1$
                     }
-    
+
                 }
                 catch ( Exception e )
                 {

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ClearAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ClearAction.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ClearAction.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ClearAction.java Wed Oct 21 12:16:28 2009
@@ -18,7 +18,6 @@
  *
  */
 
-
 package org.apache.directory.studio.ldapbrowser.ui.views.searchlogs;
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ExportAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ExportAction.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ExportAction.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/ExportAction.java Wed Oct 21 12:16:28 2009
@@ -18,7 +18,6 @@
  *
  */
 
-
 package org.apache.directory.studio.ldapbrowser.ui.views.searchlogs;
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/Messages.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/Messages.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/Messages.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/Messages.java Wed Oct 21 12:16:28 2009
@@ -18,7 +18,6 @@
  *
  */
 
-
 package org.apache.directory.studio.ldapbrowser.ui.views.searchlogs;
 
 

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/SearchLogsViewUniversalListener.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/SearchLogsViewUniversalListener.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/SearchLogsViewUniversalListener.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/views/searchlogs/SearchLogsViewUniversalListener.java Wed Oct 21 12:16:28 2009
@@ -290,7 +290,7 @@
                         fw = new FileWriter( files[i] );
                         fw.write( "" ); //$NON-NLS-1$
                     }
-    
+
                 }
                 catch ( Exception e )
                 {

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ImportLdifWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ImportLdifWizard.java?rev=827984&r1=827983&r2=827984&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ImportLdifWizard.java (original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/wizards/ImportLdifWizard.java Wed Oct 21 12:16:28 2009
@@ -76,7 +76,7 @@
     public ImportLdifWizard()
     {
         super();
-        setWindowTitle( Messages.getString("ImportLdifWizard.LDIFImport") ); //$NON-NLS-1$
+        setWindowTitle( Messages.getString( "ImportLdifWizard.LDIFImport" ) ); //$NON-NLS-1$
     }
 
 
@@ -87,7 +87,7 @@
      */
     public ImportLdifWizard( IBrowserConnection importConnection )
     {
-        super.setWindowTitle( Messages.getString("ImportLdifWizard.LDIFImport") ); //$NON-NLS-1$
+        super.setWindowTitle( Messages.getString( "ImportLdifWizard.LDIFImport" ) ); //$NON-NLS-1$
         this.importConnection = importConnection;
     }
 



Mime
View raw message