Author: akazakov
Date: 2008-07-01 11:18:36 -0400 (Tue, 01 Jul 2008)
New Revision: 9037
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectSelectionDialog.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2473 Fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectSelectionDialog.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectSelectionDialog.java 2008-07-01
06:27:50 UTC (rev 9036)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectSelectionDialog.java 2008-07-01
15:18:36 UTC (rev 9037)
@@ -61,12 +61,13 @@
ArrayList<IProject> seamProjects = new ArrayList<IProject>();
for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
try {
- if((allowAllProjects || (check != null && check.getSelection()))
+ if(project.isAccessible() && (
+ (allowAllProjects || (check != null && check.getSelection()))
|| (project.hasNature(ISeamProject.NATURE_ID)
&& SeamCorePlugin.getSeamPreferences(project)!=null
&& project.getAdapter(IFacetedProject.class)!=null
&&
((IFacetedProject)project.getAdapter(IFacetedProject.class)).hasProjectFacet(ProjectFacetsManager.getProjectFacet("jst.web"))
- &&
!"".equals(SeamCorePlugin.getSeamPreferences(project).get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
"")))) { //$NON-NLS-1$
+ &&
!"".equals(SeamCorePlugin.getSeamPreferences(project).get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
""))))) { //$NON-NLS-1$
seamProjects.add(project);
}
} catch (CoreException e) {