protected void onUserdocLinkClicked(final IObservableValue userdocUrlObservable) { String userdocUrl = (String) userdocUrlObservable.getValue(); if (StringUtils.isEmpty(userdocUrl)) { return; } new BrowserUtility() .checkedCreateExternalBrowser( userdocUrl, OpenShiftCommonUIActivator.PLUGIN_ID, OpenShiftCommonUIActivator.getDefault().getLog()); }
private void showHideUserdocLink() { boolean signupUrlExists = !StringUtils.isEmpty(pageModel.getUserdocUrl()); if (signupUrlExists) { IConnectionFactory factory = pageModel.getConnectionFactory(); if (factory != null) { StyledTextUtils.emulateLinkWidget( NLS.bind( "New to OpenShift {0}? Explore the <a>getting started documentation</a>.", factory.getName()), userdocLink); } } UIUtils.setVisibleAndExclude(signupUrlExists, userdocLink); }