[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.emf] Problems updating a model

Using eclipse 2.0.2 on windows 2000 with sun jdk 1.4.1. Changes to inherited
interfaces don't regenerate the model. Am I doing something wrong or is
there a bug in the EMF plugin?

A simple model for my problem.

/**
* @model abstract = "true"
*/
public interface Common
{
}

/**
* @model
*/
public interface One extends Common
{

    /**
    * @model
    */
    String getName();
}

/**
* @model
*/
public interface Two extends Common
{
    /**
    * @model
    */
    int getValue();
}

The model creation works. All of the code compiles and the plugin actually
works. I then try to modify the common interface by adding a get function.
/**
* @model abstract = "true"
*/
public interface Common
{
    /**
    * @model
    */
    int getTime();
}

The EMF generator doesn't recognize that anything changed and therefore
doesn't update CommonImpl.
 Java sees the changed interface definition I get compile errors because the
derived classes don't implement the Common interface. When I remove all of
the EMF generated entities and then regenerate the model with the new
interface all is well.