Skip to content

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

Notifications You must be signed in to change notification settings

ChangeVision/astah-xmi-import-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published