简体   繁体   English

Eclipse插件开发:原理图编辑器

[英]Eclipse plugin developement : Schematic Editor

I need to develop an Eclipse plug-in as a schematic editor in Eclipse. 我需要开发一个Eclipse插件作为Eclipse中的原理图编辑器。 So some questions concerning this. 所以对此有一些疑问。

  1. Is it possible to draw geometrical objects (rectangle/line/triangle/etc) using Eclipse native API ? 是否可以使用Eclipse 本机 API绘制几何对象(矩形/直线/三角形/等)? If not please suggest alternative methods of doing it. 如果不是,请提出其他替代方法。

  2. Are there C++ APIs for doing this, preferably native Eclipse ? 是否有C ++ API可以做到这一点,最好是本机Eclipse

Regards, Levon 问候,莱文

  1. No, unless you consider adding the plugin GEF as native Eclipse. 否,除非您考虑将插件GEF添加为本机Eclipse。
    "The Graphical Editing Framework (GEF) provides technology to create rich graphical editors and views for the Eclipse Workbench UI." “图形编辑框架(GEF)提供了为Eclipse Workbench UI创建丰富的图形编辑器和视图的技术。”
  2. Eclipse being developed mainly in Java, I doubt there is C++ APIs for this. Eclipse主要是用Java开发的,因此我怀疑是否有C ++ API。

替代文字

I would evaluate EMF + GMF + GEF combination as they can be used to generate the diagram for your domain model. 我将评估EMF + GMF + GEF组合,因为它们可用于为您的域模型生成图。 Check the tutorial . 检查教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM