Class InstantiatorConfigPage.TreeNodeInsertionSelectionAdapter
- java.lang.Object
-
- org.eclipse.swt.events.SelectionAdapter
-
- net.ssehub.easy.producer.ui.productline_editor.instantiator.InstantiatorConfigPage.TreeNodeInsertionSelectionAdapter
-
- All Implemented Interfaces:
java.util.EventListener,org.eclipse.swt.events.SelectionListener,org.eclipse.swt.internal.SWTEventListener
- Enclosing class:
- InstantiatorConfigPage
private abstract class InstantiatorConfigPage.TreeNodeInsertionSelectionAdapter extends org.eclipse.swt.events.SelectionAdapterA selection adapter checking for supported insertion first.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private TreeNode.Insertableinsertable
-
Constructor Summary
Constructors Modifier Constructor Description privateTreeNodeInsertionSelectionAdapter(TreeNode.Insertable insertable)Creates the selection adapter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected TreeNode.InsertionPointgetSupportedInsertionPoint(TreeNode selected)Returns the supported insertion point for the givenselectednode.protected abstract voidinsert(TreeNode selected)Is called if the insertion shall happen.voidwidgetSelected(org.eclipse.swt.events.SelectionEvent evt)
-
-
-
Field Detail
-
insertable
private TreeNode.Insertable insertable
-
-
Constructor Detail
-
TreeNodeInsertionSelectionAdapter
private TreeNodeInsertionSelectionAdapter(TreeNode.Insertable insertable)
Creates the selection adapter.- Parameters:
insertable- the intended insertable
-
-
Method Detail
-
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent evt)
- Specified by:
widgetSelectedin interfaceorg.eclipse.swt.events.SelectionListener- Overrides:
widgetSelectedin classorg.eclipse.swt.events.SelectionAdapter
-
insert
protected abstract void insert(TreeNode selected)
Is called if the insertion shall happen.- Parameters:
selected- the selected node
-
getSupportedInsertionPoint
protected TreeNode.InsertionPoint getSupportedInsertionPoint(TreeNode selected)
Returns the supported insertion point for the givenselectednode.- Parameters:
selected- the selected node- Returns:
- the insertion point
-
-