From c41f8aaa08e5a1893922b7f79494160ca3e3b897 Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Sun, 2 Jul 2023 09:15:31 -0300 Subject: [PATCH] Removed references to hidden classes. --- .../refactorer/search/copied/NavigatorDragAdapter.java | 5 ++--- .../pydev/shared_ui/search/NavigatorDragAdapter.java | 10 ++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/plugins/com.python.pydev.refactoring/src/com/python/pydev/refactoring/refactorer/search/copied/NavigatorDragAdapter.java b/plugins/com.python.pydev.refactoring/src/com/python/pydev/refactoring/refactorer/search/copied/NavigatorDragAdapter.java index f135f92bd8..f249d0f3a1 100644 --- a/plugins/com.python.pydev.refactoring/src/com/python/pydev/refactoring/refactorer/search/copied/NavigatorDragAdapter.java +++ b/plugins/com.python.pydev.refactoring/src/com/python/pydev/refactoring/refactorer/search/copied/NavigatorDragAdapter.java @@ -12,7 +12,6 @@ import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.search.internal.ui.SearchPlugin; import org.eclipse.swt.dnd.DND; import org.eclipse.swt.dnd.DragSource; import org.eclipse.swt.dnd.DragSourceAdapter; @@ -87,7 +86,7 @@ public void dragFinished(DragSourceEvent event) { try { resource.delete(IResource.KEEP_HISTORY | IResource.FORCE, null); } catch (CoreException e) { - StatusManager.getManager().handle(e, SearchPlugin.getID()); + StatusManager.getManager().handle(e, "com.python.pydev.refactoring"); } } } else if (event.detail == DND.DROP_TARGET_MOVE) { @@ -102,7 +101,7 @@ public void dragFinished(DragSourceEvent event) { try { resource.refreshLocal(IResource.DEPTH_INFINITE, null); } catch (CoreException e) { - StatusManager.getManager().handle(e, SearchPlugin.getID()); + StatusManager.getManager().handle(e, "com.python.pydev.refactoring"); } } } diff --git a/plugins/org.python.pydev.shared_ui/src_search/org/python/pydev/shared_ui/search/NavigatorDragAdapter.java b/plugins/org.python.pydev.shared_ui/src_search/org/python/pydev/shared_ui/search/NavigatorDragAdapter.java index 5071ac7b90..3e58444f08 100644 --- a/plugins/org.python.pydev.shared_ui/src_search/org/python/pydev/shared_ui/search/NavigatorDragAdapter.java +++ b/plugins/org.python.pydev.shared_ui/src_search/org/python/pydev/shared_ui/search/NavigatorDragAdapter.java @@ -12,8 +12,6 @@ import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.IStructuredSelection; -import org.eclipse.search.internal.ui.SearchMessages; -import org.eclipse.search.internal.ui.SearchPlugin; import org.eclipse.swt.dnd.DND; import org.eclipse.swt.dnd.DragSource; import org.eclipse.swt.dnd.DragSourceAdapter; @@ -32,9 +30,9 @@ * navigator. Copied from deprecated org.eclipse.ui.views.navigator.NavigatorDragAdapter */ public class NavigatorDragAdapter extends DragSourceAdapter { - private static final String CHECK_MOVE_TITLE = SearchMessages.DragAdapter_title; + private static final String CHECK_MOVE_TITLE = "Check Move"; - private static final String CHECK_DELETE_MESSAGE = SearchMessages.DragAdapter_checkDeleteMessage; + private static final String CHECK_DELETE_MESSAGE = "{0} is read-only. Do you still wish to delete it?"; ISelectionProvider selectionProvider; @@ -88,7 +86,7 @@ public void dragFinished(DragSourceEvent event) { try { resource.delete(IResource.KEEP_HISTORY | IResource.FORCE, null); } catch (CoreException e) { - StatusManager.getManager().handle(e, SearchPlugin.getID()); + StatusManager.getManager().handle(e, "org.python.pydev.shared_ui"); } } } else if (event.detail == DND.DROP_TARGET_MOVE) { @@ -103,7 +101,7 @@ public void dragFinished(DragSourceEvent event) { try { resource.refreshLocal(IResource.DEPTH_INFINITE, null); } catch (CoreException e) { - StatusManager.getManager().handle(e, SearchPlugin.getID()); + StatusManager.getManager().handle(e, "org.python.pydev.shared_ui"); } } }