[prev] [up] [next]

API for custom code generators and refactorings - installation

Requirements

1. Smalltalk/X
You need recent Smalltalk/X jv-branch downloaded and installed on your computer. Package is not tested and maintained on official eXept Smalltalk/X distribution downloaded from http://www.exept.de.

2. Package source files
You need to download package from Bitbucket repository jnesveda/refactoring_custom. You can download it via Mercurial command "hg clone url/from/the/link/above" or by clicking on cloud icon in the left bar titled with "Downloads".

Installation

Add downloaded source files to folder named "jn/refactoring_custom" which needs to be located under your package path (easiest is to put it just in lib/smalltalkx/6.2.5/packages where 6.2.5 is STX version). Now run STX, open system browser and click on top menu items named "View -> Package". You should see new package named jn/refactoring_custom. Right-click on it and select "Load".

"To see whats you package path write following line somewhere in STX
(code editor,launcher text-box), select it, rigt-click and choose Inspect."
Smalltalk packagePath.
"This will add a folder as package path"
Smalltalk packagePath add: 'C:\path\to\your\packages'.

If everything went well then you can select some class in the system browser, right-click on it and now you should see 2 new menu items "Refactor - Custom", "Generate - Custom". However, many troubles can happen during package loading. Subpackage "patches" has to also properly loaded, but can happen that it wont load with described procedure. There are many other possibilities how to load classes. You can try one of these if regular way fails (you will see classes marked as unloaded or you wont see them):

Finally you can run tests using test runner from launcher to see if everything works as expected. You can check the test results against the newest STX-JV branch version in Jenkins job, but this will be most probably removed when this project will be outdated.