Int returnVal = fileChooser.showSaveDialog(null) Save CSV file to file systemįinally we can save the StringBuffer to user specified output file. You will learn in this chapter how to create archimate diagram, and learn the notations supported by archimate diagram. Create a File Filter for CSV file type and set it as defaultįileFilter filter = new FileNameExtensionFilter("CSV File", "csv") fileChooser.addChoosableFileFilter(filter) tFileFilter(filter) ArchiMate is a modeling technique for describing enterprise architectures. JFileChooser fileChooser = ApplicationManager.instance().getViewManager().createJFileChooser() tDialogTitle("Export CSV") Create File Chooser to let user specify the output path Next we create a file chooser to prompt user specify the output path of the CSV file. walk through its containing elements one by oneįor (int i = 0 i < modelElements.length i++) Prompt user to specify the path for the CSV file Sb.append("use case id,name,description") StringBuffer sb = new StringBuffer() // Insert header row in our CSV Create a StringBuffer to store the output Once we obtained the use case models, we can then translate the model information into the StringBuffer. IModelElement modelElements = project.toAllLevelModelElementArray(IModelElementFactory.MODEL_TYPE_USE_CASE) Create StringBuffer to hold the model information Retrieve all use case model elements into an array IProject project = ApplicationManager.instance().getProjectManager().getProject() As 64 bit system already become the majority player, ArchiMetric only offer installation package for 64 bit systems. We first obtain the use case models form your opening project. ArchiMetric (former Visual Paradigm Enterprise Edition) is an all-in-one software and system development tool for end-to-end information technology system modeling. This sustainable design architecture firm focuses not only on architectural design but also on the fundamentals of integrated design, structural engineering, mechanical-electrical engineering, construction management, and master planning. Let’s start by obtain the use case models Obtain the use case models Archimetric was founded in Surabaya in 1988. Prompt user to specify the path for the CSV file.Create StringBuffer to hold the model information.In this article we will show you how you can make use of Visual Paradigm Open API to create a plugin which export the use case models in your project into a CSV file.Įxport use case models into CSV file will have the following steps: Data in CSV can be used with any spreadsheet program, or even for exchange of information between applications. Each line in the CSV file is presenting an entry, while fields in each record is speared by commas (or other separator). CSV (comma-separated values) file is a very common file format for saving textual data in table structure.
0 Comments
Leave a Reply. |