JBoss Tools SVN: r33825 - in branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US: images/getting_started and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-11 19:14:05 -0400 (Thu, 11 Aug 2011)
New Revision: 33825
Added:
branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/images/getting_started/extras_certified.png
Modified:
branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml
Log:
updated for TOOLSDOC-238
Modified: branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 23:13:53 UTC (rev 33824)
+++ branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 23:14:05 UTC (rev 33825)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>4.1</productnumber>
<edition>4.1.0</edition>
-<pubsnumber>12</pubsnumber>
+<pubsnumber>13</pubsnumber>
<abstract>
<para>The Getting Started Guide explains the JBoss Developer Studio.</para>
</abstract>
Added: branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/images/getting_started/extras_certified.png
===================================================================
(Binary files differ)
Property changes on: branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/images/getting_started/extras_certified.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 23:13:53 UTC (rev 33824)
+++ branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 23:14:05 UTC (rev 33825)
@@ -624,6 +624,14 @@
<para>
The components available on the extras site will then be listed, which you can select and install by following the prompts. Components that are certified to work with JBoss Developer Studio and JBoss technologies will be marked with <emphasis>(Certified)</emphasis> after the component name.
</para>
+ <figure>
+ <title>Example of certified components</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/extras_certified.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<section>
<title>Installing and setting up Subclipse</title>
<para>
14 years, 8 months
JBoss Tools SVN: r33824 - in trunk/documentation/guides/GettingStartedGuide/en-US: images/getting_started and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-11 19:13:53 -0400 (Thu, 11 Aug 2011)
New Revision: 33824
Added:
trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/extras_certified.png
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
Log:
updated for TOOLSDOC-238
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 22:59:45 UTC (rev 33823)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 23:13:53 UTC (rev 33824)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>4.1</productnumber>
<edition>4.1.0</edition>
-<pubsnumber>12</pubsnumber>
+<pubsnumber>13</pubsnumber>
<abstract>
<para>The Getting Started Guide explains the JBoss Developer Studio.</para>
</abstract>
Added: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/extras_certified.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en-US/images/getting_started/extras_certified.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 22:59:45 UTC (rev 33823)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 23:13:53 UTC (rev 33824)
@@ -624,6 +624,14 @@
<para>
The components available on the extras site will then be listed, which you can select and install by following the prompts. Components that are certified to work with JBoss Developer Studio and JBoss technologies will be marked with <emphasis>(Certified)</emphasis> after the component name.
</para>
+ <figure>
+ <title>Example of certified components</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/getting_started/extras_certified.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<section>
<title>Installing and setting up Subclipse</title>
<para>
14 years, 8 months
JBoss Tools SVN: r33823 - branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-11 18:59:45 -0400 (Thu, 11 Aug 2011)
New Revision: 33823
Modified:
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml
Log:
updated for TOOLSDOC-238
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2011-08-11 22:56:45 UTC (rev 33822)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2011-08-11 22:59:45 UTC (rev 33823)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>4.1</productnumber>
<edition>0</edition>
- <pubsnumber>8</pubsnumber>
+ <pubsnumber>9</pubsnumber>
<abstract>
<para>
These release notes contain important information related to the JBoss Developer Studio. New features, known issues, resources, and other current issues are addressed here.
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml 2011-08-11 22:56:45 UTC (rev 33822)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml 2011-08-11 22:59:45 UTC (rev 33823)
@@ -20,7 +20,7 @@
</listitem>
<listitem>
<para>
- Certified third-party components. JBoss Developer Studio 4.1 is released with numerous third-party components that have been tested to work with JBoss Developer Studio and JBoss technologies. These components are available through the Extras site; see the Getting Started Guide for further information.
+ Certified third-party components. JBoss Developer Studio 4.1 is released with numerous third-party components that have been tested to work with JBoss Developer Studio and JBoss technologies. These components are available through the extras site; see the Getting Started Guide for further information.
</para>
</listitem>
</itemizedlist>
14 years, 8 months
JBoss Tools SVN: r33822 - trunk/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-11 18:56:45 -0400 (Thu, 11 Aug 2011)
New Revision: 33822
Modified:
trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
Log:
updated for TOOLSDOC-238
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 22:56:29 UTC (rev 33821)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 22:56:45 UTC (rev 33822)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>4.1</productnumber>
<edition>4.1.0</edition>
-<pubsnumber>11</pubsnumber>
+<pubsnumber>12</pubsnumber>
<abstract>
<para>The Getting Started Guide explains the JBoss Developer Studio.</para>
</abstract>
Modified: trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 22:56:29 UTC (rev 33821)
+++ trunk/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 22:56:45 UTC (rev 33822)
@@ -607,7 +607,7 @@
<section id="extras_site">
<title>Accessing the additional supported tooling</title>
<para>
- A number of components are fully supported, but do not come as part of the standard installation. These extra components are available for individual installation through the JBoss Developer Studio extras site. To access the extras site, select <menuchoice>
+ A number of components are supported, but do not come as part of the standard installation. These extra components are available for individual installation through the JBoss Developer Studio extras site. To access the extras site, select <menuchoice>
<guimenuitem>Help</guimenuitem>
<guimenuitem>Install New Software...</guimenuitem>
</menuchoice> and, click the
@@ -622,7 +622,7 @@
</para>
<para>
- The components available on the extras site will then be listed, which you can select and install by following the prompts.
+ The components available on the extras site will then be listed, which you can select and install by following the prompts. Components that are certified to work with JBoss Developer Studio and JBoss technologies will be marked with <emphasis>(Certified)</emphasis> after the component name.
</para>
<section>
<title>Installing and setting up Subclipse</title>
14 years, 8 months
JBoss Tools SVN: r33821 - branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-11 18:56:29 -0400 (Thu, 11 Aug 2011)
New Revision: 33821
Modified:
branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml
Log:
updated for TOOLSDOC-238
Modified: branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 22:46:39 UTC (rev 33820)
+++ branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/Book_Info.xml 2011-08-11 22:56:29 UTC (rev 33821)
@@ -8,7 +8,7 @@
<productname>JBoss Developer Studio</productname>
<productnumber>4.1</productnumber>
<edition>4.1.0</edition>
-<pubsnumber>11</pubsnumber>
+<pubsnumber>12</pubsnumber>
<abstract>
<para>The Getting Started Guide explains the JBoss Developer Studio.</para>
</abstract>
Modified: branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 22:46:39 UTC (rev 33820)
+++ branches/jbosstools-3.2.x/documentation/guides/GettingStartedGuide/en-US/installation.xml 2011-08-11 22:56:29 UTC (rev 33821)
@@ -607,7 +607,7 @@
<section id="extras_site">
<title>Accessing the additional supported tooling</title>
<para>
- A number of components are fully supported, but do not come as part of the standard installation. These extra components are available for individual installation through the JBoss Developer Studio extras site. To access the extras site, select <menuchoice>
+ A number of components are supported, but do not come as part of the standard installation. These extra components are available for individual installation through the JBoss Developer Studio extras site. To access the extras site, select <menuchoice>
<guimenuitem>Help</guimenuitem>
<guimenuitem>Install New Software...</guimenuitem>
</menuchoice> and, click the
@@ -622,7 +622,7 @@
</para>
<para>
- The components available on the extras site will then be listed, which you can select and install by following the prompts.
+ The components available on the extras site will then be listed, which you can select and install by following the prompts. Components that are certified to work with JBoss Developer Studio and JBoss technologies will be marked with <emphasis>(Certified)</emphasis> after the component name.
</para>
<section>
<title>Installing and setting up Subclipse</title>
14 years, 8 months
JBoss Tools SVN: r33820 - branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-11 18:46:39 -0400 (Thu, 11 Aug 2011)
New Revision: 33820
Modified:
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml
Log:
updated for TOOLSDOC-238
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml 2011-08-11 22:04:49 UTC (rev 33819)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Overview.xml 2011-08-11 22:46:39 UTC (rev 33820)
@@ -18,6 +18,11 @@
Full BPEL Editor support is included with installation of JBoss Developer Studio 4.1, and through the Update site for upgrading from previous releases. To access this plug-in when upgrading from a previous version of JBoss Developer Studio, add the JBoss Developer Studio Update site to your installation; see the Getting Started Guide for further information.
</para>
</listitem>
+ <listitem>
+ <para>
+ Certified third-party components. JBoss Developer Studio 4.1 is released with numerous third-party components that have been tested to work with JBoss Developer Studio and JBoss technologies. These components are available through the Extras site; see the Getting Started Guide for further information.
+ </para>
+ </listitem>
</itemizedlist>
<important>
<para>
14 years, 8 months
JBoss Tools SVN: r33819 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-08-11 18:04:49 -0400 (Thu, 11 Aug 2011)
New Revision: 33819
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
Log:
JBIDE-9533
https://issues.jboss.org/browse/JBIDE-9533
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2011-08-11 21:37:37 UTC (rev 33818)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2011-08-11 22:04:49 UTC (rev 33819)
@@ -338,7 +338,7 @@
IBean[] beans = cdiProject.getBeans();
for (IBean bean : beans) {
IResource resource = bean.getResource();
- if(resource!=null && !bean.getBeanClass().isReadOnly() && notValidatedYet(resource)) {
+ if(resource!=null && shouldValidateType(bean.getBeanClass()) && notValidatedYet(resource)) {
filesToValidate.add((IFile)resource);
}
}
@@ -511,14 +511,14 @@
if (reporter.isCancelled()) {
return;
}
- if(bean.getBeanClass().isReadOnly()) {
+ if(!shouldValidateType(bean.getBeanClass())) {
return;
}
String beanPath = bean.getResource().getFullPath().toOSString();
Set<IScopeDeclaration> scopeDeclarations = bean.getScopeDeclarations();
for (IScopeDeclaration scopeDeclaration : scopeDeclarations) {
IScope scope = scopeDeclaration.getScope();
- if (!scope.getSourceType().isReadOnly()) {
+ if (shouldValidateType(scope.getSourceType())) {
getValidationContext().addLinkedCoreResource(SHORT_ID, beanPath, scope.getResource().getFullPath(), false);
}
}
@@ -526,7 +526,7 @@
Set<IQualifierDeclaration> qualifierDeclarations = bean.getQualifierDeclarations();
for (IQualifierDeclaration qualifierDeclaration : qualifierDeclarations) {
IQualifier qualifier = qualifierDeclaration.getQualifier();
- if (!qualifier.getSourceType().isReadOnly()) {
+ if (shouldValidateType(qualifier.getSourceType())) {
getValidationContext().addLinkedCoreResource(SHORT_ID, beanPath, qualifier.getResource().getFullPath(), false);
}
}
@@ -675,7 +675,7 @@
Set<IStereotypeDeclaration> stereotypeDeclarations = stereotyped.getStereotypeDeclarations();
for (IStereotypeDeclaration stereotypeDeclaration : stereotypeDeclarations) {
IStereotype stereotype = stereotypeDeclaration.getStereotype();
- if (!stereotype.getSourceType().isReadOnly()) {
+ if (shouldValidateType(stereotype.getSourceType())) {
getValidationContext().addLinkedCoreResource(SHORT_ID, beanPath, stereotype.getResource().getFullPath(), false);
}
}
@@ -685,7 +685,7 @@
Set<IInterceptorBindingDeclaration> bindingDeclarations = CDIUtil.getAllInterceptorBindingDeclaratios(binded);
for (IInterceptorBindingDeclaration bindingDeclaration : bindingDeclarations) {
IInterceptorBinding binding = bindingDeclaration.getInterceptorBinding();
- if (!binding.getSourceType().isReadOnly()) {
+ if (shouldValidateType(binding.getSourceType())) {
getValidationContext().addLinkedCoreResource(SHORT_ID, beanPath, binding.getResource().getFullPath(), false);
}
}
@@ -771,7 +771,7 @@
}
IBean specializedBean = bean.getSpecializedBean();
if(specializedBean!=null) {
- if(!specializedBean.getBeanClass().isReadOnly()) {
+ if(shouldValidateType(specializedBean.getBeanClass())) {
getValidationContext().addLinkedCoreResource(SHORT_ID, bean.getSourcePath().toOSString(), specializedBean.getResource().getFullPath(), false);
}
@@ -834,7 +834,7 @@
if(specializingBean!=bean && specializingBean.isEnabled()) {
sb.append(", ").append(specializingBean.getSimpleJavaName());
moreThanTwo = true;
- if(!specializingBean.getBeanClass().isReadOnly()) {
+ if(shouldValidateType(specializingBean.getBeanClass())) {
getValidationContext().addLinkedCoreResource(SHORT_ID, specializingBean.getResource().getFullPath().toOSString(), bean.getSourcePath(), false);
getValidationContext().addLinkedCoreResource(SHORT_ID, bean.getSourcePath().toOSString(), specializingBean.getResource().getFullPath(), false);
}
@@ -1304,7 +1304,7 @@
String bindedErrorMessage = NLS.bind(CDIValidationMessages.ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN, new String[]{producerMethod.getMethod().getElementName(), producer.getBeanClass().getElementName()});
addError(bindedErrorMessage, CDIPreferences.ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN, producer.getProducesAnnotation(), producer.getResource(), ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN_ID);
saveAllSuperTypesAsLinkedResources(classBean);
- } else if (method != producerMethod.getMethod() && !method.isReadOnly()) {
+ } else if (method != producerMethod.getMethod() && method.exists() && !method.isReadOnly()) {
getValidationContext().addLinkedCoreResource(SHORT_ID, classBean.getSourcePath().toOSString(), method.getResource().getFullPath(), false);
}
}
@@ -1516,8 +1516,12 @@
boolean instance = type!=null && CDIConstants.INSTANCE_TYPE_NAME.equals(type.getFullyQualifiedName());
Set<IBean> allBeans = cdiProject.getBeans(false, injection);
for (IBean bean : allBeans) {
- if(!bean.getBeanClass().isReadOnly()) {
- getValidationContext().addLinkedCoreResource(SHORT_ID, injection.getSourcePath().toOSString(), bean.getResource().getFullPath(), false);
+ if(shouldValidateType(bean.getBeanClass())) {
+ try {
+ getValidationContext().addLinkedCoreResource(SHORT_ID, injection.getSourcePath().toOSString(), bean.getResource().getFullPath(), false);
+ } catch (NullPointerException e) {
+ throw new NullPointerException("bean exists=" + bean.getBeanClass().exists() + " resource= " + bean.getResource() + " injection= " + injection.getSourcePath());
+ }
}
}
if(type!=null && beans.isEmpty() && !instance) {
@@ -1526,7 +1530,7 @@
addError(CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, CDIPreferences.UNSATISFIED_OR_AMBIGUOUS_INJECTION_POINTS, reference, injection.getResource(), AMBIGUOUS_INJECTION_POINTS_ID);
} else if(beans.size()==1) {
IBean bean = beans.iterator().next();
- if(!bean.getBeanClass().isReadOnly()) {
+ if(shouldValidateType(bean.getBeanClass())) {
/*
* 5.2.4. Primitive types and null values
* - injection point of primitive type resolves to a bean that may have null values, such as a producer method with a non-primitive return type or a producer field with a non-primitive type
@@ -2081,7 +2085,7 @@
if(!checkTheOnlySuper(decorator, delegateParametedType)) {
Set<IParametedType> decoratedParametedTypes = decorator.getDecoratedTypes();
List<String> supers = null;
- if(!delegateType.isReadOnly()) {
+ if(shouldValidateType(delegateType)) {
getValidationContext().addLinkedCoreResource(SHORT_ID, decorator.getResource().getFullPath().toOSString(), delegateType.getResource().getFullPath(), false);
}
for (IParametedType decoratedParametedType : decoratedParametedTypes) {
@@ -2089,7 +2093,7 @@
if(decoratedType==null) {
continue;
}
- if(!decoratedType.isReadOnly()) {
+ if(shouldValidateType(decoratedType)) {
getValidationContext().addLinkedCoreResource(SHORT_ID, decorator.getResource().getFullPath().toOSString(), decoratedType.getResource().getFullPath(), false);
}
String decoratedTypeName = decoratedType.getFullyQualifiedName();
@@ -2247,16 +2251,14 @@
}
boolean shouldValidateResourceOfElement(IResource resource) {
- if (resource == null) {
- return false;
- }
- if (resource == null || !resource.getName().toLowerCase().endsWith(".java")) {
- // validate sources only
- return false;
- }
- return true;
+ // validate existing sources only
+ return resource != null && resource.exists() && resource.getName().toLowerCase().endsWith(".java");
}
+ boolean shouldValidateType(IType type) {
+ return type.exists() && !type.isReadOnly();
+ }
+
/**
* Validates a stereotype.
*
@@ -2320,7 +2322,7 @@
}
boolean shouldValidateAnnotation(ICDIAnnotation annotation) {
- return annotation!=null && annotation.getSourceType() != null && !annotation.getSourceType().isReadOnly();
+ return annotation!=null && annotation.getSourceType() != null && shouldValidateType(annotation.getSourceType());
}
private void validateInterceptorBinding(IInterceptorBinding binding) {
@@ -2419,4 +2421,5 @@
CDICorePlugin.getDefault().logError(e);
}
}
+
}
\ No newline at end of file
14 years, 8 months
JBoss Tools SVN: r33818 - in trunk: jst/plugins/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-08-11 17:37:37 -0400 (Thu, 11 Aug 2011)
New Revision: 33818
Added:
trunk/jst/plugins/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/ValidationProjectTestSetup.java
Removed:
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KBProjectTestSetup.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JSPProblemMarkerResolutionTest.java
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java
Log:
https://issues.jboss.org/browse/JBIDE-9532
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JSPProblemMarkerResolutionTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JSPProblemMarkerResolutionTest.java 2011-08-11 20:56:13 UTC (rev 33817)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JSPProblemMarkerResolutionTest.java 2011-08-11 21:37:37 UTC (rev 33818)
@@ -3,14 +3,11 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ui.IMarkerResolution;
+import org.jboss.tools.jst.jsp.test.TestUtil;
import org.jboss.tools.jst.web.ui.action.JSPProblemMarkerResolutionGenerator;
-import org.jboss.tools.test.util.JobUtils;
-import org.jboss.tools.test.util.ProjectImportTestSetup;
import org.jboss.tools.tests.AbstractResourceMarkerTest;
public class JSPProblemMarkerResolutionTest extends AbstractResourceMarkerTest{
@@ -24,33 +21,22 @@
super(name);
}
+ @Override
protected void setUp() throws Exception {
- JobUtils.waitForIdle();
- IResource project = ResourcesPlugin.getWorkspace().getRoot().findMember("test_jsf_project");
- if(project == null) {
- ProjectImportTestSetup setup = new ProjectImportTestSetup(
- this,
- "org.jboss.tools.jsf.ui.test",
- "projects/test_jsf_project",
- "test_jsf_project");
- project = setup.importProject();
- }
- this.project = project.getProject();
- this.project.build(IncrementalProjectBuilder.FULL_BUILD, null);
- JobUtils.waitForIdle();
+ project = ResourcesPlugin.getWorkspace().getRoot().getProject("test_jsf_project");
}
-
+
public void testProblemMarkerResolutionInJSP() throws CoreException {
IFile jspFile = project.getFile("WebContent/pages/test_page1.jsp");
-
- assertMarkerIsCreated(jspFile, "org.eclipse.jst.jsp.core.validationMarker", "Unknown tag (h:commandButton).");
-
+
+ assertMarkerIsCreated(jspFile, "org.eclipse.jst.jsp.core.validationMarker", "Unknown tag (h:commandButton).", true, 8);
+
IMarker[] markers = findMarkers(jspFile, "org.eclipse.jst.jsp.core.validationMarker", "Unknown tag (h:commandButton).");
-
+
assertEquals(1, markers.length);
-
+
JSPProblemMarkerResolutionGenerator generator = new JSPProblemMarkerResolutionGenerator();
-
+
for(IMarker marker : markers){
generator.hasResolutions(marker);
IMarkerResolution[] resolutions = generator.getResolutions(marker);
@@ -58,23 +44,23 @@
resolution.run(marker);
}
}
-
- refreshProject(project);
-
+
+ TestUtil.validate(jspFile);
+
assertMarkerIsNotCreated(jspFile, "org.eclipse.jst.jsp.core.validationMarker", "Unknown tag (h:commandButton).");
}
-
+
public void testProblemMarkerResolutionInXHTML() throws CoreException {
IFile jspFile = project.getFile("WebContent/pages/test_page2.xhtml");
-
- assertMarkerIsCreated(jspFile, "org.eclipse.wst.html.core.validationMarker", "Unknown tag (ui:insert).");
-
+
+ assertMarkerIsCreated(jspFile, "org.eclipse.wst.html.core.validationMarker", "Unknown tag (ui:insert).", true, 8, 17, 31);
+
IMarker[] markers = findMarkers(jspFile, "org.eclipse.wst.html.core.validationMarker", "Unknown tag (ui:insert).");
-
+
assertEquals(3, markers.length);
-
+
JSPProblemMarkerResolutionGenerator generator = new JSPProblemMarkerResolutionGenerator();
-
+
for(IMarker marker : markers){
generator.hasResolutions(marker);
IMarkerResolution[] resolutions = generator.getResolutions(marker);
@@ -82,20 +68,9 @@
resolution.run(marker);
}
}
-
- refreshProject(project);
-
+
+ TestUtil.validate(jspFile);
+
assertMarkerIsNotCreated(jspFile, "org.eclipse.wst.html.core.validationMarker", "Unknown tag (ui:insert).");
}
-
- private void refreshProject(IProject project){
- try {
- project.refreshLocal(IResource.DEPTH_INFINITE, null);
- project.build(IncrementalProjectBuilder.FULL_BUILD, null);
- JobUtils.waitForIdle();
- JobUtils.delay(2000);
- } catch (CoreException e) {
- // ignore
- }
- }
-}
+}
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java 2011-08-11 20:56:13 UTC (rev 33817)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/JsfUiAllTests.java 2011-08-11 21:37:37 UTC (rev 33818)
@@ -25,8 +25,8 @@
import org.jboss.tools.jsf.jsp.ca.test.CASuggestsNotOnlyELProposalsJBIDE2437Test;
import org.jboss.tools.jsf.jsp.ca.test.CAUnnecessaryElementsForDirAttributeInXHTMLPageJBIDE1813Test;
import org.jboss.tools.jsf.jsp.ca.test.CAVarAttributeForDataTableTagJBIDE2016;
+import org.jboss.tools.jsf.jsp.ca.test.JavaClassContentAssistProviderTest;
import org.jboss.tools.jsf.jsp.ca.test.JsfJBide3845Test;
-import org.jboss.tools.jsf.jsp.ca.test.JavaClassContentAssistProviderTest;
import org.jboss.tools.jsf.jsp.ca.test.JsfJspJbide1704Test;
import org.jboss.tools.jsf.jsp.ca.test.JsfJspJbide1717Test;
import org.jboss.tools.jsf.jsp.ca.test.JsfJspJbide6259Test;
@@ -34,6 +34,7 @@
import org.jboss.tools.jsf.jsp.ca.test.JspElFunctionsTest;
import org.jboss.tools.jsf.jsp.ca.test.WebContentAssistProviderTest;
import org.jboss.tools.jsf.ui.test.refactoring.ELReferencesRenameTest;
+import org.jboss.tools.jst.jsp.test.ValidationProjectTestSetup;
import org.jboss.tools.test.util.ProjectImportTestSetup;
public class JsfUiAllTests {
@@ -88,7 +89,7 @@
"org.jboss.tools.jsf.ui.test",
new String[]{"projects/test_add_jsf_capabilities"},
new String[]{"test_add_jsf_capabilities"}));
- suite.addTest(new ProjectImportTestSetup(new TestSuite(JSPProblemMarkerResolutionTest.class),
+ suite.addTest(new ValidationProjectTestSetup(new TestSuite(JSPProblemMarkerResolutionTest.class),
"org.jboss.tools.jsf.ui.test",
new String[]{"projects/test_jsf_project"},
new String[]{"test_jsf_project"}));
Copied: trunk/jst/plugins/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/ValidationProjectTestSetup.java (from rev 33816, trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KBProjectTestSetup.java)
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/ValidationProjectTestSetup.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/ValidationProjectTestSetup.java 2011-08-11 21:37:37 UTC (rev 33818)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.jsp.test;
+
+import junit.framework.Test;
+
+import org.eclipse.core.resources.IProject;
+import org.jboss.tools.test.util.ProjectImportTestSetup;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class ValidationProjectTestSetup extends ProjectImportTestSetup {
+
+ public ValidationProjectTestSetup(Test test, String bundleName, String projectPath, String projectName) {
+ super(test,bundleName, projectPath, projectName);
+ }
+
+ public ValidationProjectTestSetup(Test test, String bundleName, String[] projectPaths, String[] projectNames) {
+ super(test, bundleName, projectPaths, projectNames);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.common.model.util.test.XProjectImportTestSetUp#setUp()
+ */
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ for (IProject project : projects) {
+ TestUtil._waitForValidation(project);
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.jsp.base.test/src/org/jboss/tools/jst/jsp/test/ValidationProjectTestSetup.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java 2011-08-11 20:56:13 UTC (rev 33817)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/JstWebKbAllTests.java 2011-08-11 21:37:37 UTC (rev 33818)
@@ -14,6 +14,7 @@
import junit.framework.TestSuite;
import org.jboss.tools.common.model.util.test.XProjectImportTestSetUp;
+import org.jboss.tools.jst.jsp.test.ValidationProjectTestSetup;
import org.jboss.tools.jst.web.kb.test.validation.BuilderOrderMarkerResolutionTest;
import org.jboss.tools.jst.web.kb.test.validation.KBValidationTest;
import org.jboss.tools.test.util.ProjectImportTestSetup;
@@ -48,7 +49,7 @@
suiteAll.addTestSuite(KBValidationTest.class);
suite = new TestSuite(BuilderOrderMarkerResolutionTest.class.getName());
suite.addTestSuite(BuilderOrderMarkerResolutionTest.class);
- testSetup = new KBProjectTestSetup(suite,
+ testSetup = new ValidationProjectTestSetup(suite,
"org.jboss.tools.jst.web.kb.test",
new String[]{"projects/TestBrokenBuilderOrder"},
new String[]{"TestBrokenBuilderOrder"});
Deleted: trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KBProjectTestSetup.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KBProjectTestSetup.java 2011-08-11 20:56:13 UTC (rev 33817)
+++ trunk/jst/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/KBProjectTestSetup.java 2011-08-11 21:37:37 UTC (rev 33818)
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jst.web.kb.test;
-
-import junit.framework.Test;
-
-import org.eclipse.core.resources.IProject;
-import org.jboss.tools.common.model.util.test.XProjectImportTestSetUp;
-import org.jboss.tools.jst.jsp.test.TestUtil;
-
-/**
- * @author Alexey Kazakov
- */
-public class KBProjectTestSetup extends XProjectImportTestSetUp {
-
- public KBProjectTestSetup(Test test, String bundleName, String projectPath, String projectName) {
- super(test,bundleName, projectPath, projectName);
- }
-
- public KBProjectTestSetup(Test test, String bundleName, String[] projectPaths, String[] projectNames) {
- super(test, bundleName, projectPaths, projectNames);
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.tools.common.model.util.test.XProjectImportTestSetUp#setUp()
- */
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- for (IProject project : projects) {
- TestUtil._waitForValidation(project);
- }
- }
-}
\ No newline at end of file
14 years, 8 months
JBoss Tools SVN: r33817 - in trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi: internal/core/impl and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-08-11 16:56:13 -0400 (Thu, 11 Aug 2011)
New Revision: 33817
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java
Log:
JBIDE-9531
https://issues.jboss.org/browse/JBIDE-9531
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-08-11 16:19:27 UTC (rev 33816)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2011-08-11 20:56:13 UTC (rev 33817)
@@ -169,14 +169,14 @@
}
public List<AnnotationDefinition> getAllAnnotations() {
- Set<CDICoreNature> ps = getCDIProjects(true);
+ Set<CDICoreNature> ps = getCDIProjects(false);
if(ps == null || ps.isEmpty()) {
return getDefinitions().getAllAnnotations();
}
List<AnnotationDefinition> result = new ArrayList<AnnotationDefinition>();
Set<IType> types = new HashSet<IType>();
for (CDICoreNature p: ps) {
- List<AnnotationDefinition> ds2 = p.getDefinitions().getAllAnnotations();
+ List<AnnotationDefinition> ds2 = p.getAllAnnotations();
for (AnnotationDefinition d: ds2) {
IType t = d.getType();
if(t != null && !types.contains(t)) {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2011-08-11 16:19:27 UTC (rev 33816)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIProject.java 2011-08-11 20:56:13 UTC (rev 33817)
@@ -175,19 +175,17 @@
public IClassBean getBeanClass(IType type) {
IPath path = type.getPath();
- if(path != null) {
- Set<IBean> bs = null;
- synchronized (beansByPath) {
- bs = beansByPath.get(path);
- }
- if(bs != null) {
- synchronized(bs) {
- for (IBean b: bs) {
- if(b instanceof IClassBean) {
- IClassBean result = (IClassBean)b;
- if(type.getFullyQualifiedName().equals(result.getBeanClass().getFullyQualifiedName())) {
- return result;
- }
+ Set<IBean> bs = null;
+ synchronized (beansByPath) {
+ bs = beansByPath.get(path);
+ }
+ if(bs != null) {
+ synchronized(bs) {
+ for (IBean b: bs) {
+ if(b instanceof IClassBean) {
+ IClassBean result = (IClassBean)b;
+ if(type.getFullyQualifiedName().equals(result.getBeanClass().getFullyQualifiedName())) {
+ return result;
}
}
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2011-08-11 16:19:27 UTC (rev 33816)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ClassBean.java 2011-08-11 20:56:13 UTC (rev 33817)
@@ -71,6 +71,10 @@
super.setDefinition(definition);
List<MethodDefinition> ms = definition.getMethods();
for (MethodDefinition m: ms) {
+ if(!m.getMethod().exists()) {
+ //update may be run on project that was not rebuilt
+ continue;
+ }
BeanMethod bm = null;
if(m.getProducesAnnotation() != null) {
bm = newProducerMethod(m);
@@ -88,6 +92,10 @@
}
List<FieldDefinition> fs = definition.getFields();
for (FieldDefinition f: fs) {
+ if(!f.getField().exists()) {
+ //update may be run on project that was not rebuilt
+ continue;
+ }
BeanField bf = null;
if(f.getProducesAnnotation() != null) {
bf = newProducerField(f);
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java 2011-08-11 16:19:27 UTC (rev 33816)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/DefinitionContext.java 2011-08-11 20:56:13 UTC (rev 33817)
@@ -40,6 +40,7 @@
private Map<IPath, Set<String>> resources = new HashMap<IPath, Set<String>>();
private Map<String, TypeDefinition> typeDefinitions = new HashMap<String, TypeDefinition>();
private Map<String, AnnotationDefinition> annotations = new HashMap<String, AnnotationDefinition>();
+ private Map<String, AnnotationDefinition> usedAnnotations = new HashMap<String, AnnotationDefinition>();
private Set<String> packages = new HashSet<String>();
private Map<String, PackageDefinition> packageDefinitions = new HashMap<String, PackageDefinition>();
@@ -393,39 +394,71 @@
}
public AnnotationDefinition getAnnotation(IType type) {
- String name = type.getFullyQualifiedName();
- AnnotationDefinition result = annotations.get(name);
- if(result == null) {
- Set<CDICoreNature> ns = project.getCDIProjects(true);
- for (CDICoreNature n: ns) {
- result = n.getDefinitions().getAnnotation(type);
- if(result != null) {
- break;
- }
- }
- }
- return result;
+ return getAnnotation(type.getFullyQualifiedName());
}
+ /**
+ * Looks up for annotation definition loaded by this project or by projects used by it.
+ */
public AnnotationDefinition getAnnotation(String fullyQualifiedName) {
+ //1. Look in annotations loaded by this project
AnnotationDefinition result = annotations.get(fullyQualifiedName);
- if(result == null) {
+ //2. Validate result.
+ if(result != null && (!result.getType().exists())) {
+ synchronized (annotations) {
+ annotations.remove(fullyQualifiedName);
+ }
+ result = null;
+ }
+ if(result == null || usedAnnotations.containsKey(fullyQualifiedName)
+ || (result.getType().getResource() != null && result.getType().getResource().getProject() != project.getProject())
+ ) {
+ //3. Look in annotations loaded by used projects
Set<CDICoreNature> ns = project.getCDIProjects(true);
for (CDICoreNature n: ns) {
- result = n.getDefinitions().getAnnotation(fullyQualifiedName);
- if(result != null) {
+ AnnotationDefinition r = n.getDefinitions().getAnnotation(fullyQualifiedName);
+ if(r != null) {
+ result = r;
+ //4. Store result for the case if used project is cleaned.
+ synchronized (usedAnnotations) {
+ usedAnnotations.put(fullyQualifiedName, result);
+ }
break;
}
}
}
+ if(result == null && usedAnnotations.containsKey(fullyQualifiedName)) {
+ //4. Finally, try in annotations obtained earlier from used projects - they may be cleaned now.
+ // The result may be out-of-date until used project is rebuilt.
+ result = usedAnnotations.get(fullyQualifiedName);
+ if(!result.getType().exists()) {
+ synchronized (usedAnnotations) {
+ usedAnnotations.remove(fullyQualifiedName);
+ }
+ result = null;
+ }
+ }
return result;
}
+ /**
+ * Returns both annotations loaded by this project, and stored annotations
+ * loaded by used projects. This method can be only used in combination with
+ * getting up-to-date annotations from used projects. Stored annotations
+ * can only be used if used project is cleaned.
+ *
+ * @return
+ */
public List<AnnotationDefinition> getAllAnnotations() {
List<AnnotationDefinition> result = new ArrayList<AnnotationDefinition>();
+ //1. Add annotations loaded by this project.
synchronized (annotations) {
result.addAll(annotations.values());
}
+ //2. Add stored annotations loaded by used projects. They may be out-of-date.
+ synchronized (usedAnnotations) {
+ result.addAll(usedAnnotations.values());
+ }
return result;
}
14 years, 8 months
JBoss Tools SVN: r33816 - trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2011-08-11 12:19:27 -0400 (Thu, 11 Aug 2011)
New Revision: 33816
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/OpenCDINamedBeanDialog.java
Log:
JBIDE-7892
Search for @Named beans.
Open CDI Named Bean Dialog is added
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/OpenCDINamedBeanDialog.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/OpenCDINamedBeanDialog.java 2011-08-11 13:17:18 UTC (rev 33815)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/wizard/OpenCDINamedBeanDialog.java 2011-08-11 16:19:27 UTC (rev 33816)
@@ -392,7 +392,7 @@
if (bean == null) {
IProject project = ResourcesPlugin.getWorkspace().getRoot()
.getProject(projectName);
- if (project != null) {
+ if (project.isAccessible()) {
ICDIProject cdiProject = CDICorePlugin.getCDIProject(
project, true);
if (cdiProject != null) {
14 years, 8 months