1.1.1
If you are using Astah Professional 6.6.4, use the plug-in version 1.0.0.
This plugin enables to load XMI file and import model information of class diagram to Astah.
- 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.
- Doesn't support to set attribute visibility.
- Doesn't support to set TemplateBinding and TemplateParameter.
- Download the jar file.
- Deploy the jar file you downloaded, to the "plugins" folder in the Astah's install folder.
- Launch Astah.
- [XMI] menu has been added under [Tool].
- Launch Astah, and go to [Tool] - [XMI] - [XMI Import].
- Select xmi file in the file selection dialog.
- Click the "import" button, it starts to import the XMI.
- It will be shown "Import completed.".
Delete the plugin jar file at the [Astah's install folder]/plugins.
-
Install Astah Plug-in SDK
-
clone the source code.
git clone [Repository URL]
-
Build
astah-build
-
Unit Testing
astah-mvn test
You are able to customize this Plug-in to import other model types.
-
Install Astah Plug-in SDK
-
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
-
Generate extension plugin.
astah-generate-plugin
-
Add this plugin to extension plug-in's pom.xml.
com.change_vision.astah xmi 1.0.0 provided -
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.
-
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) { }
}
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.