Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    6
    Vote Rating
    0
    klausg is on a distinguished road

      0  

    Lightbulb EventType.ToString() Improvement (for debugging)

    EventType.ToString() Improvement (for debugging)


    Some times you don't know exactly which event to listen for, and the documentation is not always up to date.
    So, you set a breakpoint and end up with
    EventType@2537, id = 19

    Then you have to go through all the EventType instances in Events, and any custom defined events, to find out which event it is.
    Why not add a name to the EventType constructor, and a proper toString() impl

    Like
    public static final EventType Activate = new EventType("Activete");

    It will probably take about one hour to do, and I bet it would save GXT developers and especially everyone else a lot of time.

    can I get a thumbs up?

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,645
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    EventType doesn't exist in any of the GXT 3 preview or beta builds - instead GwtEvent is being subclassed for every event, and so the toString will refer to the class itself.

  3. #3
    Sencha User Shawn.in.Tokyo's Avatar
    Join Date
    Feb 2009
    Posts
    42
    Vote Rating
    0
    Shawn.in.Tokyo is on a distinguished road

      0  

    Default


    Quote Originally Posted by Colin Alworth View Post
    EventType doesn't exist in any of the GXT 3 preview or beta builds - instead GwtEvent is being subclassed for every event, and so the toString will refer to the class itself.
    So how do we migtrate?

    Specificially I need to create an AppEvent with the constructor AppEvent(GwtEvent.Type<?> type)

    I just don't get, even after carefully reading the javadocs, searching google, and searching these forums; what we are supposed do for the "type" that we pass into the constructor.

    I've read every migration to 3.0 guide that I could find.

    It's really not clear at all. Is the Legacy mvc package really supposed to work and if so how??

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar