Class StyledTextXtextAdapter.ChangeSelectionProviderOnFocusGain
- java.lang.Object
-
- org.yakindu.base.xtext.utils.jface.viewers.StyledTextXtextAdapter.ChangeSelectionProviderOnFocusGain
-
- All Implemented Interfaces:
EventListener
,DisposeListener
,FocusListener
,SWTEventListener
- Enclosing class:
- StyledTextXtextAdapter
public static class StyledTextXtextAdapter.ChangeSelectionProviderOnFocusGain extends Object implements FocusListener, DisposeListener
-
-
Field Summary
Fields Modifier and Type Field Description protected ISelectionProvider
selectionProviderOnFocusGain
protected ISelectionProvider
selectionProviderOnFocusLost
protected IWorkbenchPartSite
site
-
Constructor Summary
Constructors Constructor Description ChangeSelectionProviderOnFocusGain(IWorkbenchPartSite site, ISelectionProvider selectionProviderOnFocusGain, StyledText text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
focusGained(FocusEvent e)
void
focusLost(FocusEvent e)
protected boolean
isIgnoreNextFocusLost()
protected void
setIgnoreNextFocusLost(boolean b)
void
widgetDisposed(DisposeEvent e)
-
-
-
Field Detail
-
selectionProviderOnFocusGain
protected ISelectionProvider selectionProviderOnFocusGain
-
selectionProviderOnFocusLost
protected ISelectionProvider selectionProviderOnFocusLost
-
site
protected IWorkbenchPartSite site
-
-
Constructor Detail
-
ChangeSelectionProviderOnFocusGain
public ChangeSelectionProviderOnFocusGain(IWorkbenchPartSite site, ISelectionProvider selectionProviderOnFocusGain, StyledText text)
-
-
Method Detail
-
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLost
in interfaceFocusListener
-
setIgnoreNextFocusLost
protected void setIgnoreNextFocusLost(boolean b)
-
isIgnoreNextFocusLost
protected boolean isIgnoreNextFocusLost()
-
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGained
in interfaceFocusListener
-
widgetDisposed
public void widgetDisposed(DisposeEvent e)
- Specified by:
widgetDisposed
in interfaceDisposeListener
-
-