modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java | 125 ++++++++++ modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestTopView.java | 10 modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/ErrorHandler.java | 43 +++ modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/Message.java | 13 - modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageBar.java | 33 ++ modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageCenterView.java | 7 modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties | 12 modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_cs.properties | 7 modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_de.properties | 5 modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ja.properties | 5 modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_pt.properties | 5 modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ru.properties | 1 modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_zh.properties | 5 13 files changed, 242 insertions(+), 29 deletions(-)
New commits: commit b8ababacc8dbd7ee3d6ebbf3681f63da3334d44c Author: John Mazzitelli mazz@redhat.com Date: Thu May 24 12:49:37 2012 -0400
[BZ 824898] just add ability to test with custom detail message in the test page
diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java index f67faa4..21285b6 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java @@ -58,25 +58,30 @@ public class TestMessageCenterView extends LocatableVLayout { }
final SelectItem severityMenu = new SelectItem("severityItem", "Severity"); + severityMenu.setWidth(200); severityMenu.setValueMap(severityChoices); severityMenu.setDefaultValue(Severity.Blank.name());
- final SelectItem optionMenu = new SelectItem(); - optionMenu.setTitle("Message Options"); + final SelectItem optionMenu = new SelectItem("optionMenu", "Message Options"); optionMenu.setWidth(200); optionMenu.setMultiple(true); optionMenu.setMultipleAppearance(MultipleAppearance.GRID); optionMenu.setValueMap(optionChoices); optionMenu.setAllowEmptyValue(true);
- final SliderItem exceptionItem = new SliderItem(); - exceptionItem.setTitle("Exception Depth"); - exceptionItem.setWidth(250); + final SliderItem exceptionItem = new SliderItem("exceptionItem", "Exception Depth"); + exceptionItem.setWidth(200); exceptionItem.setMinValue(0); exceptionItem.setMaxValue(10); exceptionItem.setDefaultValue(0);
- final TextItem conciseMessageItem = new TextItem("conciseMessage", "Message"); + final TextItem conciseMessageItem = new TextItem("conciseMessage", "Concise Message"); + conciseMessageItem.setWidth(200); + conciseMessageItem.setValue("A concise message string."); + + final TextItem detailsMessageItem = new TextItem("detailsMessage", "Details or Root Cause Message"); + detailsMessageItem.setWidth(200); + detailsMessageItem.setValue("The details or the inner-most exception message.");
ButtonItem button = new ButtonItem("showMessage", "Show Message"); button.addClickHandler(new ClickHandler() { @@ -91,28 +96,29 @@ public class TestMessageCenterView extends LocatableVLayout {
Severity severity = Severity.valueOf(severityMenu.getValueAsString()); String conciseMessage = conciseMessageItem.getValueAsString(); + String detailsMessage = detailsMessageItem.getValueAsString(); Message msg; Number exceptionDepth = (Number) exceptionItem.getValue(); if (exceptionDepth != null && exceptionDepth.intValue() > 0) { Throwable t = null; for (int depth = exceptionDepth.intValue(); depth > 0; depth--) { if (t == null) { - t = new Throwable("Innermost exception here at depth #" + depth); + t = new Throwable(detailsMessage); } else { t = new Throwable("Exception at depth #" + depth, t); } } msg = new Message(conciseMessage, t, severity, options); } else { - msg = new Message(conciseMessage, "When there is no exception, a detailed message can go here.", - severity, options); + msg = new Message(conciseMessage, detailsMessage, severity, options); } CoreGUI.getMessageCenter().notify(msg); } });
LocatableDynamicForm form = new LocatableDynamicForm(extendLocatorId("form")); - form.setItems(severityMenu, optionMenu, exceptionItem, conciseMessageItem, button); + form.setWidth(500); + form.setItems(severityMenu, optionMenu, exceptionItem, conciseMessageItem, detailsMessageItem, button);
addMember(form); }
commit 325170b9e32037b748bf2ef12c0954f9d6f35ad2 Author: John Mazzitelli mazz@redhat.com Date: Thu May 24 12:08:51 2012 -0400
[BZ 824898] provide the ability to see the root cause for a particular message in the message center.
diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java new file mode 100644 index 0000000..f67faa4 --- /dev/null +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestMessageCenterView.java @@ -0,0 +1,119 @@ +/* + * RHQ Management Platform + * Copyright (C) 2005-2011 Red Hat, Inc. + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +package org.rhq.enterprise.gui.coregui.client.test; + +import java.util.EnumSet; +import java.util.LinkedHashMap; + +import com.smartgwt.client.types.MultipleAppearance; +import com.smartgwt.client.widgets.form.fields.ButtonItem; +import com.smartgwt.client.widgets.form.fields.SelectItem; +import com.smartgwt.client.widgets.form.fields.SliderItem; +import com.smartgwt.client.widgets.form.fields.TextItem; +import com.smartgwt.client.widgets.form.fields.events.ClickEvent; +import com.smartgwt.client.widgets.form.fields.events.ClickHandler; + +import org.rhq.enterprise.gui.coregui.client.CoreGUI; +import org.rhq.enterprise.gui.coregui.client.util.message.Message; +import org.rhq.enterprise.gui.coregui.client.util.message.Message.Option; +import org.rhq.enterprise.gui.coregui.client.util.message.Message.Severity; +import org.rhq.enterprise.gui.coregui.client.util.selenium.LocatableDynamicForm; +import org.rhq.enterprise.gui.coregui.client.util.selenium.LocatableVLayout; + +public class TestMessageCenterView extends LocatableVLayout { + + public TestMessageCenterView(String locatorId) { + super(locatorId); + } + + @Override + protected void onDraw() { + super.onDraw(); + + LinkedHashMap<String, String> severityChoices = new LinkedHashMap<String, String>(); + for (Severity sev : EnumSet.allOf(Severity.class)) { + severityChoices.put(sev.name(), sev.name()); + } + + LinkedHashMap<String, String> optionChoices = new LinkedHashMap<String, String>(); + for (Option opt : EnumSet.allOf(Option.class)) { + optionChoices.put(opt.name(), opt.name()); + } + + final SelectItem severityMenu = new SelectItem("severityItem", "Severity"); + severityMenu.setValueMap(severityChoices); + severityMenu.setDefaultValue(Severity.Blank.name()); + + final SelectItem optionMenu = new SelectItem(); + optionMenu.setTitle("Message Options"); + optionMenu.setWidth(200); + optionMenu.setMultiple(true); + optionMenu.setMultipleAppearance(MultipleAppearance.GRID); + optionMenu.setValueMap(optionChoices); + optionMenu.setAllowEmptyValue(true); + + final SliderItem exceptionItem = new SliderItem(); + exceptionItem.setTitle("Exception Depth"); + exceptionItem.setWidth(250); + exceptionItem.setMinValue(0); + exceptionItem.setMaxValue(10); + exceptionItem.setDefaultValue(0); + + final TextItem conciseMessageItem = new TextItem("conciseMessage", "Message"); + + ButtonItem button = new ButtonItem("showMessage", "Show Message"); + button.addClickHandler(new ClickHandler() { + public void onClick(ClickEvent event) { + EnumSet<Option> options = EnumSet.noneOf(Option.class); + String[] optionsArray = optionMenu.getValues(); + if (optionsArray != null && optionsArray.length > 0) { + for (String optString : optionsArray) { + options.add(Option.valueOf(optString)); + } + } + + Severity severity = Severity.valueOf(severityMenu.getValueAsString()); + String conciseMessage = conciseMessageItem.getValueAsString(); + Message msg; + Number exceptionDepth = (Number) exceptionItem.getValue(); + if (exceptionDepth != null && exceptionDepth.intValue() > 0) { + Throwable t = null; + for (int depth = exceptionDepth.intValue(); depth > 0; depth--) { + if (t == null) { + t = new Throwable("Innermost exception here at depth #" + depth); + } else { + t = new Throwable("Exception at depth #" + depth, t); + } + } + msg = new Message(conciseMessage, t, severity, options); + } else { + msg = new Message(conciseMessage, "When there is no exception, a detailed message can go here.", + severity, options); + } + CoreGUI.getMessageCenter().notify(msg); + } + }); + + LocatableDynamicForm form = new LocatableDynamicForm(extendLocatorId("form")); + form.setItems(severityMenu, optionMenu, exceptionItem, conciseMessageItem, button); + + addMember(form); + } +} diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestTopView.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestTopView.java index 94bdd1e..27ee554 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestTopView.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/test/TestTopView.java @@ -77,6 +77,7 @@ public class TestTopView extends AbstractSectionedLeftNavigationView {
// view IDs for Misc section private static final ViewName MISC_SECTION_VIEW_ID = new ViewName("Misc"); + private static final ViewName PAGE_MESSAGE_CENTER_TEST = new ViewName("MessageCenterTest"); private static final ViewName PAGE_PLURALIZATION_TEST = new ViewName("PluralizationTest"); private static final ViewName PAGE_NUMBER_FORMAT_TEST = new ViewName("NumberFormatTest"); private static final ViewName PAGE_ASYNC = new ViewName("Async"); @@ -225,6 +226,12 @@ public class TestTopView extends AbstractSectionedLeftNavigationView { }
private NavigationSection buildMiscSection() { + NavigationItem messageCenterItem = new NavigationItem(PAGE_MESSAGE_CENTER_TEST, null, new ViewFactory() { + public Canvas createView() { + return new TestMessageCenterView(extendLocatorId(PAGE_MESSAGE_CENTER_TEST.getName())); + } + }); + NavigationItem numberFormatItem = new NavigationItem(PAGE_NUMBER_FORMAT_TEST, null, new ViewFactory() { public Canvas createView() { return new TestNumberFormatView(extendLocatorId(PAGE_NUMBER_FORMAT_TEST.getName())); @@ -249,7 +256,8 @@ public class TestTopView extends AbstractSectionedLeftNavigationView { } });
- return new NavigationSection(MISC_SECTION_VIEW_ID, numberFormatItem, pluralizationItem, asyncItem, rpcItem); + return new NavigationSection(MISC_SECTION_VIEW_ID, messageCenterItem, numberFormatItem, pluralizationItem, + asyncItem, rpcItem); }
} diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/ErrorHandler.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/ErrorHandler.java index 30d6ebb..3758acd 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/ErrorHandler.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/ErrorHandler.java @@ -20,8 +20,6 @@ package org.rhq.enterprise.gui.coregui.client.util;
import java.util.ArrayList;
-import java.util.logging.Logger; - import org.rhq.enterprise.gui.coregui.client.CoreGUI; import org.rhq.enterprise.gui.coregui.client.Messages; import org.rhq.enterprise.gui.coregui.client.util.message.Message; @@ -61,6 +59,14 @@ public class ErrorHandler { } }
+ public static String getRootCauseMessage(Throwable t) { + String[] allMessages = getAllMessagesArray(t, false); + if (allMessages == null || allMessages.length == 0) { + return null; + } + return allMessages[allMessages.length - 1]; + } + public static String getAllMessages(Throwable t) { return getAllMessages(t, false, null); } @@ -95,15 +101,42 @@ public class ErrorHandler { }
public static String[] getAllMessagesArray(Throwable t) { + return getAllMessagesArray(t, true); + } + + public static String[] getAllMessagesArray(Throwable t, boolean includeThrowableClassName) { ArrayList<String> list = new ArrayList<String>();
if (t != null) { - list.add(t.getClass().getName() + ":" + t.getMessage()); + String tMessage = t.getMessage(); + + if (includeThrowableClassName) { + list.add(t.getClass().getName() + ":" + tMessage); + } else { + if (tMessage != null) { + list.add(tMessage); + } else { + // even though we were told not to show throwable class name, + // the problem is we have a null message - so the only thing we have to show is the class name + list.add(t.getClass().getName()); + } + }
while ((t.getCause() != null) && (t != t.getCause())) { t = t.getCause();
- list.add(t.getClass().getName() + ":" + t.getMessage()); + tMessage = t.getMessage(); + if (includeThrowableClassName) { + list.add(t.getClass().getName() + ":" + tMessage); + } else { + if (tMessage != null) { + list.add(tMessage); + } else { + // even though we were told not to show throwable class name, + // the problem is we have a null message - so the only thing we have to show is the class name + list.add(t.getClass().getName()); + } + } } }
@@ -130,7 +163,7 @@ public class ErrorHandler { }
private static void getStackTraceAsCause(Throwable t, StringBuilder s, Throwable cause, String newline) { - s.append("Caused by: ").append(cause.getMessage()).append(newline); + s.append("Caused by: ").append(cause.getClass().getName() + ": " + cause.getMessage()).append(newline);
for (Object line : cause.getStackTrace()) { s.append(INDENT).append("at ").append(line).append(newline); diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/Message.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/Message.java index 0ba4ac4..03cfb4b 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/Message.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/Message.java @@ -36,6 +36,7 @@ public class Message { private static final String PRE_CLOSE = "=~/pre~="; protected String conciseMessage; protected String detailedMessage; + protected String rootCauseMessage = null; protected Date fired = new Date(); protected Severity severity; protected EnumSet<Option> options; @@ -117,7 +118,8 @@ public class Message { }
public Message(String conciseMessage, Throwable details, Severity severity, EnumSet<Option> options) { - this(conciseMessage, PRE_OPEN + ErrorHandler.getAllMessages(details, true, BR) + PRE_CLOSE, severity, options); + this(conciseMessage, getDetailedMessageFromThrowable(details), severity, options); + this.rootCauseMessage = ErrorHandler.getRootCauseMessage(details); }
public Message(String conciseMessage, String detailedMessage, Severity severity, EnumSet<Option> options) { @@ -128,6 +130,10 @@ public class Message { this.options = (options != null) ? options : EnumSet.noneOf(Option.class); }
+ private static String getDetailedMessageFromThrowable(Throwable t) { + return PRE_OPEN + ErrorHandler.getAllMessages(t, true, BR) + PRE_CLOSE; + } + /** * Given a sanitized message with HTML tags escaped, this will put back some HTML tags that we know we * still want. @@ -148,6 +154,10 @@ public class Message { return detailedMessage; }
+ public String getRootCauseMessage() { + return rootCauseMessage; + } + public Date getFired() { return fired; } @@ -173,6 +183,7 @@ public class Message { return "Message{" // + "conciseMessage='" + this.conciseMessage + ''' // + ", detailedMessage='" + this.detailedMessage + ''' // + + ", rootCauseMessage='" + this.rootCauseMessage + ''' // + ", fired=" + this.fired // + ", severity=" + this.severity // + ", options=" + this.options + '}'; diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageBar.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageBar.java index 93bb466..0aba1ba 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageBar.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageBar.java @@ -22,12 +22,15 @@ package org.rhq.enterprise.gui.coregui.client.util.message; import com.google.gwt.user.client.Timer; import com.smartgwt.client.types.Alignment; import com.smartgwt.client.types.Overflow; +import com.smartgwt.client.util.SC; +import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.events.DoubleClickEvent; import com.smartgwt.client.widgets.events.DoubleClickHandler; import com.smartgwt.client.widgets.events.RightMouseDownEvent; import com.smartgwt.client.widgets.events.RightMouseDownHandler; import com.smartgwt.client.widgets.menu.Menu; import com.smartgwt.client.widgets.menu.MenuItem; +import com.smartgwt.client.widgets.menu.MenuItemIfFunction; import com.smartgwt.client.widgets.menu.events.ClickHandler; import com.smartgwt.client.widgets.menu.events.MenuItemClickEvent;
@@ -77,7 +80,23 @@ public class MessageBar extends LocatableHLayout implements MessageCenter.Messag MessageCenterView.showDetails(MessageBar.this.currentMessage); } }); - showDetailsMenu.setItems(showDetailsMenuItem); + + MenuItem showRootCauseMenuItem = new MenuItem(MSG.view_messageCenter_messageRootCause()); + showRootCauseMenuItem.addClickHandler(new ClickHandler() { + @Override + public void onClick(MenuItemClickEvent event) { + String rootCause = MessageBar.this.currentMessage.getRootCauseMessage(); + SC.say(MSG.view_messageCenter_messageRootCause(), rootCause); + } + }); + showRootCauseMenuItem.setEnableIfCondition(new MenuItemIfFunction() { + public boolean execute(Canvas target, Menu menu, MenuItem item) { + return MessageBar.this.currentMessage != null + && MessageBar.this.currentMessage.getRootCauseMessage() != null; + } + }); + + showDetailsMenu.setItems(showRootCauseMenuItem, showDetailsMenuItem); }
@Override @@ -157,8 +176,16 @@ public class MessageBar extends LocatableHLayout implements MessageCenter.Messag private void updateLabel(Message message) { label.hide();
- String contents = (message.getConciseMessage() != null) ? message.getConciseMessage() : message - .getDetailedMessage(); + String contents; + + if (message.getConciseMessage() != null) { + contents = message.getConciseMessage(); + } else if (message.getRootCauseMessage() != null) { + contents = message.getRootCauseMessage(); + } else { + contents = message.getDetailedMessage(); + } + label.setContents(contents);
String styleName = (contents != null) ? message.getSeverity().getStyle() : null; diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageCenterView.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageCenterView.java index 1731413..efaaab8 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageCenterView.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/util/message/MessageCenterView.java @@ -22,7 +22,6 @@ import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List;
-import java.util.logging.Logger; import com.google.gwt.user.client.Timer; import com.smartgwt.client.data.SortSpecifier; import com.smartgwt.client.types.Alignment; @@ -353,11 +352,15 @@ public class MessageCenterView extends Table implements MessageCenter.MessageLis StaticTextItem date = new StaticTextItem("time", MSG.view_messageCenter_messageTime()); date.setValue(TimestampCellFormatter.format(message.fired, TimestampCellFormatter.DATE_TIME_FORMAT_FULL));
+ StaticTextItem rootCause = new StaticTextItem("rootCause", MSG.view_messageCenter_messageRootCause()); + rootCause.setValue(message.rootCauseMessage); + rootCause.setVisible(message.rootCauseMessage != null); + StaticTextItem detail = new StaticTextItem("detail", MSG.view_messageCenter_messageDetail()); detail.setTitleVAlign(VerticalAlignment.TOP); detail.setValue(message.detailedMessage);
- form.setItems(title, severity, date, detail); + form.setItems(title, severity, date, rootCause, detail);
final Window dialogWin = new LocatableWindow("MessageCenterDetailsWindow"); dialogWin.setTitle(MSG.common_title_message()); diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties index 46a3d0a..4e53d8c 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages.properties @@ -398,6 +398,11 @@ datasource_templateSchedules_enabled_failed = Failed to enable collection of met datasource_templateSchedules_updated = Updated collection intervals of selected metric [{0}]. datasource_templateSchedules_updated_detail = Collection interval for metric [{0}] [{1}] by default for ResourceType with id [{2}] set to [{3}] seconds. datasource_templateSchedules_updated_failed = Failed to set collection interval to [{0}] seconds for metric [{1}] [{2}] by default for ResourceType with id [{3}]. +# The enable_tags property is not included here for localization. Since tags are not +# supported for JON, we need a way to disable tags for JON builds. The enable_tags property +# which can be filtered at build time is read by CoreGUI to determine whether or not tags +# should be enabled in the UI. +enable_tags = ${enable.tags} favorites = Favorites favorites_groups = Favorite Groups favorites_recentlyViewed = Recently Viewed @@ -1585,6 +1590,7 @@ view_messageCenter_lastNMessages = Last {0} Messages view_messageCenter_maxMessages = Max Messages view_messageCenter_messageBarShowDetails = Show Details view_messageCenter_messageDetail = Detail +view_messageCenter_messageRootCause = Root Cause view_messageCenter_messageSeverity = Severity view_messageCenter_messageTime = Time view_messageCenter_messageTitle = Message Center @@ -2024,9 +2030,3 @@ widget_typeCache_loadFail = Failed to load resource type metadata widget_typeTree_badTemplateType = Invalid URL. Unknown template type [{0}] widget_typeTree_badTypeId = Invalid URL. Bad resource type ID [{0}] widget_typeTree_loadFail = Failed to load resource types - -# The enable_tags property is not included here for localization. Since tags are not -# supported for JON, we need a way to disable tags for JON builds. The enable_tags property -# which can be filtered at build time is read by CoreGUI to determine whether or not tags -# should be enabled in the UI. -enable_tags = ${enable.tags} diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_cs.properties b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_cs.properties index 548b8fa..9e6d1b4 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_cs.properties +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_cs.properties @@ -836,7 +836,7 @@ view_alert_definition_condition_editor_option_metric_calltime_change = Změna ho view_alert_definition_condition_editor_option_metric_calltime_threshold = Práhová hodnota doby volání view_alert_definition_condition_editor_option_metric_change = Změna měřené hodnoty view_alert_definition_condition_editor_option_metric_range = Rozsah měřené hodnoty -view_alert_definition_condition_editor_option_metric_threshold = Measurement Absolute Value Threshold +view_alert_definition_condition_editor_option_metric_threshold = Measurement Absolute Value Threshold view_alert_definition_condition_editor_option_metric_trait_change = Změna hodnoty vlastnosti view_alert_definition_condition_editor_option_operation = Spuštění operace view_alert_definition_condition_editor_option_resource_configuration = Změna konfigurace zdroje @@ -1539,7 +1539,6 @@ view_inventory_resources_deleteFailed = Nepodařilo se odstranit vybrané zdroje view_inventory_resources_deleteSuccessful = Požadavek na smazání zdroje byl úspěšně předán všem agentům. view_inventory_resources_disableConfirm = Jste si jisti, že chcete zneplatnit vybrané zdroje? Při zneplatnění jsou hlášení o dostupnosti zdroje ignorovány. Zneplatňování může být užitečné při údržbě systému, kdy se předpokládá, že zdroje nebudou fungovat (plánovaný restart apod.) view_inventory_resources_disableFailed = Nepodařilo se zneplatnit vybrané zdroje. -vview_inventory_resources_disableSuccessful = Úspěšně jste zneplatnil vybrané zdroje a jejich potomky, [{0}] zdrojů view_inventory_resources_enableConfirm = Jste si jisti, že chcete povolit vybrané zdroje? Při povolení se dostupnost nastaví na neznámou (UNKNOWN) dokud neproběhne další agentovo hlášení o dostupnosti zdrojů. Agenti budou požádáni o tento report co nejdříve. view_inventory_resources_enableFailed = Nepodařilo se povolit vybrané zdroje. view_inventory_resources_enableSuccessful = Úspěšně jste povolili vybrané zdroje a jejich potomky, [{0}] zdrojů. @@ -1588,6 +1587,7 @@ view_messageCenter_lastNMessages = Posledních {0} zpráv view_messageCenter_maxMessages = Maximum zpráv view_messageCenter_messageBarShowDetails = Zobrazit detaily view_messageCenter_messageDetail = Detail +##view_messageCenter_messageRootCause = Root Cause view_messageCenter_messageSeverity = Závažnost view_messageCenter_messageTime = Čas view_messageCenter_messageTitle = Centrum zpráv @@ -1949,6 +1949,7 @@ view_upload_tooltip_1b = Vyberte soubor k uploadu a klikněte na Další view_upload_tooltip_2 = Upload souboru minule selhal view_upload_upload = Upload view_upload_uploadFile = Upload souboru +vview_inventory_resources_disableSuccessful = Úspěšně jste zneplatnil vybrané zdroje a jejich potomky, [{0}] zdrojů widget_colorPicker_tooltip = Klikněte pro výběr nové barvy widget_durationItem_inputUnitLessThanTargetUnit = Vstupní jednotka je menší než cílová jednotka. widget_durationItem_unitTypeNotSupported = Typ jednotek [{0}] není podporován třídou DurationItem. @@ -2026,4 +2027,4 @@ widget_resourceSelector_selectResource = Vyber zdroj widget_typeCache_loadFail = Nepodařilo se načíst metadata typu zdroje. widget_typeTree_badTemplateType = Neplatné URL. Neznámy typ šablony: [{0}] widget_typeTree_badTypeId = Neplatné URL. Špatný typ zdroje ID: [{0}] - widget_typeTree_loadFail = Nepodařilo se načíst typy zdrojů +widget_typeTree_loadFail = Nepodařilo se načíst typy zdrojů diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_de.properties b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_de.properties index 9a66a86..57e541c 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_de.properties +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_de.properties @@ -1360,6 +1360,7 @@ view_messageCenter_lastNMessages = Letzte {0} Nachrichten view_messageCenter_maxMessages = Alle Nachrichten view_messageCenter_messageBarShowDetails = Details zeigen view_messageCenter_messageDetail = Detail +##view_messageCenter_messageRootCause = Root Cause view_messageCenter_messageSeverity = Schwere view_messageCenter_messageTime = Zeitpukt view_messageCenter_messageTitle = Nachrichtencenter @@ -1759,8 +1760,8 @@ widget_recordEditor_warn_validation = Ein oder mehrere Felder haben ungültige W ##widget_resourceFactoryWizard_archPrompt = Package Architecture ##widget_resourceFactoryWizard_configTemplatePrompt = Resource Configuration Templates ##widget_resourceFactoryWizard_contentTemplatePrompt = Deployment Time Configuration Templates -##widget_resourceFactoryWizard_createSubmit=A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. -##widget_resourceFactoryWizard_createSubmitType=A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmit = A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmitType = A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. widget_resourceFactoryWizard_createWizardTitle = Neue Ressource vom Typ [{0}] anlegen widget_resourceFactoryWizard_createWizardWindowTitle = Assistent zum Erzeugen von Ressourcen widget_resourceFactoryWizard_editConfigStepName = Optionen für das Deployment diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ja.properties b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ja.properties index 328eda4..ff17934 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ja.properties +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ja.properties @@ -1579,6 +1579,7 @@ view_messageCenter_lastNMessages = 最新の {0} メッセージ view_messageCenter_maxMessages = 最大メッセージ view_messageCenter_messageBarShowDetails = 詳細表示 view_messageCenter_messageDetail = 詳細 +##view_messageCenter_messageRootCause = Root Cause view_messageCenter_messageSeverity = 重大度 view_messageCenter_messageTime = 時間 view_messageCenter_messageTitle = メッセージセンター @@ -1986,8 +1987,8 @@ widget_recordEditor_warn_validation = 一つ以上のフィールドが無効な widget_resourceFactoryWizard_archPrompt = パッケージアーキテクチャ widget_resourceFactoryWizard_configTemplatePrompt = リソース構成テンプレート widget_resourceFactoryWizard_contentTemplatePrompt = デプロイ時間構成テンプレート -##widget_resourceFactoryWizard_createSubmit=A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. -##widget_resourceFactoryWizard_createSubmitType=A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmit = A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmitType = A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. widget_resourceFactoryWizard_createWizardTitle = タイプ [{0}] の新規リソースの作成 widget_resourceFactoryWizard_createWizardWindowTitle = リソース作成ウィザード widget_resourceFactoryWizard_editConfigStepName = 編集の構成 diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_pt.properties b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_pt.properties index 7a1c9b9..9f5cf82 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_pt.properties +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_pt.properties @@ -1610,6 +1610,7 @@ view_messageCenter_lastNMessages = Last {0} Messages view_messageCenter_maxMessages = Max Messages view_messageCenter_messageBarShowDetails = Show Details view_messageCenter_messageDetail = Detalhe +##view_messageCenter_messageRootCause = Root Cause view_messageCenter_messageSeverity = Severidade view_messageCenter_messageTime = Tempo view_messageCenter_messageTitle = Centro de Mensagens @@ -2100,8 +2101,8 @@ widget_recordEditor_warn_validation = Um ou mais campos possuem valores inv\u00E widget_resourceFactoryWizard_archPrompt = Arquitetura do Pacote widget_resourceFactoryWizard_configTemplatePrompt = Modelo de Configura\u00E7\u00E3o de Recurso widget_resourceFactoryWizard_contentTemplatePrompt = Modelos de Configura\u00E7\u00E3o do Tempo de Deploy -##widget_resourceFactoryWizard_createSubmit=A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. -##widget_resourceFactoryWizard_createSubmitType=A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmit = A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmitType = A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. widget_resourceFactoryWizard_createWizardTitle = Criar novo recurso do tipo [{0}] widget_resourceFactoryWizard_createWizardWindowTitle = Assistente para Cria\u00E7\u00E3o de Recurso widget_resourceFactoryWizard_editConfigStepName = Op��es de implanta��o diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ru.properties b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ru.properties index 2c97c34..1fd5f80 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ru.properties +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_ru.properties @@ -2445,3 +2445,4 @@ view_admin_downloads_cli_loadError = Не удалось получить вер view_admin_downloads_cli_md5 = CLI MD5 view_admin_downloads_cli_version = Версия CLI ##view_bundle_revertWizard_getInfoStep_revertDeployDescFull = [REVERT From] {0} [REVERT To] {1} +##view_messageCenter_messageRootCause = Root Cause diff --git a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_zh.properties b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_zh.properties index 7ac3745..1f68830 100644 --- a/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_zh.properties +++ b/modules/enterprise/gui/coregui/src/main/resources/org/rhq/enterprise/gui/coregui/client/Messages_zh.properties @@ -1580,6 +1580,7 @@ view_messageCenter_lastNMessages = \u6700\u540e {0} \u6761\u4fe1\u606f view_messageCenter_maxMessages = \u6700\u5927\u6d88\u606f\u91cf view_messageCenter_messageBarShowDetails = \u663e\u793a\u5185\u5bb9 view_messageCenter_messageDetail = \u8be6\u7ec6\u5185\u5bb9 +##view_messageCenter_messageRootCause = Root Cause view_messageCenter_messageSeverity = \u91cd\u8981\u7ea7\u522b view_messageCenter_messageTime = \u65f6\u95f4 view_messageCenter_messageTitle = \u6d88\u606f\u4e2d\u5fc3 @@ -1985,8 +1986,8 @@ widget_recordEditor_warn_validation = \u4e00\u4e2a\u6216\u591a\u4e2a\u5b57\u6bb5 widget_resourceFactoryWizard_archPrompt = \u5305\u67b6\u6784 widget_resourceFactoryWizard_configTemplatePrompt = \u8d44\u6e90\u914d\u7f6e\u6a21\u677f widget_resourceFactoryWizard_contentTemplatePrompt = \u53d1\u5e03\u65f6\u95f4\u914d\u7f6e\u6a21\u677f -##widget_resourceFactoryWizard_createSubmit=A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. -##widget_resourceFactoryWizard_createSubmitType=A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmit = A request to create a Resource with the name of [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. +##widget_resourceFactoryWizard_createSubmitType = A request to create a Resource of type [{0}] has been submitted successfully. Note, it may take several minutes for the Resource to show up in inventory. widget_resourceFactoryWizard_createWizardTitle = \u521b\u5efa\u7c7b\u578b[{0}]\u7684\u65b0\u8d44\u6e90 widget_resourceFactoryWizard_createWizardWindowTitle = \u8d44\u6e90\u521b\u5efa\u5411\u5bfc ##widget_resourceFactoryWizard_editConfigStepName = Deployment Options
rhq-commits@lists.fedorahosted.org