GEF source code analysis (I) eclipse's GEF Project Description

Source: Internet
Author: User

 

GEFStudy Notes (1)EclipseOfGEFProject Description

 

First of all, I would like to thank you for your hard work and dedication. These days GEF Interest,OctalGEFSeries It helped me to learn this very quickly. You can easily record things you learned over the weekend. Help students later. I will write out what I have learned over the past few days and hope everyone can support it. Currently, I am worried about the gossip example. Nodepart Added Resizeeditpolicy But I do not know why a gray area changes while dragging the mouse, but when the mouse is released, Nodefigure The size of does not change, is it because Refreshreceivals Fixed Size ,CodeLearning ....

 

EclipseOfGEFProject description.

 

Overview:

 

 

Draw2d:Created2Dimension graphics library(Tree widgetFigure), Responsible for displaying2Graphical display of dimensions.


GEF : ( Graphical editing framework ) Establish Standard MVC Architecture, code Exploitation Draw2d As your own View Part, the main code implements a complex tree ( Yu Model Corresponding ) Controller. The implemented framework has high reusability and other features. For example, the graphical component functions are divided into multiple Editpolicy In this way, the user can Installeditpolicy Interface to customize and expand a feature.


EMF: ( Eclipse modeling framework ) First, it is developed in a lightweight project and in the initial stage of the project, Model Often Use Property Of Java Object To express Plain old Java objects (pojos) ]. E Mf Defines a set of ecore meta-models so that Model It is easy to maintain, expand, and exchange data. Model framwork . Therefore, it is often used in large and medium-sized projects. Draw2d + GEF + EMF To achieve the overall MVC Mode. For example: Rose The latest version. IBM. Rational. Software. Architect adopts this architecture.


GMF : ( Graphical Modeling Framework ) Used GEF And EMF Has established a bridge framework between the two, and has also implemented exemplary applications in some fields, such UML Images, Gantt charts, and brain charts. (These functions are not complete yet. It can be used for reference to implement a standard GEF + EMF ).

 

Dependencies between projects:

 

 

For example, you can use the following methods:

EMF: ModelManagement Layer

Draw2d:2d Graphic Display

Draw2d+GEF:Simple editing module for two-dimensional images

Draw2d+GEF+EMF: 2D image editing Module

Draw2d+GEF+EMF+GMF: Based onGMFProvides graphic editing functions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.