Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to mix TilesFX and Medusa due to event name collisions #18

Closed
cseeberg opened this issue Jun 27, 2017 · 2 comments
Closed

Unable to mix TilesFX and Medusa due to event name collisions #18

cseeberg opened this issue Jun 27, 2017 · 2 comments

Comments

@cseeberg
Copy link

Hi Gerrit,

I am using a bunch of your sweet graphical components in a dashboard designer/viewer solution.
The problem is in the Section class (which looks to be a copy from Medusa). The event names are the same and will not work alongside each other. I changed the TilesFX (1.4.4) Section.class by adding a prefix TILESFX_ to the eventtype names, and they now work together.

Cheers and thanks again,
Carstein

// ******************** Inner Classes *************************************
public static class SectionEvent extends Event {
public static final EventType SECTION_ENTERED = new EventType<>(ANY, "TILESFX_SECTION_ENTERED");
public static final EventType SECTION_LEFT = new EventType<>(ANY, "TILESFX_SECTION_LEFT");
public static final EventType SECTION_UPDATE = new EventType<>(ANY, "TILESFX_SECTION_UPDATE");

    // ******************** Constructors **************************************
    public SectionEvent(final Object SOURCE, final EventTarget TARGET, EventType<SectionEvent> TYPE) {
        super(SOURCE, TARGET, TYPE);
    }
}
@HanSolo
Copy link
Owner

HanSolo commented Jun 27, 2017

Hi there,

Believe it or not but I stumbled upon the same problem yesterday evening :)
Will provide a fix hopefully today.
Thanx for the heads up,

Cheers,

Gerrit

@HanSolo
Copy link
Owner

HanSolo commented Jun 27, 2017

Fixed with commit: 371edc7

@HanSolo HanSolo closed this as completed Jun 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants