I installed the plugin and started eclipse editor. Then I opened a css file, the editor did not appear to recognize css file and did not treat it differently. I then configured the css editor to show line number, it did not show line. Did I missing something? How to make eclipse recognize css file?
Thanks!
CT
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Maybe the file is already associated with the default text editor.
Can you select "Open with > CSS Editor" from the context menu of the file and see if that helps. You may also want to check the eclipse file associated (under Prefereces > Workbench) to see what editor is associated with CSS files by default.
Cheers,
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
css is mapped to Microsoft FrontPage by window. There is no file association defined in eclipse for it. When I tried to add one, I cannot find the plugin in the available internal editors. What editor to associate css file with?
Thanks!
CT
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, it appears in "Help > Eclipse Platform > Plug-in Details".
I found an exception in log file.
!MESSAGE Failed to smart indent after new line
!STACK 0
org.eclipse.jface.text.BadLocationException
at org.eclipse.jface.text.AbstractDocument.get(AbstractDocument.java:895)
at net.sourceforge.csseditor.internal.text.CssAutoEditStrategy.getIndentOfLine(Unknown Source)
at net.sourceforge.csseditor.internal.text.CssAutoEditStrategy.smartIndentAfterNewLine(Unknown Source)
at net.sourceforge.csseditor.internal.text.CssAutoEditStrategy.customizeDocumentCommand(Unknown Source)
at org.eclipse.jface.text.TextViewer.customizeDocumentCommand(TextViewer.java:3126)
at org.eclipse.jface.text.TextViewer.handleVerifyEvent(TextViewer.java:3154)
at org.eclipse.jface.text.TextViewer$TextVerifyListener.verifyText(TextViewer.java:319)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:856)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:664)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5947)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6931)
at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2554)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5300)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5323)
at org.eclipse.swt.custom.StyledText.handleEvent(StyledText.java:5070)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:856)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1716)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1712)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3036)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2939)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2836)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1369)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1990)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
at org.eclipse.core.internal.runtime.PlatformActivator.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
!SESSION Feb 13, 2004 12:46:51.766 ---------------------------------------------
java.version=1.4.2_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.ui 4 4 Feb 13, 2004 12:46:51.766
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 Feb 13, 2004 12:46:51.782
!MESSAGE null argument;
!STACK 0
CT
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed the plugin and started eclipse editor. Then I opened a css file, the editor did not appear to recognize css file and did not treat it differently. I then configured the css editor to show line number, it did not show line. Did I missing something? How to make eclipse recognize css file?
Thanks!
CT
Forgot to mention, I am running eclipse-3.0M6 on win2000.
Maybe the file is already associated with the default text editor.
Can you select "Open with > CSS Editor" from the context menu of the file and see if that helps. You may also want to check the eclipse file associated (under Prefereces > Workbench) to see what editor is associated with CSS files by default.
Cheers,
Chris
css is mapped to Microsoft FrontPage by window. There is no file association defined in eclipse for it. When I tried to add one, I cannot find the plugin in the available internal editors. What editor to associate css file with?
Thanks!
CT
Hmm, there should be a mapping for *.css files to the "CSS Editor" by default. If it isn't, something is seriously wrong.
Does the CSS editor plugin appear in "Help > Eclipse Platform > Plug-in Details"? Any error messages in workspace/.metadata/.log?
Yes, it appears in "Help > Eclipse Platform > Plug-in Details".
I found an exception in log file.
!MESSAGE Failed to smart indent after new line
!STACK 0
org.eclipse.jface.text.BadLocationException
at org.eclipse.jface.text.AbstractDocument.get(AbstractDocument.java:895)
at net.sourceforge.csseditor.internal.text.CssAutoEditStrategy.getIndentOfLine(Unknown Source)
at net.sourceforge.csseditor.internal.text.CssAutoEditStrategy.smartIndentAfterNewLine(Unknown Source)
at net.sourceforge.csseditor.internal.text.CssAutoEditStrategy.customizeDocumentCommand(Unknown Source)
at org.eclipse.jface.text.TextViewer.customizeDocumentCommand(TextViewer.java:3126)
at org.eclipse.jface.text.TextViewer.handleVerifyEvent(TextViewer.java:3154)
at org.eclipse.jface.text.TextViewer$TextVerifyListener.verifyText(TextViewer.java:319)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:856)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:664)
at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5947)
at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6931)
at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2554)
at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5300)
at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5323)
at org.eclipse.swt.custom.StyledText.handleEvent(StyledText.java:5070)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:856)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1716)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1712)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3036)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2939)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2836)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1369)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1990)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
at org.eclipse.core.internal.runtime.PlatformActivator.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)
!SESSION Feb 13, 2004 12:46:51.766 ---------------------------------------------
java.version=1.4.2_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.ui 4 4 Feb 13, 2004 12:46:51.766
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 Feb 13, 2004 12:46:51.782
!MESSAGE null argument;
!STACK 0
CT
Try version 0.0.3 it works just fine with M7
After installed M7, it works fine.