facebook

Adding a new class isn’t working correctly

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #320383 Reply

    Mork
    Participant

    I have a project that is an SVN project that’s not a MyEclipse project.

    When I go to the \….\struts\action folder and right-click the action folder and select Add New Class, MyEclipse doesn’t show the Enclosing folder or the package in the Add New Class dialog.

    Therefore, I can’t …. Add a new class….

    Why is this and how do I get MyEclipse to understand this project so I can do simple tasks like adding a new class?

    I get the message when I manually enter the Enclosing folder that: “Source folder is not in a Java project.”

    ——–

    Also, normal “intellisense” isn’t working. If I try to enter a “.” after a class name, I get the error: “This compilation unit is not on the build path of a Java project.”

    (???)

    ——-

    I am not able to “rebuild” this project as a Java project unless it’s transparent to SVN check in. That is, I cannot change the project structure in SVN.

    The project is currently being built with an Ant task.

    Look forward to your reply.

    Thanks,

    –M

    #320396

    support-joy
    Member

    Mork,

    I am not clear about the issue you are facing. Please answer below queries –

    1. Is the SVN project created using MyEclipse or a different editor? If a different editor, which editor and version?
    2. How did you import the SVN project to MyEclipse? Which project wizard did you use?
    3. If you are facing issues trying to save to SVN, please ignore config files such as .project, .mymetadata, etc

    Please note that if your project is not created in MyEclipse, the project structure might differ, this could be the reason – content assist does not show up. The best way is to create a relevant MyEclipse project and copy / move project resources from SVN project to newly created MyEclipse project.

    #320398

    Mork
    Participant

    @support-joy wrote:

    Mork,

    I am not clear about the issue you are facing. Please answer below queries –

    1. Is the SVN project created using MyEclipse or a different editor? If a different editor, which editor and version?
    2. How did you import the SVN project to MyEclipse? Which project wizard did you use?
    3. If you are facing issues trying to save to SVN, please ignore config files such as .project, .mymetadata, etc

    Please note that if your project is not created in MyEclipse, the project structure might differ, this could be the reason – content assist does not show up. The best way is to create a relevant MyEclipse project and copy / move project resources from SVN project to newly created MyEclipse project.

    ——————

    I have no idea how the project was initially created, but I doubt it was using Eclipse. It’s a HUGE J2EE application in SVN. The Ant task works, but basic Java capabilities, in (My)Eclipse, not so much, as noted above.

    To import the SVN project into MyEclipse, I did the File…Import…SVN … Checkout Projects from SVN.

    This project uses Struts, Spring, XDOCLET, etc,, none of which are using MyEcipse’s wizards so it knows nothing about them. I’m not sure how to manually “copy/move” these hundreds of folders from one project to another.

    Is this really how things go when it’s not an Eclipse project to start with? I must be missing something.

    thanks.

    – m

    #320400

    Mork
    Participant

    It’s OK now. I had just forgotten to set it up as a Java project.

    Thanks for pointing me in the right direction. 🙂

    – M

    #320425

    support-joy
    Member

    M,

    Good to hear you are all set.

    Best.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Adding a new class isn’t working correctly

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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