Skip to content

Commit

Permalink
Make action methods replaceable
Browse files Browse the repository at this point in the history
Conflicts:
	org.eclipse.scout.rt.client/src/main/java/org/eclipse/scout/rt/client/ui/basic/table/organizer/OrganizeColumnsForm.java
Change-Id: I4635c4053f9e2c52c84e281e48c7ca4d4d781295
Reviewed-on: https://git.eclipse.org/r/152469
Reviewed-by: Thomas Siegrist <thomas.siegrist@bsi-software.com>
Tested-by: Ivan Motsch <ivan.motsch@bsiag.com>
Tested-by: CI Bot
  • Loading branch information
imotsch authored and thomassiegrist86 committed Nov 12, 2019
1 parent 8b14c53 commit 796af1b
Showing 1 changed file with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,45 +236,6 @@ protected void execReloadTableData() {

}

protected void resetAll() {
try {
m_organizedTable.setTableChanging(true);
//
m_organizedTable.resetColumns();
ClientUIPreferences.getInstance().setAllTableColumnPreferences(m_organizedTable);
TableUserFilterManager m = m_organizedTable.getUserFilterManager();
if (m != null) {
m.reset();
}
ITableCustomizer cst = m_organizedTable.getTableCustomizer();
if (cst != null) {
cst.removeAllColumns();
}
}
finally {
m_organizedTable.setTableChanging(false);
}
getColumnsTableField().reloadTableData();
}

protected void resetView() {
try {
m_organizedTable.setTableChanging(true);
//
m_organizedTable.resetColumnVisibilities();
m_organizedTable.resetColumnWidths();
m_organizedTable.resetColumnOrder();
ITableCustomizer cst = m_organizedTable.getTableCustomizer();
if (cst != null) {
cst.removeAllColumns();
}
}
finally {
m_organizedTable.setTableChanging(false);
}
getColumnsTableField().reloadTableData();
}

@ClassId("359e1e7e-26f0-411d-baf1-2ba9f554212d")
public class Table extends AbstractTable {

Expand Down Expand Up @@ -1538,6 +1499,45 @@ public void applyViewForConfig(String configName) {
}
}

public void resetAll() {
try {
m_organizedTable.setTableChanging(true);
//
m_organizedTable.resetColumns();
ClientUIPreferences.getInstance().setAllTableColumnPreferences(m_organizedTable);
TableUserFilterManager m = m_organizedTable.getUserFilterManager();
if (m != null) {
m.reset();
}
ITableCustomizer cst = m_organizedTable.getTableCustomizer();
if (cst != null) {
cst.removeAllColumns();
}
}
finally {
m_organizedTable.setTableChanging(false);
}
getColumnsTableField().reloadTableData();
}

public void resetView() {
try {
m_organizedTable.setTableChanging(true);
//
m_organizedTable.resetColumnVisibilities();
m_organizedTable.resetColumnWidths();
m_organizedTable.resetColumnOrder();
ITableCustomizer cst = m_organizedTable.getTableCustomizer();
if (cst != null) {
cst.removeAllColumns();
}
}
finally {
m_organizedTable.setTableChanging(false);
}
getColumnsTableField().reloadTableData();
}

/**
* Returns the enabled/visible state of the AddCustomColumn menu. Override this method if a subclass of this form
* requires a different state for that menu.
Expand Down

0 comments on commit 796af1b

Please sign in to comment.