@Override public void modelContentChanged(EditorModelEvent event) { if (EditorModelEvent.CLOSE_REQUEST == event.getEventType()) { // someone wants to close this Site site = ExtendedApplication.getInstance(this).getSite(); site.popPage(this); } }
protected void closeEditor() { Site site = ExtendedApplication.getInstance(this).getSite(); site.popPage(this); }