[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7100) Wrong proposals appear in CA Window for CSS styles inside <style></style> tag

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Tue Jun 28 11:56:23 EDT 2011


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

Victor Rubezhny commented on JBIDE-7100:
----------------------------------------

I have tested this issue in pure Eclipse 3.7/WTP. So, it's normal WTP behavior to show tag insertion proposals between the <style>/</style> opening/closing tags as well as CSS style proposals. And the relevance of tag proposals is greater that the relevance of CSS Style proposals, so, the Tag proposals are shown on top of the proposal list.

I've added a workaround to avoid calculating the tag proposals from JBoss Tools CA if cursor is placed in between <style> </style>, but it's not a common behavior for WTP HTML editor.

The same is true for JBIDE-9092

> Wrong proposals appear in CA Window for CSS styles inside <style></style> tag
> -----------------------------------------------------------------------------
>
>                 Key: JBIDE-7100
>                 URL: https://issues.jboss.org/browse/JBIDE-7100
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsp/jsf/xml source editing
>    Affects Versions: 3.2.0.M2
>         Environment: Eclipse 3.6; WTP 3.2
>            Reporter: Victor Rubezhny
>            Assignee: Victor Rubezhny
>             Fix For: 3.3.0.M3
>
>
> Wrong proposals appear in CA Window for CSS styles inside <style></style> tag when:
> 1. There is at least one whitespace character is placed between opening and closing "style" tags
> -and-
> 2. The CA is invoked when the cursor is pointed right before the closing tag (i.e. "<style type="text/css"> |</style>", where "|"-char indicates the cursor position.
> In such cases WTP suggests proposals for a new tags insertion, but not the CSS proposals.
> Probably it's WTP's issue, because:
> 1. WTP decides which kind of proposals are to be calculated at some cursor position.
> 2. We don't add any computers for CSS proposals since WTP 3.2
> JUnit test org.jboss.tools.jst.jsp.test.ca.Jbide1791Test fails because of this issue.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list