Updated Duplicate
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@113698 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4d1f795de9
commit
b6a20f8944
|
@ -643,33 +643,6 @@ public class TabularDataController {
|
|||
DataView oldDataView = event.getOldDataView();
|
||||
if (oldDataView instanceof TabularResourceDataView) {
|
||||
closeAllTabularResource();
|
||||
/*
|
||||
* TabularResourceDataView tabularResourceDataView =
|
||||
* (TabularResourceDataView) oldDataView;
|
||||
* Log.debug("TabularResourceDataView:" + tabularResourceDataView);
|
||||
* TDGWTServiceAsync.INSTANCE.closeTabularResource(
|
||||
* tabularResourceDataView.getTrId(), new AsyncCallback<Void>() {
|
||||
*
|
||||
* @Override public void onFailure(Throwable caught) {
|
||||
*
|
||||
* if (caught instanceof TDGWTSessionExpiredException) {
|
||||
* eventBus.fireEvent(new SessionExpiredEvent(
|
||||
* SessionExpiredType.EXPIREDONSERVER)); } else {
|
||||
* Log.error("Error in set Active TR " +
|
||||
* caught.getLocalizedMessage()); caught.printStackTrace();
|
||||
* UtilsGXT3.alert( "Error", "Error in set Active TR: " +
|
||||
* caught.getLocalizedMessage()); }
|
||||
*
|
||||
* }
|
||||
*
|
||||
* @Override public void onSuccess(Void result) {
|
||||
* Log.debug("Close Taular Resource");
|
||||
*
|
||||
* } }
|
||||
*
|
||||
* );
|
||||
*/
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
@ -682,7 +655,7 @@ public class TabularDataController {
|
|||
eventBus.fireEvent(dataViewRequestEvent);
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
||||
private void deleteTabularResource() {
|
||||
|
||||
final ConfirmMessageBox mb = new ConfirmMessageBox("Confirm",
|
||||
|
@ -793,7 +766,7 @@ public class TabularDataController {
|
|||
case RULE_MANAGE:
|
||||
break;
|
||||
case DUPLICATE_DETECTION:
|
||||
openDuplicatesRows();
|
||||
openDuplicatesRowsDetection();
|
||||
break;
|
||||
case TABLE_TYPE:
|
||||
openTableType();
|
||||
|
@ -849,7 +822,7 @@ public class TabularDataController {
|
|||
doRowsDelete();
|
||||
break;
|
||||
case DUPLICATE_DELETE:
|
||||
openDuplicatesRows();
|
||||
openDuplicatesRowsDelete();
|
||||
break;
|
||||
case BYEXPRESSION_DELETE:
|
||||
openRowsDeleteByExpression();
|
||||
|
@ -958,7 +931,7 @@ public class TabularDataController {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
||||
private void doWidgetRequestCommand(WidgetRequestEvent event) {
|
||||
WidgetRequestType widgetRequestType = event.getWidgetRequestType();
|
||||
switch (widgetRequestType) {
|
||||
|
@ -971,7 +944,7 @@ public class TabularDataController {
|
|||
break;
|
||||
case DELETECOLUMNPANEL:
|
||||
break;
|
||||
case DUPLICATESROWSPANEL:
|
||||
case DUPLICATESROWSDETECTIONPANEL:
|
||||
break;
|
||||
case LABELCOLUMNPANEL:
|
||||
break;
|
||||
|
@ -2012,11 +1985,11 @@ public class TabularDataController {
|
|||
}
|
||||
}
|
||||
|
||||
private void openDuplicatesRows() {
|
||||
private void openDuplicatesRowsDetection() {
|
||||
Log.debug("Request Duplicates Rows Tab");
|
||||
if (trId != null) {
|
||||
WidgetRequestEvent e = new WidgetRequestEvent(
|
||||
WidgetRequestType.DUPLICATESROWSPANEL);
|
||||
WidgetRequestType.DUPLICATESROWSDETECTIONPANEL);
|
||||
e.setTrId(trId);
|
||||
eventBus.fireEvent(e);
|
||||
} else {
|
||||
|
@ -2024,6 +1997,21 @@ public class TabularDataController {
|
|||
UtilsGXT3.alert("Error", "No tabular resource present");
|
||||
}
|
||||
}
|
||||
|
||||
private void openDuplicatesRowsDelete() {
|
||||
Log.debug("Request Duplicates Rows Delete Tab");
|
||||
if (trId != null) {
|
||||
WidgetRequestEvent e = new WidgetRequestEvent(
|
||||
WidgetRequestType.DUPLICATESROWSDELETEPANEL);
|
||||
e.setTrId(trId);
|
||||
eventBus.fireEvent(e);
|
||||
} else {
|
||||
Log.error("TRId is null");
|
||||
UtilsGXT3.alert("Error", "No tabular resource present");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void openGeospatialCSquare() {
|
||||
Log.debug("Request Geospatial Create C-Square Coordiantes Tab");
|
||||
|
|
|
@ -25,9 +25,9 @@ public class TemplateOpenDialog extends Window {
|
|||
this.eventBus = eventBus;
|
||||
initWindow();
|
||||
|
||||
TemplateOpenPanel templateDeletePanel = new TemplateOpenPanel(this,
|
||||
TemplateOpenPanel templateOpenPanel = new TemplateOpenPanel(this,
|
||||
eventBus);
|
||||
add(templateDeletePanel);
|
||||
add(templateOpenPanel);
|
||||
}
|
||||
|
||||
protected void initWindow() {
|
||||
|
|
Loading…
Reference in New Issue