General GUI Code Migration
BEAM classes
Class VisatApp
Method | New code |
|---|---|
getApp() | SnapApp.getDefault() |
|
|
| SnapApp.getDefault().addSelectionChangeListener(ProductSceneView.class, new
|
|
|
|
|
|
|
showWarningDialog() | SnapDialogs.showWarning() |
promptForOverwrite(File file) | SnapDialogs.requestOverwriteDecision(String title, File file); |
Interface ToolView and class AbstractToolView
Method | New code |
|---|---|
getPaneControl() | The TopComponent instance itself or any child of it |
| setDisplayName() |
| see PageComponentDescriptor |
|
|
Interface PageComponentDescriptor
Method |
|
|---|---|
|
|
|
|
Class HelpSys
Method |
|
|---|---|
|
or or |
|
|
Class ResourceInstaller
Method |
|
|---|---|
| <init>(Path, String, Path) To retrieve a path instance either use File.toPath() or Paths.get(String/URI). |
|
|
JIDE Components
Component | Replacement |
|---|---|
| OK! |
| org.esa.beam.framework.ui.color.ColorComboBox |
| org.esa.beam.framework.ui.color.ColorTableCellEditor |
| org.esa.beam.framework.ui.color.ColorTableCellRenderer |
|
TableRowSorter can also be used for filtering |
| com.jidesoft.swing.CheckBoxList along with org.esa.beam.framework.ui.util.FilteredListModel |
QuickListFilterField | com.jidesoft.swing.LabeledTextField and add DocumentListener to update filter of FilteredListModel |
DateExComboBox | org.jdesktop.swingx.JXDatePicker |
DateCellEditor | org.jdesktop.swingx.table.DatePickerCellEditor or org.esa.snap.rcp.util.DateTimePicker |
snap-visat-rcp | Delete package |
s3tbx-sentinel3-reader.pom | Add the dependency: jidesoft and snap-ui |
SpeedTester | Delete Class |
DockableBarContext, DockableBar, DockableBarManager , DockableBarAdapter, DockableBarEvent, DefaultDockableBarDockableHolder, | jide.action objects and are used in BasicApp, Delete BasicApp and fix its usages. |
DockContext ,DockableFrame, DockableFrameAdapter, DockableFrameEvent,
| jide.dock objects and are used in DefaultToolViewPane, FloatingDockableFrame, |
DefaultDockingManager, DockingManager | jide.dock objects and are used in VisatApplicationPage, FloatingDockableFrame, PixelInfoView |
|
|
LabelStatusBarItem | jide.components is used in BasicApp and VisatApp, Solved after deleting the classes |
JidePopupMenu | found in ImageInfoEditor |
Other
Component | Replacement |
|---|---|
FloatCellEditor | DecimalCellEditor |