Giter Site home page Giter Site logo

linghushaoxia / astah-xmi-import-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from changevision/astah-xmi-import-plugin

0.0 2.0 0.0 5.56 MB

This plugin enables to load XMI file and import model information of class diagram to Astah.

Shell 1.07% Java 98.93%

astah-xmi-import-plugin's Introduction

XMI import plugin

dialog

version

1.1.1

Available for

Astah Professional 6.7

If you are using Astah Professional 6.6.4, use the plug-in version 1.0.0.

Description

This plugin enables to load XMI file and import model information of class diagram to Astah.

Notes

  • XMI version 2.1 and later is supported.
  • This Plugin loads only model information. Diagram and presentation information aren't currently supported.
  • Notations may appear differently if you integrate with other tools.
  • Visibility setting for Association ends aren't supported.
  • TemplateBinding and TemplateParameter aren't supported.

Limitations

  • Doesn't support to set attribute visibility.
  • Doesn't support to set TemplateBinding and TemplateParameter.

How to install

  1. Download the jar file.
  2. Deploy the jar file you downloaded, to the "plugins" folder in the Astah's install folder.
  3. Launch Astah.
  4. [XMI] menu has been added under [Tool].

How to use

  1. Launch Astah, and go to [Tool] - [XMI] - [XMI Import].
  2. Select xmi file in the file selection dialog.
  3. Click the "import" button, it starts to import the XMI.
  4. It will be shown "Import completed.".

How to uninstall

Delete the plugin jar file at the [Astah's install folder]/plugins.

Build & Testing

  1. Install Astah Plug-in SDK

  2. clone the source code.

    git clone [Repository URL]

  3. Build

    astah-build

  4. Unit Testing

    astah-mvn test

Extend this Plugin

You are able to customize this Plug-in to import other model types.

How to extend

  1. Install Astah Plug-in SDK

  2. Install this plugin to local repository.

    astah-mvn install:install-file -Dfile=xmi-1.0.0.jar -DgroupId=com.change_vision.xmi -DartifactId=xmi -Dversion=1.0.0 -Dpackaging=jar -DgeneratePom=true

  3. Generate extension plugin.

    astah-generate-plugin

  4. Add this plugin to extension plug-in's pom.xml.

    com.change_vision.astah xmi 1.0.0 provided
  5. Implement converter.

Case1. Implement ClassifierConverter for Classifier models like UseCase. Please refer to com.change_vision.astah.xmi.internal.convert.model's classes

Case2. Implement RelationConverter for relationships like association. Please refer to com.change_vision.astah.xmi.internal.convert.relationship's classes.

  1. Register your converters to BundleContext. BundleContext is passed by Activator's start/stop. Register as below.

    import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext;

    import com.change_vision.astah.xmi.convert.model.ClassifierConverter; import com.change_vision.astah.xmi.convert.relationship.RelationshipConverter;

    public class Activator implements BundleActivator {

     public void start(BundleContext context) {
     	// for Classifier
         context.registerService(ClassifierConverter.class.getName(), new HogeConverter(), null);
         // for Relationship
         context.registerService(RelationshipConverter.class.getName(), new FugaConverter(), null);
     }
    
     public void stop(BundleContext context) {
     }
    

    }

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.

astah-xmi-import-plugin's People

Contributors

kamura avatar kompiro avatar m-daida avatar makototobita avatar satomijoba avatar

Watchers

 avatar  avatar

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.