diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/validation/ValidationsTasksPanel.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/validation/ValidationsTasksPanel.java index cfc13af..b378e2b 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/validation/ValidationsTasksPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/validation/ValidationsTasksPanel.java @@ -73,6 +73,7 @@ public class ValidationsTasksPanel extends FramedPanel { protected TreeStore store; protected TreeGrid tree; + // TODO remove this variable @SuppressWarnings("rawtypes") protected AbstractCell actionButton = new AbstractCell() { @@ -245,6 +246,8 @@ public class ValidationsTasksPanel extends FramedPanel { ValidationCell validationButton = new ValidationCell(); validationButton.setTrueIcon(ResourceBundle.INSTANCE.ok()); validationButton.setFalseIcon(ResourceBundle.INSTANCE.exit()); + validationButton.setTrueTitle("Valid"); + validationButton.setFalseTitle("Solve"); validationButton.addSelectHandler(new SelectHandler() { @Override @@ -367,27 +370,30 @@ public class ValidationsTasksPanel extends FramedPanel { Log.debug("ValidationDto: [" + v.getId() + ", " + v.getDescription() + ", " + v.getValid() + ", " + v.getInvocation() + "]"); - if (v.getInvocation() != null) { - InvocationS invocationS = v.getInvocation(); - title = invocationS.toString(); - Long op = invocationS.getOperationId(); - if (op.compareTo(OperationsId.ChangeToDimensionColumn - .toLong()) == 0) { - WidgetRequestEvent widgetRequestEvent = new WidgetRequestEvent( - WidgetRequestType.CURATIONBYREPLACEBATCHDIALOG); - widgetRequestEvent.setTrId(trId); - HashMap map = new HashMap(); - map.put(Constants.REQUEST_PROPERTIES_REFCOLUMN, - invocationS.getRefColumn()); - map.put(Constants.REQUEST_PROPERTIES_COLUMNID, - invocationS.getColumnId()); - RequestProperties props = new RequestProperties(map); - widgetRequestEvent.setRequestProperties(props); - eventBus.fireEvent(widgetRequestEvent); - } else { - UtilsGXT3.info("Invocation Info", title); + if (v.getValid()) { + + } else { + if (v.getInvocation() != null) { + InvocationS invocationS = v.getInvocation(); + title = invocationS.toString(); + Long op = invocationS.getOperationId(); + if (op.compareTo(OperationsId.ChangeToDimensionColumn + .toLong()) == 0) { + WidgetRequestEvent widgetRequestEvent = new WidgetRequestEvent( + WidgetRequestType.CURATIONBYREPLACEBATCHDIALOG); + widgetRequestEvent.setTrId(trId); + HashMap map = new HashMap(); + map.put(Constants.REQUEST_PROPERTIES_REFCOLUMN, + invocationS.getRefColumn()); + map.put(Constants.REQUEST_PROPERTIES_COLUMNID, + invocationS.getColumnId()); + RequestProperties props = new RequestProperties(map); + widgetRequestEvent.setRequestProperties(props); + eventBus.fireEvent(widgetRequestEvent); + } else { + UtilsGXT3.info("Invocation Info", title); + } } - } }