Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8885751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:23:12+00:00 2026-06-14T21:23:12+00:00

Working with eclipse in a java collapsed file if i try to write a

  • 0

Working with eclipse in a java collapsed file if i try to write a method between two collapsed methods when I write public and press space automatically the ide collapses the word public inside the method below.

State initial 
   - public methodA()
   - public methodC()

Step 1:
   - public methodA()
     public 
   - public methodC()

Eclipse bug
   - public methodA()
   - public methodC() //Error because public is declared twice!

If I write the method faster the problem doesn’t occur. Any form to avoid this weird behaviour without disable code folding?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:23:14+00:00Added an answer on June 14, 2026 at 9:23 pm

    What I do is to unfold the method before where I want to insert the code. Then it doesn’t actually fold the new text into the previous (folded) method. But the simplest way is probably to just not fold the code and use the outline view to navigate around the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Within the eclipse Java editor, right click -> Compare With between Working copy and
I have been working on Eclipse recently. I am fairly new to java programming,
I am using Eclipse Helios for Java. Everything was working fine until recently. The
I am developing an Eclipse Plugin for working with Java source files. When the
I'm working on a Java application that uses JavaSpace. We're developing this in Eclipse.
Working with Eclipse and SVN, how do I definitely remove a file from list
I'm brand new to JAva/Eclipse/Android but gearing up! I've got everything installed and working
I'm new to android development and I've been working on android through java(eclipse) till
After some time of working with Eclipse - Java Enterprise, STS etc. I found
I am currently working on Eclipse using java bindings and i'm automating an e-commerce

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.