Tech Brief
Tech Brief
Enabling Live Code Exchange Between VisualAge for Java and Eclipse/WSAD
Eric Clayberg
Sr. Vice President of Business Development
September 2001
Summary: This article discusses the features and enhancements of VA Assist Enterprise/J™ 3.0 and how it
enables you to transition from VisualAge for Java to IBM’s new WSAD that is part of WebSphere Studio Develop-
ment Environments.
Introduction
New Features in VAAE/J 3.0
Using the Options Tool
Using Export Sets
Exporting to Eclipse/WSAD
Importing to Eclipse/WSAD
Synchronizing a Project
Now What
Introduction
WebSphere Studio Application Developer (WSAD) will be the first IBM product in the WebSphere Studio Develop-
ment Environment family. This product represents a forthcoming suite of integrated development tools that cross
all e-business development roles, from Java developers to Web developers to business analysts to architects to
enterprise programmers. IBM has stated that WSAD will be the product that ultimately becomes the successor
to their very popular VisualAge for Java (VAJ) product. History shows that enterprise application development
shops typically make major transitions at their own pace. Recognizing the complex and time-consuming
migration issues that customers will likely face, IBM will support VAJ through at least July of 2003. To further
assist customer transitions, IBM bundles both VAJ and WSAD into one package.
Instantiations has been able to identify areas where customers would likely have difficulty as they started to
make the transition from VAJ to WSAD. For example, the seemingly simple act of moving Java code from one
development environment to another could prove to be challenging to developers. Even more concerning to
enterprise VAJ development shops would be the daunting task of moving large bodies of code from the VAJ
proprietary repository (ENVY) to a new repository structure in WSAD. Fortunately, Instantiations was able to
plan and deliver a very thorough roadmap, delivery schedule, and products to address these now real customer
concerns.
VA Assist Enterprise/J 3.0 includes the following features and enhancements that have just been added to the
award-winning product:
Import Sets. Import automation is here! These are counterparts to Instantiations’ existing export set feature
and allow you to save and re-executive any directory, jar file or repository import. Batch imports are also
supported.
Enhanced Import Features. New general import features include the ability to import only those files that
have changed since the last import/export operation and the ability to execute any external program prior to
import.
New Import Task. Any import set can be scheduled to trigger at any time including startup and shutdown.
In conjunction with a matching export set, fairly complex synchronization tasks can be defined.
2
Eclipse/ WSAD Features. New features have been added to VA Assist Enterprise/J 3.0 to assist in your
transition to Eclipse | WSAD. These include new Eclipse/ WSAD Import and Export types have been added
to the import and export wizards. The system will automatically detect your Eclipse/ WSAD root directory
and any projects you have defined. When importing or exporting, all you need to do is select the target
Eclipse project that you want to export to or import from, and VA Assist will take care of the rest. These
new import/export types can also be saved as import/export sets and executed as part of scheduled tasks.
New Synchronize Task. This is an optimized combination of an export and import that is designed to
quickly synchronize the Java source for a project in the workspace with one on disk (either in a specific
directory or an Eclipse project).
New Run Tasks Menu. All defined tasks are now listed in a cascaded menu under the “Workspace|
Scheduler” menu. This makes it easy to trigger a predefined task without needing to schedule it or open up
the Scheduler window.
Additional Enhancements.
o The enhanced ability to export only if source has been enhanced.
o A new “Explore” button has been added to the Export to Directory Wizard.
o A new “Delay” task has been added for setting a delay period between two chained tasks, etc.
JAVA Projects
• Export to a Directory
• Export to a Jar File
• Export to a Repository
• Export to an EJB Jar File
• Export to Eclipse/WSAD
• Batch Export
Clicking the “Delete” button opens a dialog to delete multiple saved export sets at once.
5
In addition, the new “Export Again”
submenu located in the “File” menu
and in the “Selected” menu can be
used to quickly launch a saved export
set.
How Do I
Select an
Eclipse/
WSAD
project to
export my
files to?
VA Assist adds an
“Export to Eclipse”
option to the Visual
Age for Java Export
Wizard. Rather than
selecting a directory
as in the export to
directory option, this
option allows you to
directly select an
Eclipse/WSAD
project to export to.
After the export has completed, a “Launch” option is provided to immediately start Eclipse/WSAD. If you chose
to launch Eclipse/WSAD, a further option is provided to force it to refresh its workbench on startup. This is
recommended so that the exported files are immediately visible. If you do not do this, you will need to execute
the “Refresh from Local” option in the Eclipse/WSAD workbench.
Optionally, an external program can be specified as part of the “Export to Eclipse”. Either type the name of the
external program directly into the text field, or click the “Browse” button to open a file dialog to select an exter-
nal program. Once the “Export to Eclipse” has been successfully completed, the external program will be
executed.
An “Export to Eclipse” configuration can be saved as a named Export Set by clicking on the “Save” button. If an
Export Set was selected in the main Export dialog or recently saved using the “Save” button, then clicking the
“Delete” button will delete that named Export Set. If no Export Set is currently loaded or the SHIFT key is held
down when the “Delete” button is clicked, then the “Delete multiple Export Sets” dialog appears.
How Do I Import an Eclipse/WSAD project into my existing VisualAge for Java
project?
9
10
Whenever an import set is run, the import wizard records the names of the files being imported along with their
timestamps. Selecting the “Import only if file timestamp has changed since the last import/export” option
causes the import wizard to compare the timestamp of the files being imported with the timestamps of the files
imported earlier. If the timestamps are identical for a particular file, then that particular file is not imported and
no new type edition is created. This information is recorded in the workspace and *not* in the repository. This
means that the “Import only if file timestamp has changed since the last import/export” will not suppress
creation of new editions the first time that it is used in a particular workspace.
Optionally, an external program can be specified as part of the “Import from Eclipse”. Either type the name of
the external program directly into the text field, or click the “Browse” button to open a file dialog to select an
external program. Immediately prior to the “Import from Eclipse” being run, the external program will be ex-
ecuted. An optional delay (1 to 999 seconds) can also be specified that will cause the system to wait before
beginning the import (presumably in order to allow the external program to finish executing).
An “Import from Eclipse” configuration can be saved as a named Import Set by clicking on the “Save” button. If
an Import Set was selected in the main Import dialog or recently saved using the “Save” button, then clicking
the “Delete” button will delete that named Import Set. If no Import Set is currently loaded or the SHIFT key is
held down when the “Delete” button is clicked, then the “Delete multiple Import Sets” dialog appears.
VA Assist provides a nice utility to synchronize the contents of a VA Java project with
an external source - whether it be a specific directory or an Eclipse/WSAD project.
To use this utility, select the VA Java project that you want to synchronize and access
the “Synchronize” menu. Normally, only the source will be synchronized, but an option
is provided to synchronize resources as well. Next select the external synchronization
target. This can either be a specified directory or an Eclipse/WSW/WSAD project.
When executed, this utility will first run an export process to export any changed types
to the target. It will then run a matching import process to import any changes made
externally.
A task-based version of this utility is also provided so that you can schedule project
synchronization to occur at specific times (like startup and shutdown).
12
Now What?
This article is just a teaser.. It only discusses the features that enable live code exchange between VA Java
and Eclipse/WSAD. You are now ready to dig deeper and expand your knowledge of VA Assist Enterprise/J
3.0. You can do many interesting things like advanced library management, sophisticated task automation &
scheduling, and cool productivity enhancing development tools!