Author: max.andersen(a)jboss.com
Date: 2008-04-26 12:47:53 -0400 (Sat, 26 Apr 2008)
New Revision: 7833
Modified:
branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchResultPage.java
Log:
JBIDE-2149 [Ganymede] The method open(IWorkbenchPage, IFile, boolean) in the type
EditorOpener is not applicable for the arguments (IFile, boolean)
JBIDE-2148 [Ganymede] SearchMessages.FileSearchPage_limited_format cannot be resolved
Modified:
branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchResultPage.java
===================================================================
---
branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchResultPage.java 2008-04-26
16:25:08 UTC (rev 7832)
+++
branches/ganymede/trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamSearchResultPage.java 2008-04-26
16:47:53 UTC (rev 7833)
@@ -214,7 +214,7 @@
((IOpenableElement)match.getElement()).open();
} else if (match.getElement() instanceof IFile) {
IFile file= (IFile) match.getElement();
- IEditorPart editor= fEditorOpener.open(file, activate);
+ IEditorPart editor= fEditorOpener.open(getSite().getPage(),file, activate);
offset = match.getOffset();
length = match.getLength();
if (offset != 0 && length != 0) {
@@ -400,8 +400,8 @@
if (result != null) {
int itemCount= ((IStructuredContentProvider)
tv.getContentProvider()).getElements(getInput()).length;
int fileCount= getInput().getElements().length;
- if (itemCount < fileCount) {
- String format= SearchMessages.FileSearchPage_limited_format;
+ if (itemCount < fileCount) {
+ String format= SearchMessages.FileSearchPage_limited_format_files;
return Messages.format(format, new Object[]{label, new Integer(itemCount), new
Integer(fileCount)});
}
}
Show replies by date