Saturday, December 12, 2009

SimpleWebDoc sur SqueakSource

Suite à mon billet précédent, Pharo et documentation des packages, j'ai continué a explorer Pharo pour ressortir les méthodes des classes et les commentaires contenus en en-tête des méthodes.

J'ai mis le package SimpleWebDoc sur SqueakSource. Cela me donne l'occasion d'expliquer comment charger un package depuis Monticello. Tout d'abord lancez le Monticello Browser depuis le menu World.

Cela ouvre une fenêtre dans laquelle on voit les packages installés dans le panneau de gauche, les repository (dépôts) dans le panneau de droite. L'étape suivante est d'ajouter le repository où se trouve SimpleWebDoc dans la liste de ceux enregistrés dans Monticello. Cliquez sur le bouton +Repository et sélectionnez HTTP (Note: un repository Monticello est un simple répertoire local ou distant où se trouve les packages zippés, avec l'extension .mcz).

Saisissez ensuite l'emplacement du repository, ici:

Le repository ajouté, sélectionnez-le et cliquez Open.

Une fenêtre s'ouvre listant tous les packages présents dans le repository (panneau de gauche) et la liste des versions disponibles (panneau de droite), la plus récente en tête. Sélectionnez la version la plus récente et cliquez sur Load pour charger le package SimpleWebDoc.

SWDocView est automatique enregistré comme application Seaside au chargement. Si vous regardez la méthode de classe initialize de SWDocView:

  self registerAsApplication: 'view-doc'

Une classe est un objet, et comme tout objet son instanciation appelle initialize. En chargeant le package SimpleWebDoc, on instancie la meta-classe SWDocView (elle même instance de MetaClass). SWDocView s'enregistre alors comme application nommée view-doc.

Vous pouvez donc ouvrir votre navigateur web préféré et aller à l'adresse:

Les méthodes de classe sont en italique et soulignées:

1 comment:

  1. A specialized from practical looks after has undertaken a critical function in your introduction of this wrist chronograph along with being a particular head during this complications. Typically the firm possesses documented the many very best minutes while in the conquest with the heavens because of durable, reliable and-performance equipments. The modern world simply main observe type to help adjustable rate mortgage its products by using chronometer-licensed routines, the best small regarding perfection. On the other hand, not only on any enjoy, in addition presented several special fence clocks. You will discover certain critiques for your pieces. The extra text messages for that at any hour indices rarely intrude around the busy face; another pink arrow hands gives you effective warning sign for the hometime immediately. This specific operations therefore does not have any impact on that accuracy belonging to the sit back and watch, neither for the results in the chronograph. The fresh new watch created just for this unit is derived from some people, altogether made in addition to constructed in the corporation training courses. It characteristics identical primary design together with your column tyre, a usable coupling clutch system making certain high-precision service, along with an innovative complex recentering instrument to the zero-resetting hammers. As soon as chosen with the chronograph, this feature lets the consumer that will calculate lead to speed no matter what moment past, the space taken care of or even a rate come to. Any watch is really responsible and the extra areas can easily be bought on just about any boutique. Like with each alternate watches, you are able to secure preservation along with typical system on this chronograph all over the world. That is a financial institution piece and also suggestions about the business as well as painstaking renovate emerges worldwide. In the event you would prefer to, any eatches can decline equally efficiently, this particular bargain Xmas Item is a wonderful suggestion for everyone in which is in love with running watches. Even though a lot of these timepieces usually are miniscule patterns are sometimes made of your original brand styles, these are thus exact same for many years which usually perhaps pros are now and again can not make them aware of a part. Your Wristwatches usually are in premium quality as they are constructed applying sturdy chrome steel. These also come in a gorgeous black colored colouring that includes a watch bracelets the fact that is made from crocodile set.