Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6798349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:43:09+00:00 2026-05-26T18:43:09+00:00

I am currently building an editor with Eclipse GEF. It is possible to add

  • 0

I am currently building an editor with Eclipse GEF. It is possible to add new parts via the editor and rename them.

However I have a little problem with the moving of the elements. When dragging them with the mouse they are not moved when I release the mouse and the element doesn’t collide with another one.
The positions of the elements are stored in an EMap (the model is made with EMF). Changes in the view are saved with the put method of the map.

While going through it with the debugger I noticed that the command is executed, but the view is not refreshed yet.

I added an adapter to the model, but its notifyChanged is not called from the system.

public class ViewAdapter implements Adapter { 
    @Override 
    public void notifyChanged(Notification notification) { 
        refreshVisuals(); 
    } 
} 

The ViewAdapter is registered in the activate method of the EditPart.

What could it be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:43:10+00:00Added an answer on May 26, 2026 at 6:43 pm

    As you are working with a map the normal Adapter interface won’t work, because it only listens to adds or removals of map entries.

    If you want to listen on changes of map elements, you should use an EContentAdapter instead:

    public class ViewAdapter extends EContentAdapter {
        @Override
        public void notifyChanged(Notification notification) {
            refreshVisuals();
            super.notifyChanged(notification);
        }
    }
    

    It is important that you call the super method so the notifications of the map entries are forwared to the map itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a web based code editor. I'm currently using font-family : Courier New,
I am currently building in Version 3.5 of the .Net framework and I have
I am currently building an Excel 2007 Add-in using VSTO (latest version + sp1)
I'm currently building an air app with FB 4. I have a custom control
I'm currently building a live web application based upon the PubSubHubBub protocol. However, I
Im currently building a php framework... again. I have a class called config. its
I'm currently building a data type editor (inheriting from AbstractDataEditor ) for Umbraco but
I am currently building a RCP application based on Eclipse. In one of my
I'm building a simple WYSIWYG editor inside an iframe with designMode on , currently
I'm currently building a node editor ( as in Blender ) and am having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.