[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] org.eclipse.wst.sse.ui.semanticHighlighting extension

excuse my ignorance, the patch wasn't applied correctly...

it's working fine now, thanks!


-robert




On 27.06.11 14:46, èåä wrote:
did you see my attachment,looks much the same?
but I did not add the instanceof judement,I will add it now,lol
if (o instanceof AbstractSemanticHighlighting) {

}


2011/6/27 Robert GrÃndler <r.gruendler@xxxxxxxxx>
nope, i'm still getting the ClassNotFoundException for my extension.

according to the irc channel the problem is line 71:

AbstractSemanticHighlighting instance = clazz.newInstance();

which should look more like this:

final Object o = element.createExecutableExtension("class");

if (o instanceof AbstractSemanticHighlighting) {
AbstractSemanticHighlighting instance = (AbstractSemanticHighlighting) o;
rules.add(instance);


}


not sure though if this causes the ClassNotFoundException though.


regards

-robert








On 27.06.11 14:21, èåä wrote:
hi,

Does this patch work?

2011/6/27 Robert GrÃndler <r.gruendler@xxxxxxxxx>
Hi again,

i tried to follow the Wiki entry to add SemanticHighlighting to my plugin for
PHP Annotations:

http://wiki.eclipse.org/PDT/Dev2Dev/Semantic

by adding an extension point like this:

<extension
   point="org.eclipse.wst.sse.ui.semanticHighlighting">
<highlighting
    Âclass="org.eclipse.symfony.ui.editor.highlighting.AnnotationHighlighting"
    Âtarget="org.eclipse.php.core.phpsource">
</highlighting>
</extension>

I'm getting a ClassNotFoundException during startup for org.eclipse.symfony.ui.editor.highlighting.AnnotationHighlighting,
although my plugin is exporting the necessary packages.

According to the eclipse irc channel, the way the SemanticHighlighting extensions are loaded by the PDT plugin will only work for internal pdt-bundle classes (in SemanticHighlightingManager line 71).

Is this a bug in PDT or am i just not providing the extension point correctly?

thanks!

-robert




_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev



--

Thanks!

Best Regards!

Zhao
_______________________________________________ pdt-dev mailing list pdt-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/pdt-dev


_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev




--

Thanks!

Best Regards!

Zhao
_______________________________________________ pdt-dev mailing list pdt-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/pdt-dev