The MetaView class is an InterActor based application that interacts with an object model using the interfaces and objects defined in the cutthecrap.meta package.

All GPO objects provide support for Meta interfaces but the Alchemist generates enhanced support by migrating the object model description used to generate the model into the Meta methods themselves.

The Alchemist generated applications include a bin directory that provides a browse.bat file. Also in the same directory is a desc file that can be provided as as argument to the browse command.

Looking inside the browse.bat file (of the Library example):

java -cp [jars] ...MetaView ...LibraryClient %1

The %1 if provided should be the full path to a description file.

The first argument to MetaView is the name of the client class generated by the Alchemist, this class implements IMetaRoot. The IMetaRoot interface defines one method - getDefaultRoot() - that returns an IMetaSpecSrc object.

The root object returned is the "home" object of the MetaView inspectors.

A Word For Unix Users

You'll need to edit the browse.bat file to be able to use it. A future release will generate a browse.sh file to make this more convenient - sorry.

#!/bin/sh
#-----------------------------------------
# unix version
#-----------------------------------------
java -cp [jars] ...MetaView ...LibraryClient $1

..and don't forget to make it executable! (chmod +x browse.bat)

Up and Running

Once you have started up the MetaView application you should see an "Introduction" screen. You can move from this to the "Workspace" using the controls at the top of the window.

The "Workspace" is divided into four panes: a control pane and three inspection panes.

The control pane contains six "clipboard" slots to and from which you can drag objects. You will also see "save" and "revert" buttons appearing in this pane whenever you make modifications to the data.

The interface may appear strange at first but hopefully after playing around for a while it will make sense.

Any problems/suggestions please contact feedback