Solved

Search in IBM Visual Age

Posted on 2002-07-06
7
223 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
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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 100 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

828 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