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

  • Home
  • SEARCH
  • 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 8329417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:46:48+00:00 2026-06-09T01:46:48+00:00

We have some class files with globs of redundant code. I’ve been looking for

  • 0

We have some class files with globs of redundant code. I’ve been looking for a view in Eclipse which allows you to limit your editor to just a single method, similar to Module View button in VB6, for those of you who know what I mean. The need for this is to make it easier to search for a string and have the search limited to only the code within the method I care about. (It’s also a nice feature for editing large globs of code, to make sure I am not accidentally adding the code to a different large method with redundant code.)

I thought the Declaration View would do this, but this view neither allows search nor editing. This leads to a 2-part question:

a. This there any view in Eclipse that can be used as described above?

b. Given Declaration View’s limitations, what is it useful for? (The only link I found directly Declaration View Hands On Eclipse didn’t make much sense to me.)

  • 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-09T01:46:50+00:00Added an answer on June 9, 2026 at 1:46 am

    a) Go to Window > Preferences > Java > Editor and select Show only selected Java element.

    I believe that’s what you want 🙂 This way you can use the Outline View to navigate throughout the members of the class.

    b) The Declaration View is just a quick reference about:

    • The line you declared the variable, if your cursor is at one.
    • The code of the Type/Method/Annotation/etc., if your cursor is at one of them
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class library project which contains some content files configured with the
I have some Dialog class via which I select files and/or directories. Within this
In my xib file I have some View. And I have PainView class (UIView).
I have a C++ class implementation file which has some constants. The constants appear
Suppose I have some class which has a property actor_ of type Actor .
I have some class files in latex with a company logo on the titlepage.
So I have this compiler class that compiles some .mjava files but others it
I have 4 packages each containing some .class files. There is one package that
I have some java source code. It an just an archive which is four
I have some .class files that I need to convert to .java so I

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.