[jbosstools-issues] [JBoss JIRA] (JBIDE-20672) Connector category title is random, when two categories have same ID

Nick Boldt (JIRA) issues at jboss.org
Wed Sep 23 11:10:00 EDT 2015


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

Nick Boldt commented on JBIDE-20672:
------------------------------------

It's a twofold solution...

a) have different category/group ids between the "core" and "EA" listings (I added ".ea"), so that a connector can appear in one or the other.
b) use the SAME connector ids in both plugins, so that when EA is enabled, you get the EA version; when disabled, you get the core version.

As to preventing people from fatfingering in the future, the only thing that prevents it (currently) is looking in the Eclipse console log for warnings about dupe categories/connectors/groups.

> Connector category title is random, when two categories have same ID
> --------------------------------------------------------------------
>
>                 Key: JBIDE-20672
>                 URL: https://issues.jboss.org/browse/JBIDE-20672
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central
>         Environment: JBDS 9.0.0.CR1
>            Reporter: Radim Hopp
>            Assignee: Nick Boldt
>             Fix For: 4.3.0.CR1
>
>
> Currently,in both central discovery jar and EA discovery jar, we have connector category with same ID, but different title (name).
> {noformat:title=com.jboss.jbds.central.discovery_9.0.0.CR1-v20150913-1206-B111.jar/plugin.xml}
>        <connectorCategory
>           description="JBoss Developer Studio Integration Stack Tools for use with individual JBoss projects (or products)."
>           id="com.jboss.jbds.central.discovery.integration-stack.bundle" 
>           name="JBoss Developer Studio Integration Stack"
>           relevance="90">
>          <group id="com.jboss.jbds.central.discovery.integration-stack.bundle-fuse" />
>        </connectorCategory>
> {noformat}
> {noformat:title=com.jboss.jbds.central.discovery.earlyaccess_9.0.0.CR1-v20150913-1206-B111.jar}
>        <connectorCategory
>           description="Early Access JBoss Developer Studio Integration Stack Tools for use with individual JBoss projects (or products)."
>           id="com.jboss.jbds.central.discovery.integration-stack.bundle" 
>           name="JBoss Developer Studio Integration Stack Early Access"
>           relevance="90">
>          <group id="com.jboss.jbds.central.discovery.integration-stack.bundle-fuse" />
> {noformat}
> Expected behavior is:
> * EA is disabled - Title and description from com.jboss.jbds.central.discovery_9.0.0.CR1-v20150913-1206-B111.jar/plugin.xml is displayed.
> * EA is enabled - Title and description from com.jboss.jbds.central.discovery.earlyaccess_9.0.0.CR1-v20150913-1206-B111.jar is displayed
> Unfortunately, the title&description is shown completely by random.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list