Author: adietish
Date: 2012-01-31 05:59:31 -0500 (Tue, 31 Jan 2012)
New Revision: 38319
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationDetailsContentProvider.java
Log:
[JBIDE-10724] added application name when logging
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationDetailsContentProvider.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationDetailsContentProvider.java 2012-01-31
10:55:53 UTC (rev 38318)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationDetailsContentProvider.java 2012-01-31
10:59:31 UTC (rev 38319)
@@ -7,6 +7,7 @@
import java.util.ArrayList;
import java.util.List;
+import org.eclipse.osgi.util.NLS;
import
org.jboss.tools.openshift.express.internal.ui.propertytable.AbstractPropertyTableContentProvider;
import org.jboss.tools.openshift.express.internal.ui.propertytable.ContainerElement;
import org.jboss.tools.openshift.express.internal.ui.propertytable.IProperty;
@@ -28,9 +29,8 @@
public Object[] getElements(Object inputElement) {
List<IProperty> elements = new ArrayList<IProperty>();
if (inputElement instanceof IApplication) {
+ IApplication application = (IApplication) inputElement;
try {
- IApplication application = (IApplication) inputElement;
-
elements.add(new StringElement("Name", application.getName()));
elements.add(
new StringElement("Public URL",
application.getApplicationUrl().toString(), true));
@@ -43,7 +43,8 @@
elements.add(createCartridges(application));
} catch (Exception e) {
- Logger.error("Failed to display details for OpenShift application", e);
+ Logger.error(
+ NLS.bind("Could not display details for OpenShift application {0}",
application.getName()), e);
}
}
return elements.toArray();
Show replies by date