Unable to specify styleClass attribute for selected tag when used CSS class contains
@CHARSET "UTF-8"; at keyword.
------------------------------------------------------------------------------------------------------------------
Key: JBIDE-6606
URL:
https://jira.jboss.org/browse/JBIDE-6606
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Visual Page Editor core
Affects Versions: 3.2.0.M1
Environment: JBDS Version: 4.0.0.M1 Build id: v201007091251N Build date:
201007091354
Linux 32bit
Java Sun JDK 1.6
Reporter: Vlado Pakan
Assignee: Maxim Areshkau
Steps to reproduce:
1. Create new JSF project
2. Create and open new CSS file test,css in the <jsf project>/WebContent/pages/
directory: Menu File > New > Others > Css File. It should has content @CHARSET
"UTF-8";
3. Open <jsf project>/WebContent/pages/inputUserName.jsp and insert "link
href="test.css" type="text/css"/>" after
"<body>" tag.
4. Open Properties view: Window > Show View > Properties
5. Select "h:outputText" tag within source pane of opened page
6. Select styleClass property within Properties view and choose button with label
"..." trying to specify styleClass property
No dialog is displayed and in Error Log is this error:
java.lang.ClassCastException:
org.eclipse.wst.css.core.internal.document.CSSCharsetRuleImpl cannot be cast to
org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleRule
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.model.CSSSelectorTreeModel.initModel(CSSSelectorTreeModel.java:52)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.model.CSSSelectorTreeModel.<init>(CSSSelectorTreeModel.java:37)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.model.CSSJSPRecognizer.getCssStyleClassTreeModel(CSSJSPRecognizer.java:163)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.model.CSSJSPRecognizer.getCssStyleClassTreeModel(CSSJSPRecognizer.java:169)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.CSSSelectorPartComposite.initDefaultContent(CSSSelectorPartComposite.java:133)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.CSSSelectorPartComposite.creatSelectorPart(CSSSelectorPartComposite.java:116)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.CSSSelectorPartComposite.<init>(CSSSelectorPartComposite.java:108)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.CSSStyleClassSelector.createCSSClassComposite(CSSStyleClassSelector.java:62)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.CSSStyleClassSelector.createControlComposite(CSSStyleClassSelector.java:49)
at
org.jboss.tools.jst.jsp.outline.cssdialog.AbstractCSSDialog.createControlPane(AbstractCSSDialog.java:118)
at
org.jboss.tools.jst.jsp.outline.cssdialog.AbstractCSSDialog.createDialogArea(AbstractCSSDialog.java:88)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.CSSStyleClassSelector.createDialogArea(CSSStyleClassSelector.java:91)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:155)
at
org.jboss.tools.jst.jsp.outline.cssdialog.cssselector.CSSStyleClassSelector.createContents(CSSStyleClassSelector.java:57)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at
org.jboss.tools.jst.jsp.outline.JSPDialogCellEditor.openDialogBox(JSPDialogCellEditor.java:141)
at org.eclipse.jface.viewers.DialogCellEditor$2.widgetSelected(DialogCellEditor.java:244)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1234)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3159)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira