Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

YedUtils



The YedUtils class has several utility methods to open a GraphMLDiagram in yEd.

How the class works

In order to open the GraphMLDiagram in yEd, the class:

Usage

You first need to get the unique instancz of this class by calling YedUtils.getInstance().

Then you need to set the install directory of yEd by calling the YedUtils.setYedInstallDir(File file) method.

Then for each diagram, you can use one of the following methods:

Error handling

The methods of the YedUtils class throw a YedProcessException if:
  • The install directory does not exist or is not a directory
  • There is no yEd.exe execuutable in this directory
  • Starting the process fails

Example

   GraphMLDiagram diagram = ...
      
   YedUtils yedUtils = YedUtils.getInstance();
   yedUtils.setYedInstallDir(<the yEd install directory>);
   yedUtils.openInYed(diagram);

See also


Categories: Utils

Copyright 2021 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence

Project Web Hosted by SourceForge.net Copyright 1999-2010 - Geeknet, Inc., All Rights Reserved About - Legal - Help