Author: scabanovich
Date: 2009-04-09 11:31:03 -0400 (Thu, 09 Apr 2009)
New Revision: 14642
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java
Log:
JBIDE-4140
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java 2009-04-09
15:01:26 UTC (rev 14641)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaEclipseChoicerEditor.java 2009-04-09
15:31:03 UTC (rev 14642)
@@ -102,8 +102,9 @@
FilteredTypesSelectionDialog dialog = new FilteredTypesSelectionDialog(
shell,
false,
- ModelUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow(),
- SearchEngine.createJavaSearchScope(jp != null ? new IJavaElement[]{jp} : new
IJavaElement[0]),
+ ModelUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow(),
+ jp == null ? SearchEngine.createWorkspaceScope()
+ : SearchEngine.createJavaSearchScope(new IJavaElement[]{jp}),
IJavaSearchConstants.TYPE);
dialog.setTitle(title);
IValueProvider valueProvider =
(IValueProvider)adapter.getAdapter(IValueProvider.class);
Show replies by date