Moti Asayag has uploaded a new change for review. Change subject: webadmin: Overload addTextAndLinkAlert with alert type ......................................................................
webadmin: Overload addTextAndLinkAlert with alert type Change-Id: I3695d0b732d4f2139c18defa4809041cd62473f2 Signed-off-by: Moti Asayag <[email protected]> --- M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/tab/host/SubTabHostGeneralInfoPresenter.java 1 file changed, 11 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/21/41021/1 diff --git a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/tab/host/SubTabHostGeneralInfoPresenter.java b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/tab/host/SubTabHostGeneralInfoPresenter.java index f138f51..74b633f 100644 --- a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/tab/host/SubTabHostGeneralInfoPresenter.java +++ b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/tab/host/SubTabHostGeneralInfoPresenter.java @@ -179,8 +179,13 @@ * the text content of the alert * @param command * the command that should be executed when the link is clicked + * @param alertTtpe + * the type of the alert */ - private void addTextAndLinkAlert(final ViewDef view, final String text, final UICommand command) { + private void addTextAndLinkAlert(final ViewDef view, + final String text, + final UICommand command, + final AlertType alertTtpe) { // Find the open and close positions of the link within the message: final int openIndex = text.indexOf("<a>"); //$NON-NLS-1$ final int closeIndex = text.indexOf("</a>"); //$NON-NLS-1$ @@ -223,7 +228,11 @@ alertPanel.add(afterLabel); // Add the alert to the view: - view.addAlert(alertPanel); + view.addAlert(alertPanel, alertTtpe); + } + + private void addTextAndLinkAlert(final ViewDef view, final String text, final UICommand command) { + addTextAndLinkAlert(view, text, command, AlertType.ALERT); } @Override -- To view, visit https://gerrit.ovirt.org/41021 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3695d0b732d4f2139c18defa4809041cd62473f2 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Moti Asayag <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
