IDEMPIERE-1749 Add window event validator for AD_Window
This commit is contained in:
parent
0196907539
commit
4f8e31bdd3
|
@ -2392,7 +2392,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
dialog.addEventListener(DialogEvents.ON_WINDOW_CLOSE, new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
postCallback.onCallback(dialog.isCancel());
|
||||
postCallback.onCallback(!dialog.isCancel());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -28,8 +28,11 @@ public class WindowValidatorManager implements BundleActivator, ServiceTrackerCu
|
|||
ServiceReference<WindowValidator> reference) {
|
||||
WindowValidator service = context.getService(reference);
|
||||
String uuid = (String) reference.getProperty("AD_Window_UU");
|
||||
if (uuid == null || "*".equals(uuid))
|
||||
System.out.println("service="+service+" uuid="+uuid);
|
||||
if (uuid == null || "*".equals(uuid)) {
|
||||
globalValidators.add(service);
|
||||
return service;
|
||||
}
|
||||
|
||||
List<WindowValidator> list = validatorMap.get(uuid);
|
||||
if (list == null) {
|
||||
|
|
Loading…
Reference in New Issue