the blog
Back to -Blog

The Amethyst 2 Scratchpad

Pasteboard area for notes and methods
by Dermot Hogan
Monday 17 December 2012.

In a previous blog, I described the ‘bubble’ debug editors which we’ve built into Amethyst 2. We’ve also used this style of lightweight editor (or code window) to encapsulate single methods and items of text – a Note.

To hold all these items, we’ve implemented a type of console – the Amethyst Scratchpad. This has three areas – Notes, Methods and Searches.

A Note is created by selecting some text – it can be anything in a code window – and dragging it to the Notes area of the Scratchpad. This will then create a Note editor bubble with the first line used at the Note’s caption:

If you minimize the Note, it will disappear from the main canvas area, but remain visible in the Notes area of the Scratchpad. But the main use of a Note is really that you can drag it from the ScratchPad into any code editor and it will be pasted into the code. Really, it’s a sort of pasteboard allowing you to construct code quickly from blocks of code or documentation.

The next part of the ScratchPad is used to store Method bubbles. A Method is created by selecting Create Method Bubble from the context menu, and it encapsulates just one method. If you pin the Method bubble, it is display as a button in the Methods section of the ScratchPad. Hovering over the pinned method button displays the text of the method.

and clicking on it will restore the Method bubble editor to the place on the canvas where it was originally displayed:

This is a preview of the forthcoming version of Amethyst 2 – our ActionScript/Flash IDE for Visual Studio 2012 and 2010. If you buy Amethyst 1.0 for Visual Studio 2010 now you will be entitled to a free update to Amethyst 2 when it is released. See the Amethyst 2012 announcement for more information.

Bookmark and Share   Keywords:  Amethyst 2  development
© SapphireSteel Software 2014