Author: scabanovich
Date: 2011-05-19 20:24:15 -0400 (Thu, 19 May 2011)
New Revision: 31390
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/AlternativeInjectedPointListHyperlink.java
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/InjectedPointHyperlink.java
Log:
JBIDE-8692
https://issues.jboss.org/browse/JBIDE-8692
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/AlternativeInjectedPointListHyperlink.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/AlternativeInjectedPointListHyperlink.java 2011-05-20
00:10:09 UTC (rev 31389)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/AlternativeInjectedPointListHyperlink.java 2011-05-20
00:24:15 UTC (rev 31390)
@@ -44,7 +44,7 @@
int index=0;
for(IBean bean : beans){
- hyperlinks[index++] = new InjectedPointHyperlink(region, bean, getDocument());
+ hyperlinks[index++] = createHyperlink(region, bean);
}
if(hyperlinks.length == 0){
@@ -59,6 +59,10 @@
}
}
+ protected IHyperlink createHyperlink(IRegion region, IBean bean) {
+ return new InjectedPointHyperlink(region, bean, getDocument());
+ }
+
@Override
public String getHyperlinkText() {
return CDIExtensionsMessages.CDI_INJECTED_POINT_HYPERLINK_SHOW_ALTERNATIVES;
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/InjectedPointHyperlink.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/InjectedPointHyperlink.java 2011-05-20
00:10:09 UTC (rev 31389)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.text.ext/src/org/jboss/tools/cdi/text/ext/hyperlink/InjectedPointHyperlink.java 2011-05-20
00:24:15 UTC (rev 31390)
@@ -27,7 +27,7 @@
import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink;
public class InjectedPointHyperlink extends AbstractHyperlink{
- IBean bean;
+ protected IBean bean;
IRegion region;
boolean first = false;