protected void addSourcePage() { addPage( new PageImpl(view.getSourceEditor(), CommonConstants.INSTANCE.SourceTabTitle()) { @Override public void onFocus() { onSourceTabSelected(); } @Override public void onLostFocus() {} }); }
private void addSourceEditorPage() { addPage( new PageImpl( javaSourceEditor, org.kie.workbench.common.widgets.client.resources.i18n.CommonConstants.INSTANCE .SourceTabTitle()) { @Override public void onFocus() { if (uiStarted) { onSourceTabSelected(); } } @Override public void onLostFocus() {} }); }