Expanding the Visualworks Image

Expanding the Visualworks Image

Expanding the VisualWorks Image After you install VisualWorks, the base Image (to be found in the subdirectory image in the installation directory1) contains packages or bundles with the standard classes that are needed for application development, along with those that contain the program code for the development environment. The subdirectory contributed contains several enhancements that are delivered with VisualWorks. Among these are • Frameworks for the most diverse programming tasks (for example, SUnitToo, a later version of SUnit2) • Components to access various database systems • Free versions of third-part software • Much more These enhancements are in the form of parcels. Stated somewhat simply, parcels are pack- ages that have been “exported” from an Image. You can use the menu item Package → Publish as Parcel to export a package as a parcel. This creates two files: <package-name>.pst <package-name>.pcl The file with the .pst extension contains the Smalltalk source code. The file with the .pcl extension contains the program translated into byte code. You can use the Parcel Manager, which is started by clicking the menu item System → Parcel Manager in the Launcher, to integrate parcels into one’s own Image. The Parcel Manager presents three views of the parcels from the contributed directory. 1See Fig. 5.1. 2See Chap. 15. © Springer Fachmedien Wiesbaden 2015 419 J. Brauer, Programming Smalltalk – Object-Orientation from the Beginning, DOI 10.1007/978-3-658-06823-3 420 Expanding the VisualWorks Image Fig. A.1 The Parcel Manager 1. The parcels are grouped by theme in the Suggestions tab. In Fig. A.1, the parcel SunitTool(s) has been selected from the Popular directory (see Chap. 15 and Appendix A.1). 2. In the left field of the Directories tab, the entire list of directories in the VisualWorks installation directory is shown (see Fig. 5.1). 3. From the Loaded tab, one can view which parcels have already been loaded. A.1 Adding SunitToo SUnit, described in Chap. 15, is already integrated into the VisualWorks base Image, and it can be used immediately. But Chap. 15 uses an alternative implementation of SUnit (SUnitToo), which can be integrated better into the System Browser. Although SUnitToo is also delivered with VisualWorks, it is not contained in the base Image. You must first load a parcel before you can use SUnitToo. To do that, the following steps are required: 1. Start the Parcel Manager with the Launcher menu item System → Parcel Manager. 2. In the Parcel Manager window, select the Suggestions tab. 3. Select the directory Popular and highlight the Parcel SUnitToo(ls) (see Fig. A.1). 4. Use the menu item Parcel → Load to load the parcel into the Image. A.2 Adding the Object Explorer 421 Fig. A.2 Connection information for the Cincom Public Repository A.2 Adding the Object Explorer Perform the following steps to load the package ObjectExplorer: 1. Connect your Image to the Cincom Public Repository (see Appendix A.4). 2. Use the Launcher menu item Store → Published Items to display a list of packages and bundles stored in the repository. 3. Select ObjectExplorer in this list. 4. Select the latest version on the right hand side of the window. 5. Use the menu item Versions → load to load the package into the Image. A.3 Adding Seaside You can find the Seaside framework in the Web Development directory in the Sug- gestions tab of the Parcel Manager. The parcel is called Seaside-All. The parcel Seaside- Examples-All contains a series of sample applications that were implemented using Sea- side. A.4 The Cincom Public Repository If you have Internet access, you can connect your Image to the Cincom Public Repository. This is a Store repository,3 which is publicly accessible and in which you can find the most current versions of third-party software, which is to a large extent still in development. In order to create the connection, from Store on the Launcher menu, select Connect to Repository. At that point, the window shown in Fig. A.2 appears. Be sure that Cin- com Public Repository is selected as the Connection Profile. Do not change the connection 3See Chap. 17. 422 Expanding the VisualWorks Image Fig. A.3 Published items in the Cincom Public Repository information already on the screen. The connection will be established after you click Con- nect. Once the connection has been established, that fact will appear in the status bar of the Launcher. Afterwards you can use the Launcher menu item Store → Published Items to display a list of packages and bundles stored in the repository. Figure A.3 shows part of the list; the bundle BottomFeeder has been selected, which contains a news reader. In order to load a package, highlight a version (in case of doubt, select the newest) and click the menu item File → Load. References AIDAweb: AIDAweb Smalltalk Web Application Server (2013). http://www.aidaweb.si. Accessed 1 August 2013 Alpert, S., Brown, K., Woolf, B.: The Design Patterns Smalltalk Companion. Software Patterns Series, vol. 1. Addison-Wesley, Reading (1998) Balzert, H.: Lehrbuch der Software-Technik, vol. 1, 2nd edn. Elsevier, Amsterdam (2001) Beck, K.: Smalltalk Best Practice Patterns. Prentice Hall, New York (1997) Beck, K.: Test-Driven Development by Example. Addison-Wesley, Reading (2003) Beck, K.: Simple Smalltalk testing: with patterns (2013). http://www.xprogramming.com/testfram. htm. Accessed 8 August 2013 Ben-Menachem, M., Marliss, G.S.: Software Quality, Producing Practical and Consistent Software. Thomson Computer Press, London (1997) Booch, G., Maksimchuk, R.A., Engle, M.W., Young, B.J., Conallen, J., Houston, K.A.: Object- Oriented Analysis and Design with Applications, 3rd edn. Addison-Wesley Professional, Reading (2007) Cincom Systems: VisualWorks Online Documentation. VisualWorks Walk Through. Version 7.8. Cincom Systems, Inc., Cincinnati (2011) Cincom Systems: VisualWorks Online Documentation. GUI Developer’s Guide. Version 8.0. Cin- com Systems, Inc., Cincinnati (2014a) Cincom Systems: VisualWorks Online Documentation. Application Developer’s Guide. Version 8.0. Cincom Systems, Inc., Cincinnati (2014b) Cincom Systems: VisualWorks Online Documentation. Database Application Developer’s Guide. Version 8.0. Cincom Systems, Inc., Cincinnati (2014c) Cincom Systems: VisualWorks Online Documentation. Source Code Management Guide. Version 8.0. Cincom Systems, Inc., Cincinnati (2014d) Cincom Systems: VisualWorks Online Documentation. Tool Guide. Version 8.0. Cincom Systems, Inc., Cincinnati (2014e) Dahl, O.-J., Dijkstra, E.W., Hoare, C.A.R.: Structured Programming. Academic Press, San Diego (1972) Ducasse, S., Renggli, L., Shaffer, D.C., Zaccone, R.: Dynamic Web Development with Seaside. Square Bracket Associates, Kehrsatz (2010) Ernst, H.: Grundkurs Informatik, 4th edn. Vieweg+Teubner, Wiesbaden (2008) Fowler, M.: Refactoring – Wie Sie das Design vorhandener Software verbessern. Addison-Wesley, Reading (2000) © Springer Fachmedien Wiesbaden 2015 423 J. Brauer, Programming Smalltalk – Object-Orientation from the Beginning, DOI 10.1007/978-3-658-06823-3 424 References Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object- Oriented Software. Addison-Wesley, Reading (1995) Goldberg, A.: Smalltalk-80: The Interactive Programming Environment. Addison-Wesley, Reading (1983) Goldberg, A., Robson, D.: Smalltalk-80: The Language. Addison-Wesley, Reading (1989) Hopkins, T., Horan, B.: Smalltalk—An Introduction to Application Development Using Visual- Works. Prentice Hall, New York (1995). http://stephane.ducasse.free.fr/FreeBooks Jacko, J.A. (ed.): Human-Computer Interaction Handbook, 3rd edn. CRC Press, Boca Raton (2012) Link, J.: Unit Tests mit Java. Der Test-First-Ansatz. dpunkt.verlag, Heidelberg (2002) Mayr, H.C., Maas, J.: Perspektiven der Informatik. Inform.-Spektrum 25(3), 177–186 (2002) Mössenböck, H.: Objektorientierte Programmierung in Oberon-2.2. Springer, Berlin (1994) Myers, G.J., Sandler, C., Badgett, T.: The Art of Software Testing, 3rd edn. Wiley, New York (2011) Oestereich, B.: Objektorientierte Softwareentwicklung: Analyse und Design mit der UML 2.0, 7th edn. Wissenschafts-verlag, Oldenbourg (2005) Pepper, P., Hofstedt, P.: Funktionale Programmierung. Springer, Berlin (2006) Perscheid, M., Tibbe, D., Beck, M., Berger, S., Osburg, P., Eastman, J., Haupt, M., Hirschfeld, R.: An introduction to Seaside. Software Architecture Group. Hasso-Plattner-Institut (2008). http:// www.hpi.uni-potsdam.de/swa/seaside/tutorial Preim, B.: Entwicklung interaktiver Systeme – Grundlagen, Fallbeispiele und innovative Anwen- dungsfelder. Springer, Berlin (1999) Rails: Web development that doesn’t hurt (2013). http://rubyonrails.org. Accessed 25 August 2013 Reiser, M., Wirth, N.: Programmieren in Oberon, Das neue PASCAL. Addison-Wesley, Reading (1994) Ritter, M.: CSS 4 you—die deutsche Seite für Cascading Style-Sheets (CSS) (2009). http://www. css4you.de. Accessed 29 August 2013 Ruby: a programmers’s best friend (2013). http://www.ruby-lang.org/de/about/. Accessed 25 August 2013 Seaside: stairway to agile Web (2013). http://www.seaside.st/. Accessed 1 August 2013 SUnit: the mother of all unit testing frameworks (2013). http://sunit.sourceforge.net/. Accessed 25 August 2013 w3scchools.com. http://www.w3schools.com. Accessed 8 October 2014 Wirth, N.: Program development by step-by-step refinement. Commun. ACM 14(4), 221–227 (1971) Index A C Absolute error, 156 Calculation time, 288 Abstraction, 31 Call/Answer mechanism, 378 Acceptance test, 333 Callback, 363, 364, 372, 381 Aggregation, 307,

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    11 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us