Author: max.andersen(a)jboss.com
Date: 2011-10-14 09:53:20 -0400 (Fri, 14 Oct 2011)
New Revision: 35658
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/NewsToolTip.java
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/model/NewsEntry.java
Log:
JBIDE-9838 minor fixes to make the date take up even less space.
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java
===================================================================
---
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java 2011-10-14
13:33:29 UTC (rev 35657)
+++
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/GettingStartedPage.java 2011-10-14
13:53:20 UTC (rev 35658)
@@ -828,7 +828,7 @@
formText.setColor("author", JFaceColors.getHyperlinkText(getDisplay()));
formText.setImage("image", getNewsImage());
if (entry.getDescription() != null && !entry.getDescription().isEmpty()) {
- ToolTip toolTip = new NewsToolTip(formText, entry.getDescription());
+ ToolTip toolTip = new NewsToolTip(formText, entry.getDate() + " " +
entry.getDescription());
toolTip.activate();
}
formText.addHyperlinkListener(new HyperlinkAdapter() {
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/NewsToolTip.java
===================================================================
---
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/NewsToolTip.java 2011-10-14
13:33:29 UTC (rev 35657)
+++
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/editors/NewsToolTip.java 2011-10-14
13:53:20 UTC (rev 35658)
@@ -100,7 +100,7 @@
super(formText);
this.toolText = "<html>" +
"<head>" +
- "<title>Aggregated feed of all JBoss feeds</title>" +
+ "<title>JBoss</title>" +
"<style>" +
"html, body { font-size: 12px;font-family: Arial, Helvetica, sans-serif; }"
+
"h1, h2, h3, h4, h5, h6 { font-size: 14px;font-weight:bold;font-family: Arial,
Helvetica, sans-serif; }" +
Modified:
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/model/NewsEntry.java
===================================================================
---
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/model/NewsEntry.java 2011-10-14
13:33:29 UTC (rev 35657)
+++
trunk/central/plugins/org.jboss.tools.central/src/org/jboss/tools/central/model/NewsEntry.java 2011-10-14
13:53:20 UTC (rev 35658)
@@ -79,12 +79,12 @@
} else {
buffer.append(title);
}
- buffer.append("<br/>");
+ //buffer.append("<br/>");
boolean cr = false;
if (date != null) {
- buffer.append("<span font=\"default\">");
+ /*buffer.append("<span font=\"default\">");
buffer.append("posted ");
- buffer.append("</span>");
+ buffer.append("</span>");*/
buffer.append("<b>");
PrettyTime prettyTime = new PrettyTime(new Date());
buffer.append(" " + prettyTime.format(date));
Show replies by date