facebook

Line numbering and tabs [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #227235 Reply

    cdebracy
    Member

    I have 3.8.4 running on Eclipse 3.01 on Windows XP. Both the Workbench editor and the MyEclipse editor have “Show line numbers” checked, but since I’ve installed MyEclipse, the numbers no longer appear.

    Additionally, tab characters are being inserted, though I specified spaces, which is driving my checkstyle up the wall.

    Any suggestions or are these bugs?

    Thanks.

    #227244 Reply

    Riyad Kalla
    Member

    Which editors are not showing the line numbers? Also which editors are not inserting space chars?

    #227248 Reply

    cdebracy
    Member

    Sorry, the java editor seems to have this problem. The XML editor seems ok.

    #227250 Reply

    Riyad Kalla
    Member

    =/

    We don’t do anything to the Java Editor, are you absolutely sure this is a clean install of Eclipse 3.0.1 with MyEclipse 3.8.4 for Eclipse 3.0.x?

    I’ve double checked on my install and line numbers and spaces are use correctly in the java editor.

    #227251 Reply

    cdebracy
    Member

    I can uninstall and re-install MyEclipse if you think that will help.

    Also, when I right-click in package explorer, the only Open With options I see are:

    Java Editor
    Java Model Editor
    Visual Editor
    ______
    Text Editor
    System Editor
    In-place Editor
    Default Editor

    I looked under File Associations and noticed that there was no association for *.java for the MyEclipse Structured Source Editor.

    After adding it and making it the default, I now get the error:

    Cannot open default editor on XXX.java. Editor could not be initialized.

    #227261 Reply

    Riyad Kalla
    Member

    I looked under File Associations and noticed that there was no association for *.java for the MyEclipse Structured Source Editor.

    Ahh, don’t do that. MyEclipse is a J2EE *addon* to Eclipse, it doesn’t replace any of the functionality of Eclipse, that includes the Java Editor. I think the best bet now for you would be to:

    1) Reinstall Eclipse 3.0.2 SDK clean to a new location
    2) Reinstall MyEclipse 3.8.4 against that Eclipse install
    3) Create a new workspace

    Then create a new sample project and make sure everything works. From there you can work on importing your projects one at a time.

    #227268 Reply

    cdebracy
    Member

    I’ll have to try that later. It’s going to mean re-installing all my plug-ins and re-configuring as well.

    Thanks. I will let you know.

    #227270 Reply

    Riyad Kalla
    Member

    I’ll have to try that later. It’s going to mean re-installing all my plug-ins and re-configuring as well.

    No this is exactly what I don’t want you to do, I just want to do a clean reinstall for a sanity check (use a new workspace, do not use the same workspace), if that doesn’t work either then we need to troubleshoot some other way. If that DOES work, then we need to check as you install each plugin and figure out which one is causing the problem.

    #227279 Reply

    cdebracy
    Member

    Understood. I’ll try that now. Checking my .metadata/log file I found this at the bottom:

    !ENTRY com.ibm.sse.model 4 4 Mar 29, 2005 08:54:52.629
    !MESSAGE null_argument: model handler can not be null

    #227289 Reply

    cdebracy
    Member

    I did a fresh install of Eclipse 3.0.2 into a new directory and created a new workspace.

    Re-installed MyEclipse to point to the new eclipse directory.

    Created a new project and my .java files still do not show line numbering.

    #227290 Reply

    Riyad Kalla
    Member

    1) You are opening the Java files with the “Java Editor”, correct?

    2) Window > Preferences > Java > Editor > “Show Line Numbers” is checked right? Try unchecking, hit Apply then rechecking and hit apply. Did that work?

    #227292 Reply

    cdebracy
    Member

    Solved. I was focused on the Workbench editor and didn’t realize there was one under Java. New to Eclipse, so hope to not make that mistake again.

    Thanks for all the help.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Line numbering and tabs [Closed]

You must be logged in to post in the forum log in