// if was no device yet
if (m_selectionPolicy == null) {
m_selectionPolicy = m_editPart.getEditPolicy(EditPolicy.SELECTION_ROLE);
}
// can not resize on device
m_editPart.installEditPolicy(EditPolicy.SELECTION_ROLE, new EmptySelectionEditPolicy());
return;
}
// restore original "selection" if was device before
if (m_selectionPolicy != null) {
m_editPart.installEditPolicy(EditPolicy.SELECTION_ROLE, m_selectionPolicy);