ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1035620 - in /ant/ivy/ivyde/trunk: doc/ org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/handlers/ org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/views/
Date Tue, 16 Nov 2010 12:55:50 GMT
Author: hibou
Date: Tue Nov 16 12:55:49 2010
New Revision: 1035620

URL: http://svn.apache.org/viewvc?rev=1035620&view=rev
Log:
On double click in the dependency explorer now it opens the ivy editor

Modified:
    ant/ivy/ivyde/trunk/doc/release-notes.html
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/handlers/OpenIvyFileHandler.java
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/views/ReverseDependencyExplorerView.java

Modified: ant/ivy/ivyde/trunk/doc/release-notes.html
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/doc/release-notes.html?rev=1035620&r1=1035619&r2=1035620&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/doc/release-notes.html (original)
+++ ant/ivy/ivyde/trunk/doc/release-notes.html Tue Nov 16 12:55:49 2010
@@ -129,6 +129,7 @@ List of changes since <a href="/ivy/ivyd
     <li>NEW: Look for ivysettings.xml file in project root copying the behavior of
ivy ant task (IVYDE-258)</li>
     <li>NEW: IvyDE can now resolve in an offline mode, where Ivy use only the caches
(Ivy 2.3 required)</li>
     <li>NEW: Explicit ordering of configurations (IVYDE-159)</li>
+    <li>NEW: Open the ivy file on the double click in the reverse dependency explorer</li>
 </ul><ul>
     <li>IMPROVE: let IvyDE refresh workspace after a resolve (IVYDE-27) (thanks to
Clint Burghduff)</li>
     <li>IMPROVE: IvyDE now resolve by batch, then preventing too many workspace build
(IVYDE-177)</li>

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/handlers/OpenIvyFileHandler.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/handlers/OpenIvyFileHandler.java?rev=1035620&r1=1035619&r2=1035620&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/handlers/OpenIvyFileHandler.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/handlers/OpenIvyFileHandler.java
Tue Nov 16 12:55:49 2010
@@ -38,6 +38,10 @@ public class OpenIvyFileHandler extends 
     public static final String COMMAND_ID = "org.apache.ivyde.commands.openivyfile";
 
     protected void handleContainer(IProject project, IvyClasspathContainer cp) {
+        open(cp);
+    }
+
+    public static void open(IvyClasspathContainer cp) {
         IvyClasspathContainerConfiguration conf = cp.getConf();
         if (FakeProjectManager.isFake(conf.getJavaProject())) {
             return;

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/views/ReverseDependencyExplorerView.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/views/ReverseDependencyExplorerView.java?rev=1035620&r1=1035619&r2=1035620&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/views/ReverseDependencyExplorerView.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/views/ReverseDependencyExplorerView.java
Tue Nov 16 12:55:49 2010
@@ -19,10 +19,12 @@ package org.apache.ivyde.eclipse.ui.view
 
 import org.apache.ivyde.eclipse.IvyPlugin;
 import org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer;
+import org.apache.ivyde.eclipse.handlers.OpenIvyFileHandler;
 import org.apache.ivyde.eclipse.revdepexplorer.IvyUtil;
 import org.apache.ivyde.eclipse.revdepexplorer.MultiRevDependencyDescriptor;
 import org.apache.ivyde.eclipse.revdepexplorer.SyncIvyFilesJob;
 import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.jobs.IJobChangeEvent;
 import org.eclipse.core.runtime.jobs.Job;
 import org.eclipse.core.runtime.jobs.JobChangeAdapter;
@@ -32,7 +34,11 @@ import org.eclipse.jface.action.IToolBar
 import org.eclipse.jface.dialogs.MessageDialog;
 import org.eclipse.jface.viewers.CellEditor;
 import org.eclipse.jface.viewers.ColumnWeightData;
+import org.eclipse.jface.viewers.DoubleClickEvent;
 import org.eclipse.jface.viewers.ICellModifier;
+import org.eclipse.jface.viewers.IDoubleClickListener;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.viewers.ITableLabelProvider;
 import org.eclipse.jface.viewers.ITreeContentProvider;
 import org.eclipse.jface.viewers.LabelProvider;
@@ -144,6 +150,16 @@ public class ReverseDependencyExplorerVi
         viewer.setContentProvider(ivyRevisionProvider);
         viewer.setLabelProvider(ivyRevisionProvider);
         viewer.setColumnProperties(PROPS);
+        viewer.addDoubleClickListener(new IDoubleClickListener() {
+            public void doubleClick(DoubleClickEvent event) {
+                IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
+                Object element = selection.getFirstElement();
+                if (element instanceof ClasspathContainerDependencyDescriptorComposite) {
+                    IvyClasspathContainer cp = ((ClasspathContainerDependencyDescriptorComposite)
element).container;
+                    OpenIvyFileHandler.open(cp);
+                }
+            }
+        });
 
         Tree tree = viewer.getTree();
         tree.setLayoutData(new GridData(GridData.FILL_BOTH));



Mime
View raw message