directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1333983 - /directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
Date Fri, 04 May 2012 14:19:34 GMT
Author: pamarcelot
Date: Fri May  4 14:19:33 2012
New Revision: 1333983

URL: http://svn.apache.org/viewvc?rev=1333983&view=rev
Log:
Part of a fix for DIRSTUDIO-811 (Review and remove any source file under Eclipse Public License
(EPL) v 1.0).

Added:
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
      - copied, changed from r1333981, directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/CopyOfPathEditorInput.java

Copied: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
(from r1333981, directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/CopyOfPathEditorInput.java)
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java?p2=directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java&p1=directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/CopyOfPathEditorInput.java&r1=1333981&r2=1333983&rev=1333983&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/CopyOfPathEditorInput.java
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
Fri May  4 14:19:33 2012
@@ -35,13 +35,24 @@ import org.eclipse.ui.editors.text.ILoca
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class CopyOfPathEditorInput implements IPathEditorInput, ILocationProvider
+public class PathEditorInput implements IPathEditorInput, ILocationProvider
 {
     /** The path */
     private IPath path;
 
 
     /**
+     * Creates a new instance of PathEditorInput.
+     *
+     * @param path the path
+     */
+    public PathEditorInput( IPath path )
+    {
+        this.path = path;
+    }
+
+
+    /**
      * {@inheritDoc}
      */
     public boolean exists()
@@ -111,9 +122,9 @@ public class CopyOfPathEditorInput imple
      */
     public IPath getPath( Object element )
     {
-        if ( element instanceof CopyOfPathEditorInput )
+        if ( element instanceof PathEditorInput )
         {
-            return ( ( CopyOfPathEditorInput ) element ).getPath();
+            return ( ( PathEditorInput ) element ).getPath();
         }
 
         return null;
@@ -170,9 +181,9 @@ public class CopyOfPathEditorInput imple
                 return true;
             }
 
-            if ( o instanceof CopyOfPathEditorInput )
+            if ( o instanceof PathEditorInput )
             {
-                CopyOfPathEditorInput input = ( CopyOfPathEditorInput ) o;
+                PathEditorInput input = ( PathEditorInput ) o;
 
                 return path.equals( input.path );
             }



Mime
View raw message