[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-2598) hibernatetools & jboss.tools.common plugins together write exceptions to Error Log when I first time open "Hibernate Configuration 3.0 XML Editor"

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Aug 8 06:51:51 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBIDE-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12424204#action_12424204 ] 

Viacheslav Kabanovich commented on JBIDE-2598:
----------------------------------------------

1) Class org.jboss.tools.common.meta.impl.adapters.XAdapterProjectsRoot can be moved to common model plugin.
2, 3) Common model plugin defines some features and requests implementations from other plugins by id using extension point 'org.jboss.tools.common.model.classes'. It would be more appropriate to define extension point for each of  these features, then model would not need to use specific ids, but there is just a single implementation class and new extension points seem too grand for such small things. So lets just check if plugin declaring the implementation exists (Plugin.getBundle(id) != null). 
4) Here again, we could have extension point 'model_natures' rather than code known model natures into a list. And again, we have just two of them and are not going to increase the number. So lets also just check existence of plugins.


> hibernatetools & jboss.tools.common plugins together write exceptions to Error Log when I first time open "Hibernate Configuration 3.0 XML Editor" 
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-2598
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-2598
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common
>    Affects Versions: 3.0.0.alpha
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Viacheslav Kabanovich
>            Priority: Minor
>             Fix For: 3.0.0.beta1
>
>
> I'd like to get "Hibernate Configuration 3.0 XML Editor" in my workspace, I import all jboss.tools.common plugins and get exceptions - I find the reason - telling it shortly - I should import almost all jbosstools plugins into my workspace - so I'll report about the problem as a bug - this is nothing - just about 10 error messages in Error Log - but as a user if I try to use separated hibernatetools - I do not want to see error massages about - org.jboss.tools.jsf.jsfnature - if I wan't to use jsf at all... Also the reason of the problem - in my workspace I have several projects - one of them - SeamTestPrj - has jsfnature - but other project ZZ has no - I try to open hibernate.cfg.xml from ZZ project and get exceptions:
> 1)
> Model feature org.jboss.tools.common.meta.impl.adapters.XAdapterProjectsRoot is not registered with extension point org.jboss.tools.common.model.classes
> java.lang.Exception: Model feature org.jboss.tools.common.meta.impl.adapters.XAdapterProjectsRoot is not registered with extension point org.jboss.tools.common.model.classes
> at org.jboss.tools.common.model.util.ModelFeatureFactory.createFeatureInstance(ModelFeatureFactory.java:83)
> at org.jboss.tools.common.meta.impl.AdapterHolder.doGetAdapter(XAttributeImpl.java:236)
> at org.jboss.tools.common.meta.impl.AdapterHolder.getAdapter(XAttributeImpl.java:220)
> at org.jboss.tools.common.meta.impl.XAttributeImpl.getAdapter(XAttributeImpl.java:179)
> 2)
> Model feature org.jboss.tools.jst.web.tld.model.handlers.JSPAdopt is not registered with extension point org.jboss.tools.common.model.classes
> java.lang.Exception: Model feature org.jboss.tools.jst.web.tld.model.handlers.JSPAdopt is not registered with extension point org.jboss.tools.common.model.classes
> at org.jboss.tools.common.model.util.ModelFeatureFactory.createFeatureInstance(ModelFeatureFactory.java:83)
> at org.jboss.tools.common.model.ui.dnd.ControlDragDrop.<clinit>(ControlDragDrop.java:32)
> at org.jboss.tools.common.model.ui.outline.XModelObjectContentOutlineProvider.<init>(XModelObjectContentOutlineProvider.java:35)
> at org.jboss.tools.common.editor.ObjectMultiPageEditor.<init>(ObjectMultiPageEditor.java:80)
> 3)
> Model feature org.jboss.tools.jst.web.project.FileSystemsRenameListenerContribution is not registered with extension point org.jboss.tools.common.model.classes
> java.lang.Exception: Model feature org.jboss.tools.jst.web.project.FileSystemsRenameListenerContribution is not registered with extension point org.jboss.tools.common.model.classes
> at org.jboss.tools.common.model.util.ModelFeatureFactory.createFeatureInstance(ModelFeatureFactory.java:83)
> at org.jboss.tools.common.model.filesystems.impl.FileSystemsRenameListener.<clinit>(FileSystemsRenameListener.java:27)
> at org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl.<init>(FileSystemsImpl.java:33)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 4-14)
> Missing project nature extension for org.jboss.tools.jsf.jsfnature.
> org.eclipse.core.internal.resources.ResourceException: Missing project nature extension for org.jboss.tools.jsf.jsfnature.
> 	at org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:214)
> 	at org.eclipse.core.internal.resources.Project.getNature(Project.java:378)
> 	at org.jboss.tools.common.model.util.EclipseResourceUtil.getModelNature(EclipseResourceUtil.java:207)
> 	at org.jboss.tools.common.model.util.EclipseResourceUtil.getObjectByResource(EclipseResourceUtil.java:91)
> 	at org.jboss.tools.common.model.markers.XMarkerManager.reload(XMarkerManager.java:61)
> 	at org.jboss.tools.common.model.markers.XMarkerManager.reload(XMarkerManager.java:53)
> 	at org.jboss.tools.common.model.markers.XMarkerManager.<init>(XMarkerManager.java:37)
> 	at org.jboss.tools.common.model.markers.XMarkerManager.getInstance(XMarkerManager.java:28)
> 	at org.jboss.tools.common.model.ui.navigator.LabelDecoratorImpl.getErrorState(LabelDecoratorImpl.java:71)
> 	at org.jboss.tools.common.model.ui.navigator.LabelDecoratorImpl.decorateImage(LabelDecoratorImpl.java:40)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list