- This topic has 6 replies, 3 voices, and was last updated 18 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
Greg LindholmMemberME5.0GA, Eclipse 3.2, Win XP pro, Java 1.4.2_10.
In all the MyEclipse JSP editors if you position into a style=”” attribute and hit CTRL+Space for code completion all you get is “JSP Expression”. It doesn’t matter what element tag the style attribute is on.
In previous release ME 4.1.1 GA CTRL+Space in a style attribute would bring up the list CSS style elements. This was Very Very helpful, how do I reenable this functionality?
This is almost a show-stopper for this release, my web designers are going to revert to earlier release if this feature isn’t available.
Riyad KallaMemberActually CSS style autocomplete has never been support AFAIK, it’s possible you were using a different JSP editor in your old install, if you still have it around try and load it up and check (Right click > Open With) what was opennig your JSP files. I suppose ti’s possible we inherited something from WTP, but I really don’t think that feature was ever in MyEclipse.
Greg LindholmMemberI tried it again at home with ME 4.1.0 GA & Eclipse 3.1.1 and open the file with “MyEclipse ‘Classic’ JSP Editor.”
Click inside the quotes of style=”” and CTRL+Space and it pop open a code completion scrolling list of all the CSS elements, works great.
Also tried opening it with “MyEclispe JSP Designer” and it works there as well.
It’s a great feature, my web designers use it constantly, and there really disappointed that the new 5.0GA release doesn’t work.
Riyad KallaMemberCan you give me a sample JSP and CSS file to use for this? I cannot reproduce this locally. I downloaded Eclipse 3.1.2 SDK and MyEclipse 4.1.1, then Eclipse 3.2 SDK and MyEclipse 5.0.1 and installed all of them in their own dirs and created two separate workspaces (new). Then I created a sample project in the 4.1.1 setup that used a JSP page like this:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>My JSP 'index.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <link rel="stylesheet" type="text/css" href="zen-garden.css"> </head> <body> This is my JSP page. <br> <h1 style="" > </body> </html>
and this CSS file:
/* css Zen Garden default style v1.01 */ /* css released under Creative Commons License - http://creativecommons.org/licenses/by-nc-sa/1.0/ */ /* This file based on 'Tranquille' by Dave Shea */ /* You may use this file as a foundation for any new work, but you may find it easier to start from scratch. */ /* Not all elements are defined in this file, so you'll most likely want to refer to the xhtml as well. */ /* Images should be linked as if the CSS file sits in the same folder as the images. ie. no paths. */ /* basic elements */ body { font: 8pt/16pt georgia; color: #555753; background: #fff url(blossoms.jpg) no-repeat bottom right; margin: 0px; } p { font: 8pt/16pt georgia; margin-top: 0px; text-align: justify; } h3 { font: italic normal 12pt georgia; letter-spacing: 1px; margin-bottom: 0px; color: #7D775C; } a:link { font-weight: bold; text-decoration: none; color: #B7A5DF; } a:visited { font-weight: bold; text-decoration: none; color: #D4CDDC; } a:hover, a:active { text-decoration: underline; color: #9685BA; } h1.test { text-decoration: underline; color: #9685BA; } /* specific divs */ #container { background: url(zen-bg.jpg) no-repeat top left; padding: 0px 175px 0px 110px; margin: 0px; } #intro { min-width: 470px; } #pageHeader { margin-bottom: 20px; } /* using an image to replace text in an h1. This trick courtesy Douglas Bowman, http://www.stopdesign.com/articles/css/replace-text/ */ #pageHeader h1 { background: transparent url(h1.gif) no-repeat top left; margin-top: 10px; width: 219px; height: 87px; float: left; } #pageHeader h1 span { display:none } #pageHeader h2 { background: transparent url(h2.gif) no-repeat top left; margin-top: 58px; margin-bottom: 40px; width: 200px; height: 18px; float: right; } #pageHeader h2 span { display:none; } #quickSummary { clear:both; margin: 20px 20px 20px 10px; width: 160px; float: left; } #quickSummary p { font: italic 10pt/22pt georgia; text-align:center; } #preamble { clear: right; padding: 0px 10px 0px 10px; } #supportingText { padding-left: 10px; margin-bottom: 40px; } #footer { text-align: center; } #footer a:link, #footer a:visited { margin-right: 20px; } #linkList { margin-left: 600px; position: absolute; top: 0px; right: 0px; } #linkList2 { font: 10px verdana, sans-serif; background: transparent url(paper-bg.jpg) top left repeat-y; padding: 10px; margin-top: 150px; width: 130px; } #linkList h3.select { background: transparent url(h3.gif) no-repeat top left; margin: 10px 0px 5px 0px; width: 97px; height: 16px; } #linkList h3.select span { display:none } #linkList h3.favorites { background: transparent url(h4.gif) no-repeat top left; margin: 25px 0px 5px 0px; width: 60px; height: 18px; } #linkList h3.favorites span { display:none } #linkList h3.archives { background: transparent url(h5.gif) no-repeat top left; margin: 25px 0px 5px 0px; width:57px; height: 14px; } #linkList h3.archives span { display:none } #linkList h3.resources { background: transparent url(h6.gif) no-repeat top left; margin: 25px 0px 5px 0px; width:63px; height: 10px; } #linkList h3.resources span { display:none } #linkList ul { margin: 0px; padding: 0px; } #linkList li { line-height: 2.5ex; list-style-type: none; background: transparent url(cr1.gif) no-repeat top center; display: block; padding-top: 5px; margin-bottom: 5px; } #linkList li a:link { color: #988F5E; } #linkList li a:visited { color: #B3AE94; } #extraDiv1 { background: transparent url(cr2.gif) top left no-repeat; position: absolute; top: 40px; right: 0px; width: 148px; height: 110px; }
Then I tried autocomplete for “style” attributes for an A, H1 and LI tag, it showed all the CSS properties in garbled random order, but non of the styles defined in the CSS file. I exported the project and imported it into 5.0.1 and tried again. This time it showed all the CSS properties grouped and alphabetically organized, but again, no styles from the CSS file.
covexMemberCode completion doesn’t work for style=”” in JSF components. In all HTML tags – it’s fine . Ithink it’s BUG, because in last released of MyEclipse it was worked successfully.
Greg LindholmMemberThis message has not been recovered.
Riyad KallaMemberGuys thanks you for the clarification, I reproduced this after I understood what the problem was. This is definately a bug/regression. I’ll file it riight now.
-
AuthorPosts