Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Search in IBM Visual Age

Posted on 2002-07-06
7
Medium Priority
?
247 Views
Last Modified: 2010-03-30
Hi,

I am working on a new project that is quite big.

I want to modify the menu of my application, but first, I need to find where the menu is implemented.

I've tried the Find/Replace with the word "menu" but it works only in a method.  I have at least 1000 methods in 100 classes in 50 packages.  

Is there a better way to find what I'm looking for?

Thanks in advance,
Freesky
0
Comment
Question by:freesky
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Expert Comment

by:yasser_helmy
ID: 7134828
Hi freesky,
visual age for java has a "visual composition editor". Open the class view, you will find a tab labeled "Visual Composition". Select the tab. You will see the visual of the application. You would see the menu now and edit it.

You can get better more info from the ibm redbooks. Try SG24-5264-00. It is an old one but full of good info.
0
 

Author Comment

by:freesky
ID: 7135878
Hello Yasser Helmy,

Thnaks very much for your tip!  However, I can't have the visual composition (it's a white page) although I can have the source, members, hierarchy, etc.  Would you know why?

Freesky
0
 
LVL 7

Expert Comment

by:tomboshell
ID: 7137057
Been a while since I've worked with VA.  As I remember the visual composition works with visual environments created within VA, if the gui wasn't made with that tool then the tool wont recognize it (my experience).  Here is an idea...find the main class and the area the instinates the gui, set a break point and follow it through until the menus are created.  Might work, it may be a bit tedious though.

Tom
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 3

Expert Comment

by:yasser_helmy
ID: 7137281
HI freesky,
when you go to the visual composition editor, go to the bean menu. The last item is "Construct Visuals From source". This might help. Just make sure you create a version before so you can go back to it if anything goes wrong. When you want to modify the code, go to the members tab never the source tab; this makes the visual disappear.
0
 
LVL 2

Accepted Solution

by:
xxMariusxx earned 400 total points
ID: 7139046
To find all instances of "menu", the following works for me:

1) Go to Workspace-->Text Search/Replace
2) Change the radio button to "Working Set"
3) Click the "Choose" button
4) Click "New" to create a new working set
5) Suppy a name for your working set and use the treeview to select the scope of your search (you can drill down all the way from the "project" level to individual packages and/or classes)
6) Click "Ok"
7) Select your newly created working-set from the list and click "Ok"
8) Fill in "menu" in the "Find What:" text field and click "Search"

Hope that helps!

Marius
0
 
LVL 3

Expert Comment

by:yasser_helmy
ID: 7140455
hi freesky,
if you get problems with visual composition, here is another solution. From the source tab, select the edit menu, select "Find/Replace". Enter the word "menu" and press "Find". You will reach the definitions of the menus and menuitems.
0
 

Author Comment

by:freesky
ID: 7152602
Thanks Marius, now I know how to find what I'm looking for.

Thanks everybody for your time and answers.

Have a nice day,
Freesky
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

648 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question