Documente Academic
Documente Profesional
Documente Cultură
Part 1 Installation
Part 2 Configuration
Part 3 Operation
Appendix
Part 1 Installation
Part 1 Step 1 of 4 Install/Verify Java
To run Eclipse, version 5 or higher of the Java Runtime Environment (JRE) is required. To test which version of the JRE is installed on your workstation, click the following link: Java Test If you do not already have the JRE installed on your workstation or if your installed version is below version 5, download and install it from the above test site or from the following site: Java for Windows
2. We recommend installing Eclipse to the C:\Program Files folder. Note: For this document, Eclipse was installed to C:\Temp\Eclipse If using WinZip, make sure Use folder names is turned on. Upon completion, you will have a ..\Eclipse folder, with several folders underneath it. There is no setup program for Eclipse, so extracting the zip file completes the installation of Eclipse.
Page 1 of 22
Eclipse Setup
3. Select Install 4. Select the current versions of the ProvideX Plug-in for Eclipse and the MAS plug-in and click next.
Page 2 of 22
Eclipse Setup
5. 6.
Accept the license agreement and click Finish When prompted, say Yes to restart Eclipse
Page 3 of 22
Eclipse Setup
In order for the Source Integrity Eclipse plug-in to function correctly, two Windows environment variables must be set: ECLIPSE_INSTALL_ROOT SI_ECLIPSE_FEATURE Eclipse installation root directory MKS Integrity Client Eclipse 3.0 integrations directory
1. Run Windows Control Panel and select System. You can also right-click on the desktop My Computer icon and select Properties.
2. Go to the Advanced tab and click [Environment Variables]. 3. Under System variables, click [New] and define this variable: a. Variable name: b. Variable value: ECLIPSE_INSTALL_ROOT The root install location of Eclipse, which should be C:/Program Files/Eclipse, as described above in Step 2. Note that MKS requires the use of forward-slashes in the path. c. Click [OK] to save the variable.
4. Click [New] again, and define the second MKS variable: a. Variable name: b. Variable value: SI_ECLIPSE_FEATURE The full path to the eclipse_3.0 folder found under the MKS IntegrityClient-integrations-IBM program files folder. Example: C:/Program Files/MKS/IntegrityClient/integrations/IBM/eclipse_3.0 You must also use forward-slashes when setting the value for this variable. c. Click [OK] to save the variable.
d. Click [OK] to close the Environment Variables window. e. Click [OK] to close System Properties.
Page 4 of 22
Eclipse Setup
Part 2 Configuration
Part 2 Step 1 of 5 Run Eclipse
1. Create a shortcut to run Eclipse. Open c:\Program Files\Eclipse, then perform any or all of the following: Right-click on eclipse.exe and select Pin to Start menu. To create a desktop shortcut, drag eclipse.exe to your desktop then choose Create Shortcuts Here. Drag eclipse.exe to the Quick Launch toolbar to create a shortcut on the taskbar.
2. Run Eclipse from one of the shortcuts, or go to the Program Files\Eclipse folder and run eclipse.exe. 3. The first time your run Eclipse, you will be prompted to Select a workspace. a. For Workspace, you must accept the default Documents and Settings workspace folder. b. In addition, select the Use this as the default and do not ask again option.
Page 5 of 22
Eclipse Setup
5. Change the name of the local site to MKS Plug-In, then click [OK]:
6. When you return to the Install window, select the MKS Plug-In checkmark and clear all others, then click [Finish]. 7. On the Search Results window that follows, select the MKS Plug-In:
8. Click [Next].
Sage MAS 90 and MAS 200
Copyright 2009 Sage Software, Inc. All rights reserved.
Page 6 of 22
Eclipse Setup
9. On the license window, accept the terms of the license agreement and click [Next]. 10. Finally, click [Finish] to install the plug-in. 11. When prompted, restart Eclipse. After restarting, if the MKS plug-in installed correctly, a Source Integrity menu will be found on the Eclipse menu bar:
Do not click [OK] to close preferences, since additional preference settings need to be checked or modified, as described in the following sections.
Page 7 of 22
Eclipse Setup
2. Preferences ProvideX+Builder a. Select Only compile files associated with ProvideX Editor b. Select Compile Files that have no File extension c. Clear all other options
3. Preferences ProvideX+Builder+Options a. Select Check logical structure during build b. Select Allow mixed case for variable names and line labels c. Clear all other options Note: The Enable Access to build process extensions for MAS option is set and disabled. This option must exist and be enabled if working with Sage MAS 90 and MAS 200 Source Code
Page 8 of 22
Eclipse Setup
4. Preferences ProvideX+Nomads a. Set Default suffix for Nomads library files to LIB M4L (enter a space between LIB and M4L). b. Select the Quarter and 4D options.
Page 9 of 22
Eclipse Setup
This is also the preference screen where you can change the editor Background color, if you wish.
Editor Font
If you wish to change the font used by the editor, do the following. 1. Preferences General+Appearance+Colors and Fonts a. b. Select Basic Text Font Click [Change] and select a font ( my personal favorite: Consolas )
Page 10 of 22
Eclipse Setup
Page 11 of 22
Eclipse Setup
Part 3 Operation
Part 3 Step 1 of 8 MAS Perspective
An Eclipse perspective defines the set of views and their layout in the Workbench window. The MAS perspective is aimed at configuring the workspace environment to best suit MAS development needs. 1. From the Eclipse menu, choose Window Open Perspective Other 2. Select MAS 90/200, then click [OK]:
3. The MAS perspective consists of the following views: Navigator PVC Outline Editor Views
Tree view of projects and their members Components of current program being edited Program editor Program errors and warnings, Nomads library information, etc.
4. Each view in the perspective can be resized, maximized, hidden, detached, and moved to another location. If you rearrange the perspective and want to restore it to its default settings, click Window Reset Perspective or right-click on the perspective name at the top-right of the Workbench window and click Reset:
Page 12 of 22
Eclipse Setup
5. If the Eclipse Welcome view is still visible when selecting the MAS perspective, close it by clicking its X button:
3. Leave the workspace, source and output directories set to their default values. 4. For Compiler, specify the appropriate PvxWin32.Exe for the MAS 90 release. 5. Password, Owner, and Flags must remain blank.
Page 13 of 22
Eclipse Setup
6. Click [Finish] to create the project, after which it should be visible in the upper-left Navigator view:
Page 14 of 22
Eclipse Setup
2. On the Share Project window, select MKS Source Integrity, then click [Next]:
If MKS Source Integrity does not appear on this window - or if Eclipse jumps straight into CVS or Subversion setup - you do not have the MKS plug-in installed correctly. Refer to Part 1 Step 3 and Part 2 Step 2 for MKS plug-in installation instructions.
MKS connects to the Source Integrity server and starts up the Create Sandbox Wizard. You may be prompted for your MKS user name and password if you have not specified them in the MKS preferences. To configure your MKS client to connect automatically, see Appendix A.
4. In the Create Sandbox Wizard window, click [Select]. 5. Select a mas90.pj project:
Page 15 of 22
Eclipse Setup
You must select the top-level mas90.pj project or the MKS Eclipse integration will not work. Do not select the Src.pj subproject or any other module subproject. If you need a sandbox based on a single module or subset of modules, you must create the sandbox from mas90.pj then delete any unwanted subprojects.
6. Click [OK] to close the selection window. 7. Click [Next]. 8. The Sandbox Location defaults to your projects workspace folder:
Do not change the sandbox location or the MKS Eclipse integration will not work.
9. Click [Finish] to create the sandbox. 10. You will be prompted to recurse into subprojects. To conserve disk space and speed up the sandbox build process, you may wish to do this selectively, skipping demo data and other projects that you do not need in your sandbox. You cannot resynchronize files from within the MKS Eclipse integration. If you do not synchronize files when creating the sandbox, you must use the MKS Integrity Client to synchronize files.
11. After the build process finishes, to conserve space and to make the project easier to view and manage, expand the project in the Navigator view, then right-click on a subproject and select [Delete]. Some subprojects that consume a lot of space, yet are not needed by many developers include: Demo data MAS_ABC, MAS_ABX, MAS_EED, MAS_FDD MAS_System Reports Dictionaries Help Launcher Readme Reports Tutorials
Page 16 of 22
Eclipse Setup
If you synchronized the MKS HOME subproject, during the build process you will be prompted for passwords for various ProvideX programs. There are also a few SOA programs that use passwords. You will need to press [Cancel] when prompted for a password, unless you know the correct password.
Page 17 of 22
Eclipse Setup
3. For MAS Project, click [Browse] and select a MAS project name. 4. For Builds Project name, enter Builds. 5. Under Directory, click [Browse] and select the MAS90 folder of a build.
6. Cick [Finish] to create the builds project and link the Pvx build process to the MAS project so that it updates the specified build directories. 7. In the Navigator view, you should now see the Builds project:
Page 18 of 22
Eclipse Setup
8. Expand the Builds node and youll find a MAS90 linked folder. In the Navigator, a linked folder such as this provides an explorer view of a file system. You can traverse the folder hierarchy and open/rename/delete files from this view.
2. Select ProvideX, then use the [Add], [Search] and [Remove] buttons to modify the MAS 90 builds that get updated when changes are made to the project.
src
2. Adjacent to each sandbox member in the src folder is its current MKS version along with the name of the person to whom it is checked out. In the following example, the IM_CommonSelectUI.pvc program in my IM sandbox is at version 1.10 and is currently checked out to Justin:
Page 19 of 22
Eclipse Setup
Label decorations identify various states of each member: The resource is a member of an MKS project Locked by me Locked by another user Working file has changed Revision is out of sync
3. To access the various MKS processes that are available, right-click on a project resource and select Team:
These same processes are also available from the Source Integrity menu on the Eclipse menu bar:
Page 20 of 22
Eclipse Setup
Many Integrity Client functions are not available from within Eclipse. For example, you can check members out and back in, but you cannot unlock a member that you have checked out. To do this, select Launch Source Integrity from the Team menu and maintain the member using the Integrity Client. You cannot resynchronize entire projects from within Eclipse. You must use the Integrity Client to do mass resynchronizations for an entire project or subproject. After doing so, the changes will be reflected in your Eclipse project. To remove the read-only attribute of an MKS resource, right-click on it, select Properties Resource, then clear the Read only checkbox.
Page 21 of 22
Eclipse Setup
Appendix
Appendix A MKS Automatic Connection
It is not necessary to run the MKS client when accessing MKS projects in Eclipse, since the plug-in will connect to the MKS server as needed. The first time a connection is made to MKS, you are prompted for a user name and password, unless you have predefined this information in MKS.
3. Select Source Integrity Connection. 4. Enter your user name and password, and clear the prompt-for checkboxes:
Page 22 of 22
Eclipse Setup