crudSearchButton.getButtonPressListeners().add(new ButtonPressListener() {
@Override
public void buttonPressed(Button button) {
try {
BXMLSerializer wtkxSerializer = new BXMLSerializer();
SMDCRUDSearchWindow window = (SMDCRUDSearchWindow) wtkxSerializer.readObject(getClass().getResource("SMDCRUDSearchWindow.bxml"),new Resources(resources,SMDCRUDSearchWindow.class.getName()));
window.open(getDisplay(), getWindow());
} catch (IOException e) {
throw new RuntimeException(e);
} catch (SerializationException e) {
throw new RuntimeException(e);
}
}
});
listViewButton.getButtonPressListeners().add(new ButtonPressListener() {
@Override
public void buttonPressed(Button button) {
try {
BXMLSerializer wtkxSerializer = new BXMLSerializer();
SMDListViewWindow window = (SMDListViewWindow) wtkxSerializer.readObject(getClass().getResource("SMDListViewWindow.bxml"),new Resources(resources,SMDListViewWindow.class.getName()));
window.open(getDisplay(), getWindow());
} catch (IOException e) {
throw new RuntimeException(e);
} catch (SerializationException e) {
throw new RuntimeException(e);
}
}
});
preferencesButton.getButtonPressListeners().add(new ButtonPressListener() {
@Override
public void buttonPressed(Button button) {
try {
BXMLSerializer wtkxSerializer = new BXMLSerializer();
SMDPreferencesWindow window = (SMDPreferencesWindow) wtkxSerializer.readObject(getClass().getResource("SMDPreferencesWindow.bxml"),new Resources(resources,SMDPreferencesWindow.class.getName()));
window.open(getDisplay(), getWindow());
} catch (IOException e) {
throw new RuntimeException(e);
} catch (SerializationException e) {
throw new RuntimeException(e);