Add new abstract table to reduce the visible columns and add entity code
Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
@@ -42,7 +42,6 @@ import org.eclipse.hawkbit.ui.utils.SPUIComponetIdProvider;
|
|||||||
import org.eclipse.hawkbit.ui.utils.SPUIDefinitions;
|
import org.eclipse.hawkbit.ui.utils.SPUIDefinitions;
|
||||||
import org.eclipse.hawkbit.ui.utils.SPUILabelDefinitions;
|
import org.eclipse.hawkbit.ui.utils.SPUILabelDefinitions;
|
||||||
import org.eclipse.hawkbit.ui.utils.SPUIStyleDefinitions;
|
import org.eclipse.hawkbit.ui.utils.SPUIStyleDefinitions;
|
||||||
import org.eclipse.hawkbit.ui.utils.TableColumn;
|
|
||||||
import org.eclipse.hawkbit.ui.utils.UINotification;
|
import org.eclipse.hawkbit.ui.utils.UINotification;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@@ -190,17 +189,6 @@ public class DistributionSetTable extends AbstractNamedVersionTable<Distribution
|
|||||||
return manageDistUIState.isDsTableMaximized();
|
return manageDistUIState.isDsTableMaximized();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected List<TableColumn> getTableVisibleColumns() {
|
|
||||||
final List<TableColumn> columnList = super.getTableVisibleColumns();
|
|
||||||
if (isMaximized()) {
|
|
||||||
columnList.add(new TableColumn(SPUILabelDefinitions.VAR_VERSION, i18n.get("header.version"), 0.1f));
|
|
||||||
} else {
|
|
||||||
columnList.add(new TableColumn(SPUILabelDefinitions.VAR_VERSION, i18n.get("header.version"), 0.2f));
|
|
||||||
}
|
|
||||||
return columnList;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected DropHandler getTableDropHandler() {
|
protected DropHandler getTableDropHandler() {
|
||||||
return new DropHandler() {
|
return new DropHandler() {
|
||||||
|
|||||||
Reference in New Issue
Block a user