Missing feedback layer [message #176818] |
Tue, 12 April 2005 08:59 |
Eclipse User |
|
|
|
Originally posted by: Johan.Kuijpers.ericsson.com
I'm running a gef editor similar to the logic sample. When placing a
component to
the gef editor and after that trying to move the component a null pointer
exception occurs in:
/**
* Adds the specified <code>Figure</code> to the {@link
LayerConstants#FEEDBACK_LAYER}.
* @param figure the feedback to add
*/
protected void addFeedback(IFigure figure) {
getFeedbackLayer().add(figure);
}
It seems that the methode getFeedbackLayer is returning null instead of the
expected feedback layer:
/**
* Returns the layer used for displaying feedback.
*
* @return the feedback layer
*/
protected IFigure getFeedbackLayer() {
return getLayer(LayerConstants.FEEDBACK_LAYER);
}
Why is there no feedback layer. Where is this layer created/initialized. I
couldn't find the code snippet responsible for this in the logic example.
It is clear that I don't understand something here. Who can point me in the
right direction
|
|
|
|
Powered by
FUDForum. Page generated in 0.02830 seconds