Astah Script Plugin
Java JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 77 commits behind ChangeVision:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
doc/screenshots
licenses
sample_scripts
src/main
.classpath
.gitignore
.project
README.md
README_ja.md
osgi.bnd
pom.xml

README.md

Astah Script Plugin

dialog image

Version

0.9.0

Available for

Astah Community, UML, and Professional 6.5.x or later. Some sample scripts are available only for Astah UML and Professional. Astah: http://astah.net/

Description

This Plugin enables you to access Astah by Script languages. You are able to edit and run with ECMAScript(Javascript).

How to install

  1. Deploy the jar file you downloaded from Astah Script Plugin, in the "plugins" folder...

    e.g.) for Professional edition: $USER_HOME/.astah/professional/plugins/ /Applications/astah professional/plguins/ C:\Program Files\astah-professional\plugins\

    e.g.) for Community edition: $USER_HOME/.astah/community/plugins/ /Applications/astah community/plguins/ C:\Program Files\astah-community\plugins\

  2. Start Astah

  3. You find that the [Script...] has been added under the [Tool] menu (Below the [Export Image])

menu image

Script example

JavaScript:

importPackage(com.change_vision.jude.api.inf.model);
classes = astah.findElements(IClass);
for(var i in classes) {
    println(classes[i].getName());
}

How to build

  1. Install the Astah Plug-in SDK - http://astah.net/features/sdk
  2. git clone git://github.com/ChangeVision/astah-script-plugin.git
  3. cd script
  4. astah-build
  5. astah-launch
  • Generating config to load classpath for Eclipse

    • astah-mvn eclipse:eclipse

How to use other script languages

You are able to use other script languages which support OSGi JSR223(experimental).

  1. Download jar file for other script languages(ex. groovy-all.jar, jruby-###.jar).
  2. Copy the jar file to the Astah plugins folder(/.astah//plugins).
  3. Start Astah.

License

Copyright 2012 Change Vision, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Third party software licenses

  • RSyntaxTextArea is licensed under modified BSD License. Please see the included license file.
  • AutoComplete is licensed under modified BSD License. Please see the included license file.