Menu

how to use css editor

Help
ctang
2004-02-13
2004-02-18
  • ctang

    ctang - 2004-02-13

    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

     
    • ctang

      ctang - 2004-02-13

      Forgot to mention, I am running eclipse-3.0M6 on win2000.

       
    • Christopher Lenz

      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

       
    • ctang

      ctang - 2004-02-13

      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

       
      • Christopher Lenz

        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?

         
    • ctang

      ctang - 2004-02-13

      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

       
    • Rene Muniz

      Rene Muniz - 2004-02-16

      Try version 0.0.3 it works just fine with M7

       
    • ctang

      ctang - 2004-02-18

      After installed M7, it works fine.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.