Solved

Search in IBM Visual Age

Posted on 2002-07-06
7
220 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now