Code Monkey home page Code Monkey logo

astah-script-plugin's Introduction

Astah Script Plugin

dialog image

Version

1.0.4

Available for

Astah Community, UML, and Professional 6.5.x or later. Astah SysML 1.2, Astah GSN 1.0 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/plugins/ C:¥Program Files¥astah-community¥plugins¥

    e.g.) for SysML edition: $USER_HOME/.astah/sysml/plugins/ /Applications/astah sysml/plugins/ C:¥Program Files¥astah-sysml¥plugins¥

  2. Start Astah.

  3. The [Script...] has been added under the [Tool] menu.

menu image

Script example

JavaScript:

with(new JavaImporter(
        com.change_vision.jude.api.inf.model)) {
    classes = astah.findElements(IClass.class);
    for(var i in classes) {
        print(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 2015 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.

astah-script-plugin's People

Contributors

aasakawa avatar astah-harry avatar dependabot[bot] avatar hyodakazuaki avatar ikuta-tanigawa avatar kamura avatar kompiro avatar kubomann avatar m-daida avatar makototobita avatar mayumi-tanaka avatar myamamoto avatar no4-kasaba avatar satomijoba avatar takafoi-fujito avatar tiwa avatar tomohiro-iwanaga avatar toshiki-iwanaga avatar y-matsuda avatar y-zhou avatar yoichi-nakaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

astah-script-plugin's Issues

メニュー表示位置を改善する

現在、「図を画像ファイルに保存」と「HTML作成」の間に表示される。
これを、「図を画像ファイルに保存」の前にする。

履歴メニューを改善する

  • 登録スクリプトメニューとする
    メニューからスクリプト名選択でファイルを読み込む。
  • 登録画面からカレントのスクリプトに名前を付けて登録
    スクリプト名、スクリプトの種類、ファイル名の組を記録。
    ファイル保存されていない場合、パス指定可能とする。
  • 履歴はファイルメニューの下に移動

スクリプトエディタコンテキストメニューのFolding日本語がないです、collapseしてexpandしたら、最下にクロールできない不具合

  • スクリプトエディタのコンテキストメニューのアイテム「Folding」に日本語がないです
  • collapseしてexpandしたら、最下にスクロールできない
  1. スクリプトエディタを開き、任意(ちょっと長い)のJavaScriptファイルを読み込む。
    • 初期は全部コードがexpandingして、下にスクロールする時、縦スクロールバーが表示している(OK)
  2. スクリプトエディタのコンテキストメニューから「Folding」-「collapse all folds」して、縦スクロールバーが表示しない(OK)
  3. スクリプトエディタのコンテキストメニューから「Folding」-「expand all folds」したら、最下にスクロールできない(NG)

以前開いていたフォルダを、スクリプトファイルを開くでデフォルトで開いてほしい

メニュー - ファイル開く , ツールバーのスクリプトファイルを開くにて、開かれるファイル選択ダイアログにて、実行したいスクリプトのフォルダを毎回開きなおすのが手間なので、前回開いたスクリプトファイルのフォルダをデフォルトで開いてほしい

操作手順

  1. スクリプトフォルダ1、スクリプトフォルダ2、プロジェクトフォルダを用意し、スクリプトフォルダ1にスクリプトファイルを、プロジェクトフォルダにプロフェクトファイルを置く。
  2. スクリプトプラグインを実行し、スクリプトファイルを開く。
  3. ツールを再起動、メニュー[ファイル]-[プロジェクトを開く]を実行し、プロジェクトファイルを開く。
  4. スクリプトプラグインを実行し、スクリプトプラグインのメニュー[ファイル]-[開く]を実行する。
  5. スクリプトファイルを開く。
  6. スクリプトプラグインのメニュー[ファイル]-[名前を付けて保存]でスクリプトフォルダ2に保存する。
  7. ツールを再起動、メニュー[ファイル]-[プロジェクトを開く]を実行し、プロジェクトファイルを開く。
  8. スクリプトプラグインを実行し、スクリプトプラグインのメニュー[ファイル]-[開く]を実行する。
  9. 開かれたフォルダをOSのコマンドなどで削除、ツールを再起動、メニュー[ファイル]-[プロジェクトを開く]を実行し、プロジェクトファイルを開く。
  10. スクリプトプラグインを実行し、スクリプトプラグインのメニュー[ファイル]-[開く]を実行する。

期待結果

2. $USER_HOME/<<製品毎の保存先>>/astah_plugin_script.propertiesにスクリプトフォルダ1が記録されること

※製品毎の保存先

  • astah: .astah/<<エディション>>
  • Safilia: .safilia
  • SafetyAssuranceTool: .safety_assurance

4. スクリプトフォルダ1が開かれること
6. $USER_HOME/<<製品毎の保存先>>/astah_plugin_script.propertiesにスクリプトフォルダ2が記録されること
8. スクリプトフォルダ2が開かれること
10. Macの場合、プロジェクトフォルダが開かれること。Mac以外の場合、$USER_HOME/Documentsなど、デフォルトのフォルダが開かれること

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.