Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Problem with the @Replace annotation
Problem with the @Replace annotation [message #1720060] Thu, 14 January 2016 08:07
Fredrik Möller is currently offline Fredrik MöllerFriend
Messages: 15
Registered: April 2013
Junior Member
Hello

In my Application which is based on the Scout plattform (version 5.0.1) i am using the annotation: org.eclipse.scout.commons.annotations.Replace in some places.

A typical code snippet (in a class that extends from: org.eclipse.scout.rt.client.ui.form.AbstractForm) looks like:

@Replace
  public class FahrplanFahrzeuggruppenBox extends FahrzeugGruppeGroupBox {
    public FahrplanFahrzeuggruppenBox(MainBox.SplitBoxField.DetailTabBox container) {
      container.super();
    }
.
.
.


In my super class i have the FahrzeugGruppeGroupBox class defined.

My problem:
When trying to access the groupbox as:
getFahrzeugGruppeGroupBox().addPropertyChangeListener("updateDisplayText", new PropertyChangeListener() {
.
.
.


inside an:
@Override
        protected void addChangeListeners() {
.
.
.


method in my super class, then I recieve an NullPointerException.

Am I using the annotation wrong or does this annotation not work anymore?

The code has worked, and from what I can see it has gone "broken" by itself and the only thing of relevance that has changed is the verison of Scout framework.

Best regards
Fredrik Möller
Previous Topic:[Neon] Change DateUtility.parse(String, String) not to parse dates leniently
Next Topic:Table and GroupBox for details on row selection
Goto Forum:
  


Current Time: Thu May 09 04:31:57 GMT 2024

Powered by FUDForum. Page generated in 0.02497 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top