diff --git a/com.vogella.nattable/.classpath b/com.vogella.nattable/.classpath
deleted file mode 100644
index f5399bf4..00000000
--- a/com.vogella.nattable/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/com.vogella.nattable/.project b/com.vogella.nattable/.project
deleted file mode 100644
index a01f5158..00000000
--- a/com.vogella.nattable/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- com.vogella.nattable
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.pde.ManifestBuilder
-
-
-
-
- org.eclipse.pde.SchemaBuilder
-
-
-
-
-
- org.eclipse.pde.PluginNature
- org.eclipse.jdt.core.javanature
-
-
diff --git a/com.vogella.nattable/.settings/org.eclipse.jdt.core.prefs b/com.vogella.nattable/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 5867b652..00000000
--- a/com.vogella.nattable/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,9 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=14
-org.eclipse.jdt.core.compiler.compliance=14
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
-org.eclipse.jdt.core.compiler.release=enabled
-org.eclipse.jdt.core.compiler.source=14
diff --git a/com.vogella.nattable/Application.e4xmi b/com.vogella.nattable/Application.e4xmi
deleted file mode 100644
index 58c2c078..00000000
--- a/com.vogella.nattable/Application.e4xmi
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/com.vogella.nattable/META-INF/MANIFEST.MF b/com.vogella.nattable/META-INF/MANIFEST.MF
deleted file mode 100644
index 91035343..00000000
--- a/com.vogella.nattable/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,24 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Nattable
-Bundle-SymbolicName: com.vogella.nattable;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: VOGELLA
-Require-Bundle: jakarta.inject;bundle-version="0.0.0",
- org.eclipse.core.runtime;bundle-version="0.0.0",
- org.eclipse.swt;bundle-version="0.0.0",
- org.eclipse.e4.ui.model.workbench;bundle-version="0.0.0",
- org.eclipse.jface;bundle-version="0.0.0",
- org.eclipse.e4.ui.services;bundle-version="0.0.0",
- org.eclipse.e4.ui.workbench;bundle-version="0.0.0",
- org.eclipse.e4.core.di;bundle-version="0.0.0",
- org.eclipse.e4.ui.di;bundle-version="0.0.0",
- org.eclipse.e4.core.contexts;bundle-version="0.0.0",
- org.eclipse.nebula.widgets.nattable.core;bundle-version="1.6.0",
- ca.odell.glazedlists;bundle-version="1.9.0",
- org.eclipse.nebula.widgets.nattable.extension.glazedlists;bundle-version="1.6.0",
- org.eclipse.nebula.widgets.nattable.extension.e4;bundle-version="1.2.0",
- com.vogella.tasks.model;bundle-version="1.0.0"
-Bundle-RequiredExecutionEnvironment: JavaSE-14
-Import-Package: jakarta.annotation;version="1.3.5"
-Automatic-Module-Name: com.vogella.nattable
diff --git a/com.vogella.nattable/build.properties b/com.vogella.nattable/build.properties
deleted file mode 100644
index 04ab1e9b..00000000
--- a/com.vogella.nattable/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
- .,\
- icons/,\
- css/default.css,\
- Application.e4xmi
diff --git a/com.vogella.nattable/com.vogella.nattable.product b/com.vogella.nattable/com.vogella.nattable.product
deleted file mode 100644
index 99def10a..00000000
--- a/com.vogella.nattable/com.vogella.nattable.product
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
-
-
-
-
-
- -clearPersistedState
-
- -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/com.vogella.nattable/css/default.css b/com.vogella.nattable/css/default.css
deleted file mode 100644
index e69de29b..00000000
diff --git a/com.vogella.nattable/icons/home.png b/com.vogella.nattable/icons/home.png
deleted file mode 100644
index e9ace41c..00000000
Binary files a/com.vogella.nattable/icons/home.png and /dev/null differ
diff --git a/com.vogella.nattable/icons/open_in_app.png b/com.vogella.nattable/icons/open_in_app.png
deleted file mode 100644
index 9df4eeb7..00000000
Binary files a/com.vogella.nattable/icons/open_in_app.png and /dev/null differ
diff --git a/com.vogella.nattable/icons/save_edit.png b/com.vogella.nattable/icons/save_edit.png
deleted file mode 100644
index b17caf5a..00000000
Binary files a/com.vogella.nattable/icons/save_edit.png and /dev/null differ
diff --git a/com.vogella.nattable/plugin.xml b/com.vogella.nattable/plugin.xml
deleted file mode 100644
index d3ac1e83..00000000
--- a/com.vogella.nattable/plugin.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/com.vogella.nattable/src/com/vogella/nattable/handlers/AboutHandler.java b/com.vogella.nattable/src/com/vogella/nattable/handlers/AboutHandler.java
deleted file mode 100644
index b90ab80c..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/handlers/AboutHandler.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.vogella.nattable.handlers;
-
-import org.eclipse.e4.core.di.annotations.Execute;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.swt.widgets.Shell;
-
-public class AboutHandler {
- @Execute
- public void execute(Shell shell) {
- MessageDialog.openInformation(shell, "About", "Eclipse 4 RCP Application");
- }
-}
diff --git a/com.vogella.nattable/src/com/vogella/nattable/handlers/OpenHandler.java b/com.vogella.nattable/src/com/vogella/nattable/handlers/OpenHandler.java
deleted file mode 100644
index 61f8df59..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/handlers/OpenHandler.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.vogella.nattable.handlers;
-
-import org.eclipse.e4.core.di.annotations.Execute;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.swt.widgets.Shell;
-public class OpenHandler {
-
- @Execute
- public void execute(Shell shell){
- FileDialog dialog = new FileDialog(shell);
- dialog.open();
- }
-}
diff --git a/com.vogella.nattable/src/com/vogella/nattable/handlers/QuitHandler.java b/com.vogella.nattable/src/com/vogella/nattable/handlers/QuitHandler.java
deleted file mode 100644
index 9cfd8b56..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/handlers/QuitHandler.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.vogella.nattable.handlers;
-
-import org.eclipse.e4.core.di.annotations.Execute;
-import org.eclipse.e4.ui.workbench.IWorkbench;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.swt.widgets.Shell;
-
-
-public class QuitHandler {
- @Execute
- public void execute(IWorkbench workbench, Shell shell){
- if (MessageDialog.openConfirm(shell, "Confirmation",
- "Do you want to exit?")) {
- workbench.close();
- }
- }
-}
diff --git a/com.vogella.nattable/src/com/vogella/nattable/handlers/SaveHandler.java b/com.vogella.nattable/src/com/vogella/nattable/handlers/SaveHandler.java
deleted file mode 100644
index f7d34b07..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/handlers/SaveHandler.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.vogella.nattable.handlers;
-
-import org.eclipse.e4.core.di.annotations.CanExecute;
-import org.eclipse.e4.core.di.annotations.Execute;
-import org.eclipse.e4.ui.workbench.modeling.EPartService;
-
-public class SaveHandler {
-
- @CanExecute
- public boolean canExecute(EPartService partService) {
- if (partService != null) {
- return !partService.getDirtyParts().isEmpty();
- }
- return false;
- }
-
- @Execute
- public void execute(EPartService partService) {
- partService.saveAll(false);
- }
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/DisplayConfiguration.java b/com.vogella.nattable/src/com/vogella/nattable/parts/DisplayConfiguration.java
deleted file mode 100644
index 31892f09..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/DisplayConfiguration.java
+++ /dev/null
@@ -1,99 +0,0 @@
-package com.vogella.nattable.parts;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Locale;
-
-import org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration;
-import org.eclipse.nebula.widgets.nattable.config.CellConfigAttributes;
-import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
-import org.eclipse.nebula.widgets.nattable.config.IEditableRule;
-import org.eclipse.nebula.widgets.nattable.data.convert.DefaultDateDisplayConverter;
-import org.eclipse.nebula.widgets.nattable.edit.EditConfigAttributes;
-import org.eclipse.nebula.widgets.nattable.edit.editor.CheckBoxCellEditor;
-import org.eclipse.nebula.widgets.nattable.edit.editor.DateCellEditor;
-import org.eclipse.nebula.widgets.nattable.layer.cell.ColumnLabelAccumulator;
-import org.eclipse.nebula.widgets.nattable.painter.cell.CheckBoxPainter;
-import org.eclipse.nebula.widgets.nattable.style.CellStyleAttributes;
-import org.eclipse.nebula.widgets.nattable.style.DisplayMode;
-import org.eclipse.nebula.widgets.nattable.style.HorizontalAlignmentEnum;
-import org.eclipse.nebula.widgets.nattable.style.Style;
-
-public class DisplayConfiguration extends AbstractRegistryConfiguration {
-
- @Override
- public void configureRegistry(IConfigRegistry configRegistry) {
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITABLE_RULE, IEditableRule.NEVER_EDITABLE);
-
- registerConfiguration(configRegistry);
- }
-
- private void registerConfiguration(IConfigRegistry configRegistry) {
- configureIdColumn(configRegistry, 0);
- configureTextColumn(configRegistry, 1);
- configureBooleanColumn(configRegistry, 2);
- configureBooleanColumn(configRegistry, 3);
- configureDateColumn(configRegistry, 4);
- }
-
-
- private void configureDateColumn(IConfigRegistry configRegistry, int i) {
- // TODO Auto-generated method stub
-
- }
-
- private void configureIdColumn(IConfigRegistry configRegistry, int columnIndex) {
- Style cellStyle = new Style();
- cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, HorizontalAlignmentEnum.RIGHT);
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyle, DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
- private void configureTextColumn(IConfigRegistry configRegistry, int columnIndex) {
- // register a TextCellEditor for column two that commits on key up/down
- // moves the selection after commit by enter
-
- Style cellStyle = new Style();
- cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, HorizontalAlignmentEnum.LEFT);
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyle, DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- }
-
- private void configureBooleanColumn(IConfigRegistry configRegistry, int columnIndex) {
-
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER,
- new CheckBoxPainter(),
- DisplayMode.NORMAL, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- // using a CheckBoxCellEditor also needs a Boolean conversion to work
- // correctly
- configRegistry.registerConfigAttribute(CellConfigAttributes.DISPLAY_CONVERTER,
- new RevertBooleanDisplayConverter(), DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
-
- private void registerMarriedEditor(IConfigRegistry configRegistry, int columnIndex) {
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, new CheckBoxCellEditor(),
- DisplayMode.EDIT, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- // The CheckBoxCellEditor can also be visualized like a check button
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, new CheckBoxPainter(),
- DisplayMode.NORMAL, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
-
- }
-
- private void registerBirthdayEditor(IConfigRegistry configRegistry, int columnIndex) {
- DateCellEditor dateCellEditor = new DateCellEditor();
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, dateCellEditor, DisplayMode.EDIT,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- DateFormat formatter = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault());
- String pattern = ((SimpleDateFormat) formatter).toPattern();
-
- // using a DateCellEditor also needs a Date conversion to work correctly
- configRegistry.registerConfigAttribute(CellConfigAttributes.DISPLAY_CONVERTER,
- new DefaultDateDisplayConverter(pattern), DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
-
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/EditConfiguration.java b/com.vogella.nattable/src/com/vogella/nattable/parts/EditConfiguration.java
deleted file mode 100644
index 3770c87a..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/EditConfiguration.java
+++ /dev/null
@@ -1,115 +0,0 @@
-package com.vogella.nattable.parts;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-import java.util.Arrays;
-import java.util.Locale;
-
-import org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration;
-import org.eclipse.nebula.widgets.nattable.config.CellConfigAttributes;
-import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
-import org.eclipse.nebula.widgets.nattable.config.IEditableRule;
-import org.eclipse.nebula.widgets.nattable.data.convert.DefaultBooleanDisplayConverter;
-import org.eclipse.nebula.widgets.nattable.data.convert.DefaultDateDisplayConverter;
-import org.eclipse.nebula.widgets.nattable.edit.EditConfigAttributes;
-import org.eclipse.nebula.widgets.nattable.edit.editor.CheckBoxCellEditor;
-import org.eclipse.nebula.widgets.nattable.edit.editor.ComboBoxCellEditor;
-import org.eclipse.nebula.widgets.nattable.edit.editor.DateCellEditor;
-import org.eclipse.nebula.widgets.nattable.edit.editor.TextCellEditor;
-import org.eclipse.nebula.widgets.nattable.layer.cell.ColumnLabelAccumulator;
-import org.eclipse.nebula.widgets.nattable.painter.cell.CheckBoxPainter;
-import org.eclipse.nebula.widgets.nattable.painter.cell.ComboBoxPainter;
-import org.eclipse.nebula.widgets.nattable.style.CellStyleAttributes;
-import org.eclipse.nebula.widgets.nattable.style.DisplayMode;
-import org.eclipse.nebula.widgets.nattable.style.HorizontalAlignmentEnum;
-import org.eclipse.nebula.widgets.nattable.style.Style;
-
-public class EditConfiguration extends AbstractRegistryConfiguration {
-
- @Override
- public void configureRegistry(IConfigRegistry configRegistry) {
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITABLE_RULE, IEditableRule.ALWAYS_EDITABLE);
-
- registerEditors(configRegistry);
- }
-
- private void registerEditors(IConfigRegistry configRegistry) {
- registerIdEditor(configRegistry, 0);
- registerLastNameEditor(configRegistry, 1);
- registerGenderEditor(configRegistry, 2);
- registerMarriedEditor(configRegistry, 3);
- registerBirthdayEditor(configRegistry, 4);
- }
-
- private void registerIdEditor(IConfigRegistry configRegistry, int columnIndex) {
- // register a TextCellEditor for column two that commits on key up/down
- // moves the selection after commit by enter
-
- Style cellStyle = new Style();
- cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, HorizontalAlignmentEnum.RIGHT);
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyle, DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, new TextCellEditor(true, true),
- DisplayMode.NORMAL, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- // configure to open the adjacent editor after commit
- configRegistry.registerConfigAttribute(EditConfigAttributes.OPEN_ADJACENT_EDITOR, Boolean.TRUE,
- DisplayMode.EDIT, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
- private void registerLastNameEditor(IConfigRegistry configRegistry, int columnIndex) {
- // register a TextCellEditor for column two that commits on key up/down
- // moves the selection after commit by enter
-
- Style cellStyle = new Style();
- cellStyle.setAttributeValue(CellStyleAttributes.HORIZONTAL_ALIGNMENT, HorizontalAlignmentEnum.LEFT);
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_STYLE, cellStyle, DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, new TextCellEditor(true, true),
- DisplayMode.NORMAL, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- // configure to open the adjacent editor after commit
- configRegistry.registerConfigAttribute(EditConfigAttributes.OPEN_ADJACENT_EDITOR, Boolean.TRUE,
- DisplayMode.EDIT, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
-
- private void registerGenderEditor(IConfigRegistry configRegistry, int columnIndex) {
- ComboBoxCellEditor comboBoxCellEditor = new ComboBoxCellEditor(Arrays.asList("Done", "Not Done"));
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor, DisplayMode.EDIT,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, new ComboBoxPainter(),
- DisplayMode.NORMAL, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
-
- private void registerMarriedEditor(IConfigRegistry configRegistry, int columnIndex) {
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, new CheckBoxCellEditor(),
- DisplayMode.EDIT, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- // The CheckBoxCellEditor can also be visualized like a check button
- configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, new CheckBoxPainter(),
- DisplayMode.NORMAL, ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- // using a CheckBoxCellEditor also needs a Boolean conversion to work
- // correctly
- configRegistry.registerConfigAttribute(CellConfigAttributes.DISPLAY_CONVERTER,
- new DefaultBooleanDisplayConverter(), DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
-
- private void registerBirthdayEditor(IConfigRegistry configRegistry, int columnIndex) {
- DateCellEditor dateCellEditor = new DateCellEditor();
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, dateCellEditor, DisplayMode.EDIT,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
-
- DateFormat formatter = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault());
- String pattern = ((SimpleDateFormat) formatter).toPattern();
-
- // using a DateCellEditor also needs a Date conversion to work correctly
- configRegistry.registerConfigAttribute(CellConfigAttributes.DISPLAY_CONVERTER,
- new DefaultDateDisplayConverter(pattern), DisplayMode.NORMAL,
- ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + columnIndex);
- }
-
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/NatTableAdvancedExample.java b/com.vogella.nattable/src/com/vogella/nattable/parts/NatTableAdvancedExample.java
deleted file mode 100644
index 330c16d8..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/NatTableAdvancedExample.java
+++ /dev/null
@@ -1,42 +0,0 @@
-
-package com.vogella.nattable.parts;
-
-import java.util.List;
-
-import jakarta.annotation.PostConstruct;
-
-import org.eclipse.nebula.widgets.nattable.NatTable;
-import org.eclipse.nebula.widgets.nattable.config.DefaultNatTableStyleConfiguration;
-import org.eclipse.nebula.widgets.nattable.data.IColumnPropertyAccessor;
-import org.eclipse.nebula.widgets.nattable.data.ListDataProvider;
-import org.eclipse.nebula.widgets.nattable.grid.layer.DefaultGridLayer;
-import org.eclipse.nebula.widgets.nattable.layer.DataLayer;
-import org.eclipse.nebula.widgets.nattable.layer.cell.ColumnLabelAccumulator;
-import org.eclipse.swt.widgets.Composite;
-
-import com.vogella.tasks.model.Task;
-import com.vogella.tasks.model.TaskService;
-
-public class NatTableAdvancedExample {
-
- @PostConstruct
- public void postConstruct(Composite parent, TaskService taskService) {
- List tasks = taskService.getAll();
- IColumnPropertyAccessor columnPropertyAccessor = new TaskColumnPropertyAccessor();
- ListDataProvider dataProvider = new ListDataProvider<>(tasks, columnPropertyAccessor);
-
- TaskHeaderDataProvider headerDataProvider = new TaskHeaderDataProvider();
-
- DefaultGridLayer gridLayer = new DefaultGridLayer(dataProvider, headerDataProvider);
-
- ColumnLabelAccumulator columnLabelAccumulator = new ColumnLabelAccumulator(dataProvider);
- ((DataLayer) gridLayer.getBodyDataLayer()).setConfigLabelAccumulator(columnLabelAccumulator);
-
- NatTable natTable = new NatTable(parent, gridLayer, false);
- natTable.addConfiguration(new DefaultNatTableStyleConfiguration());
- natTable.addConfiguration(new EditConfiguration());
-
- natTable.configure();
- }
-
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/NatTableEditorExample.java b/com.vogella.nattable/src/com/vogella/nattable/parts/NatTableEditorExample.java
deleted file mode 100644
index b4378f4d..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/NatTableEditorExample.java
+++ /dev/null
@@ -1,48 +0,0 @@
-
-package com.vogella.nattable.parts;
-
-import java.util.List;
-
-import jakarta.annotation.PostConstruct;
-
-import org.eclipse.nebula.widgets.nattable.NatTable;
-import org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration;
-import org.eclipse.nebula.widgets.nattable.config.DefaultNatTableStyleConfiguration;
-import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
-import org.eclipse.nebula.widgets.nattable.config.IEditableRule;
-import org.eclipse.nebula.widgets.nattable.data.IColumnPropertyAccessor;
-import org.eclipse.nebula.widgets.nattable.data.ListDataProvider;
-import org.eclipse.nebula.widgets.nattable.edit.EditConfigAttributes;
-import org.eclipse.nebula.widgets.nattable.grid.layer.DefaultGridLayer;
-import org.eclipse.swt.widgets.Composite;
-
-import com.vogella.tasks.model.Task;
-import com.vogella.tasks.model.TaskService;
-
-public class NatTableEditorExample {
-
- @PostConstruct
- public void postConstruct(Composite parent, TaskService taskService) {
- List tasks = taskService.getAll();
- IColumnPropertyAccessor columnPropertyAccessor = new TaskColumnPropertyAccessor();
- ListDataProvider dataProvider = new ListDataProvider<>(tasks, columnPropertyAccessor);
-
- TaskHeaderDataProvider headerDataProvider = new TaskHeaderDataProvider();
-
- DefaultGridLayer gridLayer = new DefaultGridLayer(dataProvider, headerDataProvider);
-
- NatTable natTable = new NatTable(parent, gridLayer, false);
- natTable.addConfiguration(new DefaultNatTableStyleConfiguration());
- natTable.addConfiguration(new AbstractRegistryConfiguration() {
-
- @Override
- public void configureRegistry(IConfigRegistry configRegistry) {
- configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITABLE_RULE,
- IEditableRule.ALWAYS_EDITABLE);
- }
- });
-
- natTable.configure();
- }
-
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/NattableExample.java b/com.vogella.nattable/src/com/vogella/nattable/parts/NattableExample.java
deleted file mode 100644
index e4edccbc..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/NattableExample.java
+++ /dev/null
@@ -1,103 +0,0 @@
-
-package com.vogella.nattable.parts;
-
-import java.util.List;
-import java.util.Map;
-
-import jakarta.annotation.PostConstruct;
-
-import org.eclipse.jface.layout.GridDataFactory;
-import org.eclipse.nebula.widgets.nattable.NatTable;
-import org.eclipse.nebula.widgets.nattable.config.DefaultNatTableStyleConfiguration;
-import org.eclipse.nebula.widgets.nattable.data.IColumnPropertyAccessor;
-import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
-import org.eclipse.nebula.widgets.nattable.data.ListDataProvider;
-import org.eclipse.nebula.widgets.nattable.grid.data.DefaultColumnHeaderDataProvider;
-import org.eclipse.nebula.widgets.nattable.grid.data.DefaultCornerDataProvider;
-import org.eclipse.nebula.widgets.nattable.grid.data.DefaultRowHeaderDataProvider;
-import org.eclipse.nebula.widgets.nattable.grid.layer.ColumnHeaderLayer;
-import org.eclipse.nebula.widgets.nattable.grid.layer.CornerLayer;
-import org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer;
-import org.eclipse.nebula.widgets.nattable.grid.layer.RowHeaderLayer;
-import org.eclipse.nebula.widgets.nattable.layer.DataLayer;
-import org.eclipse.nebula.widgets.nattable.layer.ILayer;
-import org.eclipse.nebula.widgets.nattable.layer.cell.ColumnLabelAccumulator;
-import org.eclipse.nebula.widgets.nattable.selection.SelectionLayer;
-import org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-
-import com.vogella.tasks.model.Task;
-import com.vogella.tasks.model.TaskService;
-
-public class NattableExample {
-
- Map propertyToLabelMap = Map.of("id", "ID", "summary", "Summary", "description", "Description",
- "done", "Done", "dueDate", "Due Date");
-
- @PostConstruct
- public void postConstruct(Composite parent, TaskService taskService) {
- parent.setLayout(new GridLayout());
-
- IColumnPropertyAccessor columnPropertyAccessor = new TaskColumnPropertyAccessor();
-
- List tasks = taskService.getAll();
- tasks.get(0).setDone(true);;
- IDataProvider bodyDataProvider = new ListDataProvider(tasks, columnPropertyAccessor);
-
- // create the body layer stack consisting out of:
- // data layer
- // selection layer
- // viewport layer
- DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
- final ColumnLabelAccumulator columnLabelAccumulator = new ColumnLabelAccumulator(bodyDataProvider);
- bodyDataLayer.setConfigLabelAccumulator(columnLabelAccumulator);
- SelectionLayer selectionLayer = new SelectionLayer(bodyDataLayer);
- ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
-
-
- // build the column header layer stack
- IDataProvider columnHeaderDataProvider = new DefaultColumnHeaderDataProvider(
- TaskColumnPropertyAccessor.propertyNames.toArray(new String[0]), propertyToLabelMap);
- DataLayer columnHeaderDataLayer = new DataLayer(columnHeaderDataProvider);
- ILayer columnHeaderLayer = new ColumnHeaderLayer(columnHeaderDataLayer, viewportLayer, selectionLayer);
-
- // build the row header layer stack
- IDataProvider rowHeaderDataProvider = new DefaultRowHeaderDataProvider(bodyDataProvider);
- DataLayer rowHeaderDataLayer = new DataLayer(rowHeaderDataProvider, 40, 20);
- ILayer rowHeaderLayer = new RowHeaderLayer(rowHeaderDataLayer, viewportLayer, selectionLayer);
-
- // build the corner layer stack
- ILayer cornerLayer = new CornerLayer(
- new DataLayer(new DefaultCornerDataProvider(columnHeaderDataProvider, rowHeaderDataProvider)),
- rowHeaderLayer, columnHeaderLayer);
-
- // create the grid layer composed with the prior created layer stacks
- GridLayer gridLayer = new GridLayer(viewportLayer, columnHeaderLayer, rowHeaderLayer, cornerLayer);
-
- NatTable natTable = new NatTable(parent, gridLayer, false);
- natTable.addConfiguration(new DefaultNatTableStyleConfiguration());
- natTable.addConfiguration(new DisplayConfiguration());
- natTable.configure();
- GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
- }
-
- private void setColumnWidth(DataLayer bodyDataLayer) {
- // activate percentage sizing for all columns
- bodyDataLayer.setColumnPercentageSizing(true);
-
- // Use percentage values for the first three columns column
- bodyDataLayer.setColumnWidthPercentageByPosition(0, 5);
- bodyDataLayer.setColumnWidthPercentageByPosition(1, 30);
- bodyDataLayer.setColumnWidthPercentageByPosition(2, 40);
-
- // deactivate percentage sizing for the fourth column (isDone)
- bodyDataLayer.setColumnPercentageSizing(3, false);
- // apply a fixed size for the fourth column
- bodyDataLayer.setColumnWidthByPosition(3, 50);
-
- // also use percentage sizing for the dueDate column
- bodyDataLayer.setColumnWidthPercentageByPosition(4, 25);
- }
-
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/RevertBooleanDisplayConverter.java b/com.vogella.nattable/src/com/vogella/nattable/parts/RevertBooleanDisplayConverter.java
deleted file mode 100644
index 635b8c0a..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/RevertBooleanDisplayConverter.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.vogella.nattable.parts;
-
-import org.eclipse.nebula.widgets.nattable.data.convert.DisplayConverter;
-
-/**
- * Data type converter for a Check Box. Assumes that the data value is stored as
- * a boolean.
- */
-public class RevertBooleanDisplayConverter extends DisplayConverter {
-
- @Override
- public Object displayToCanonicalValue(Object displayValue) {
- return !Boolean.valueOf(displayValue.toString());
- }
-
- @Override
- public Object canonicalToDisplayValue(Object canonicalValue) {
- System.out.println(canonicalValue);
- if (canonicalValue == null) {
- return null;
- }
- if (canonicalValue instanceof Boolean) {
- return !(Boolean) canonicalValue;
- }
- if (canonicalValue instanceof String) {
- String test = (String) canonicalValue;
- return ((test.startsWith("F") || test.startsWith("W")));
- }
- return true;
- }
-
-}
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/SamplePart.java b/com.vogella.nattable/src/com/vogella/nattable/parts/SamplePart.java
deleted file mode 100644
index 565d63b8..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/SamplePart.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.vogella.nattable.parts;
-
-import java.util.Arrays;
-import java.util.List;
-import jakarta.annotation.PostConstruct;
-import jakarta.inject.Inject;
-
-import org.eclipse.e4.ui.di.Focus;
-import org.eclipse.e4.ui.di.Persist;
-import org.eclipse.e4.ui.model.application.ui.basic.MPart;
-import org.eclipse.jface.viewers.ArrayContentProvider;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Text;
-
-public class SamplePart {
-
- private TableViewer tableViewer;
-
- @Inject
- private MPart part;
-
- @PostConstruct
- public void createComposite(Composite parent) {
- parent.setLayout(new GridLayout(1, false));
-
- Text txtInput = new Text(parent, SWT.BORDER);
- txtInput.setMessage("Enter text to mark part as dirty");
- txtInput.addModifyListener(e -> part.setDirty(true));
- txtInput.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- tableViewer = new TableViewer(parent);
-
- tableViewer.setContentProvider(ArrayContentProvider.getInstance());
- tableViewer.setInput(createInitialDataModel());
- tableViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
- }
-
- @Focus
- public void setFocus() {
- tableViewer.getTable().setFocus();
- }
-
- @Persist
- public void save() {
- part.setDirty(false);
- }
-
- private List createInitialDataModel() {
- return Arrays.asList("Sample item 1", "Sample item 2", "Sample item 3", "Sample item 4", "Sample item 5");
- }
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/TaskColumnPropertyAccessor.java b/com.vogella.nattable/src/com/vogella/nattable/parts/TaskColumnPropertyAccessor.java
deleted file mode 100644
index 034b105b..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/TaskColumnPropertyAccessor.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package com.vogella.nattable.parts;
-
-import java.time.LocalDate;
-import java.util.Arrays;
-import java.util.List;
-
-import org.eclipse.nebula.widgets.nattable.data.IColumnPropertyAccessor;
-
-import com.vogella.tasks.model.Task;
-
-public class TaskColumnPropertyAccessor implements IColumnPropertyAccessor {
-
- // property names of the Task class
- // will also be used for the column header once you define them
- public static final List propertyNames =
- Arrays.asList(Task.FIELD_ID, Task.FIELD_SUMMARY, Task.FIELD_DESCRIPTION, Task.FIELD_DONE,
- Task.FIELD_DUEDATE);
-
- @Override
- public Object getDataValue(Task task, int columnIndex) {
- switch (columnIndex) {
- case 0:
- return task.getId();
- case 1:
- return task.getSummary();
- case 2:
- return task.getDescription();
- case 3:
- return task.isDone();
- case 4:
- return task.getDueDate();
- default:
- return "UNDEFINED";
- }
- }
-
- @Override
- public void setDataValue(Task task, int columnIndex, Object newValue) {
- switch (columnIndex) {
- case 0:
- throw new IllegalArgumentException("change not allowed");
- case 1:
- task.setSummary(String.valueOf(newValue));
- break;
- case 2:
- task.setDescription(String.valueOf(newValue));
- case 3:
- task.setDone((boolean) newValue);
- break;
- case 4:
- String stringDate = (String) newValue;
- LocalDate date = LocalDate.parse(stringDate);
- task.setDueDate(date);
- break;
- default:
- throw new IllegalArgumentException("column number out of range");
-
- }
- }
-
- @Override
- public int getColumnCount() {
- return propertyNames.size();
- }
-
- @Override
- public String getColumnProperty(int columnIndex) {
- return propertyNames.get(columnIndex);
- }
-
- @Override
- public int getColumnIndex(String propertyName) {
- return propertyNames.indexOf(propertyName);
- }
-
-}
\ No newline at end of file
diff --git a/com.vogella.nattable/src/com/vogella/nattable/parts/TaskHeaderDataProvider.java b/com.vogella.nattable/src/com/vogella/nattable/parts/TaskHeaderDataProvider.java
deleted file mode 100644
index e9e995d0..00000000
--- a/com.vogella.nattable/src/com/vogella/nattable/parts/TaskHeaderDataProvider.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.vogella.nattable.parts;
-
-import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
-
-public class TaskHeaderDataProvider implements IDataProvider {
-
- @Override
- public Object getDataValue(int columnIndex, int rowIndex) {
- switch (columnIndex) {
-
- case 0:
- return "ID";
- case 1:
- return "Summary";
- case 2:
- return "Description";
- case 3:
- return "Done";
- case 4:
- return "Due Date";
- }
- return "";
- }
-
- @Override
- public int getColumnCount() {
- return 5;
- }
-
- @Override
- public int getRowCount() {
- return 1;
- }
-
- @Override
- public void setDataValue(int columnIndex, int rowIndex, Object newValue) {
- throw new UnsupportedOperationException("Setting data values to the header is not supported");
-
- }
-
-}
\ No newline at end of file
diff --git a/target-platform/nattable.target b/target-platform/nattable.target
deleted file mode 100644
index 06b57b9d..00000000
--- a/target-platform/nattable.target
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-