[jbosstools-commits] JBoss Tools SVN: r6915 - in trunk/seam/plugins/org.jboss.tools.seam.ui: src/org/jboss/tools/seam/ui/actions and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Mar 13 13:55:14 EDT 2008


Author: vrubezhny
Date: 2008-03-13 13:55:14 -0400 (Thu, 13 Mar 2008)
New Revision: 6915

Added:
   trunk/seam/plugins/org.jboss.tools.seam.ui/icons/find_seam_declarations.gif
   trunk/seam/plugins/org.jboss.tools.seam.ui/icons/find_seam_references.gif
Modified:
   trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/SeamFindQuickAssistProcessor.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1860 Seam find references is not using the right extensionpoint/shortcut

Ctrl-G/Ctrl-Shift-G Seam Find actions are moved to Ctrl-1 quick fix dialog for the Java Editor.

Added: trunk/seam/plugins/org.jboss.tools.seam.ui/icons/find_seam_declarations.gif
===================================================================
(Binary files differ)


Property changes on: trunk/seam/plugins/org.jboss.tools.seam.ui/icons/find_seam_declarations.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/seam/plugins/org.jboss.tools.seam.ui/icons/find_seam_references.gif
===================================================================
(Binary files differ)


Property changes on: trunk/seam/plugins/org.jboss.tools.seam.ui/icons/find_seam_references.gif
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/SeamFindQuickAssistProcessor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/SeamFindQuickAssistProcessor.java	2008-03-13 17:35:34 UTC (rev 6914)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/actions/SeamFindQuickAssistProcessor.java	2008-03-13 17:55:14 UTC (rev 6915)
@@ -4,7 +4,6 @@
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.jdt.core.ICompilationUnit;
-import org.eclipse.jdt.core.IJavaProject;
 import org.eclipse.jdt.core.JavaModelException;
 import org.eclipse.jdt.ui.JavaUI;
 import org.eclipse.jdt.ui.text.java.IInvocationContext;
@@ -20,11 +19,10 @@
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.graphics.Point;
 import org.eclipse.ui.part.FileEditorInput;
-import org.hibernate.console.ImageConstants;
-import org.hibernate.eclipse.console.HibernateConsolePlugin;
-import org.hibernate.eclipse.console.utils.EclipseImages;
 import org.jboss.tools.seam.core.ISeamProject;
 import org.jboss.tools.seam.core.SeamCorePlugin;
+import org.jboss.tools.seam.ui.SeamGuiPlugin;
+import org.jboss.tools.seam.ui.SeamUiImages;
 
 public class SeamFindQuickAssistProcessor implements IQuickAssistProcessor {
 
@@ -55,19 +53,19 @@
 			String contents = document.get( context.getSelectionOffset(), context.getSelectionLength() );
 			result = new IJavaCompletionProposal[2];			
 			
-			result[0] = new ExternalActionQuickAssistProposal(contents, EclipseImages.getImage(ImageConstants.CRITERIA_EDITOR), "Find Seam Declarations", context) {
+			result[0] = new ExternalActionQuickAssistProposal(contents, SeamUiImages.getImage("find_seam_declarations.gif"), "Find Seam Declarations", context) {
 				public void apply(IDocument target) {
 					new FindSeamDeclarationsAction().run();
 				}
 			};
-			result[1] = new ExternalActionQuickAssistProposal(contents, EclipseImages.getImage(ImageConstants.CRITERIA_EDITOR), "Find Seam References", context) {
+			result[1] = new ExternalActionQuickAssistProposal(contents, SeamUiImages.getImage("find_seam_references.gif"), "Find Seam References", context) {
 				public void apply(IDocument target) {
 					new FindSeamReferencesAction().run();
 				}
 			};
 		}
 		catch (BadLocationException e) {
-			HibernateConsolePlugin.getDefault().logErrorMessage( "Could not get document contents for CriteriaQuickAssist", e );
+			SeamGuiPlugin.getPluginLog().logError( "Could not get document contents for Seam Find Quick Assist", e );
 		}
 		return result;
 	}




More information about the jbosstools-commits mailing list