[Pydev-cvs] org.python.pydev/src_navigator/org/python/pydev/navigator/actions PyRenameResourceActi
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-07-31 01:47:29
|
Update of /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/actions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31519/src_navigator/org/python/pydev/navigator/actions Modified Files: PyRenameResourceAction.java PyMoveResourceAction.java PyCopyResourceAction.java PyPasteAction.java PyDeleteResourceAction.java Log Message: <li>Fixed NPE when creating editor with no interpreter configured</li> <li>Hyperlink works in the same way that F3 (saves file before search)</li> <li>Fixed problem while navigating pydev package explorer ( https://sourceforge.net/tracker/index.php?func=detail&aid=2008015&group_id=85796&atid=577329 )</li> <li>Applied patch that fixes race condition in PythonNature (thanks to Radim Kubacki)</li> <li><strong>Eclipse 3.4</strong>: Move / rename working</li> Index: PyPasteAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/actions/PyPasteAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PyPasteAction.java 24 Mar 2007 11:48:29 -0000 1.2 --- PyPasteAction.java 31 Jul 2008 01:47:36 -0000 1.3 *************** *** 10,13 **** --- 10,14 ---- import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; + import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.swt.dnd.Clipboard; import org.eclipse.swt.widgets.Shell; *************** *** 67,70 **** --- 68,77 ---- } + @Override + public IStructuredSelection getStructuredSelection() { + return new StructuredSelection(selected); + } + + /* * (non-Javadoc) Method declared on IAction. Index: PyDeleteResourceAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/actions/PyDeleteResourceAction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PyDeleteResourceAction.java 12 May 2008 11:43:00 -0000 1.3 --- PyDeleteResourceAction.java 31 Jul 2008 01:47:36 -0000 1.4 *************** *** 72,84 **** - @Override - public IStructuredSelection getStructuredSelection() { - ISelection selection = provider.getSelection(); - if (!selection.isEmpty()) { - IStructuredSelection sSelection = (IStructuredSelection) selection; - return sSelection; - } - return new StructuredSelection(); - } @Override --- 72,75 ---- *************** *** 87,90 **** --- 78,87 ---- } + @Override + public IStructuredSelection getStructuredSelection() { + return new StructuredSelection(selected); + } + + /* * (non-Javadoc) Method declared on IAction. Index: PyCopyResourceAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/actions/PyCopyResourceAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PyCopyResourceAction.java 24 Mar 2007 11:48:29 -0000 1.2 --- PyCopyResourceAction.java 31 Jul 2008 01:47:36 -0000 1.3 *************** *** 10,13 **** --- 10,14 ---- import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; + import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.swt.dnd.Clipboard; import org.eclipse.swt.widgets.Shell; *************** *** 66,69 **** --- 67,75 ---- } + @Override + public IStructuredSelection getStructuredSelection() { + return new StructuredSelection(selected); + } + /* * (non-Javadoc) Method declared on IAction. Index: PyRenameResourceAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/actions/PyRenameResourceAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PyRenameResourceAction.java 10 Mar 2007 14:32:43 -0000 1.1 --- PyRenameResourceAction.java 31 Jul 2008 01:47:36 -0000 1.2 *************** *** 15,18 **** --- 15,19 ---- import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; + import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.actions.RenameResourceAction; *************** *** 112,115 **** --- 113,121 ---- } + @Override + public IStructuredSelection getStructuredSelection() { + return new StructuredSelection(selected); + } + /* * (non-Javadoc) Method declared on IAction. Index: PyMoveResourceAction.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/actions/PyMoveResourceAction.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PyMoveResourceAction.java 24 Mar 2007 11:48:29 -0000 1.2 --- PyMoveResourceAction.java 31 Jul 2008 01:47:36 -0000 1.3 *************** *** 10,13 **** --- 10,14 ---- import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; + import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.actions.MoveResourceAction; *************** *** 65,68 **** --- 66,74 ---- } + @Override + public IStructuredSelection getStructuredSelection() { + return new StructuredSelection(selected); + } + /* * (non-Javadoc) Method declared on IAction. |