Changeset 9385 for lang/java/sabotter
- Timestamp:
- 04/13/08 12:39:32 (5 years ago)
- Location:
- lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views
- Files:
-
- 3 modified
-
SabotterView.java (modified) (2 diffs)
-
TimeLineSorter.java (modified) (1 diff)
-
TimeLineViewLabelProvider.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views/SabotterView.java
r9383 r9385 64 64 new ColumnPixelData(200), 65 65 new ColumnPixelData(500), 66 new ColumnPixelData(1 80)66 new ColumnPixelData(130) 67 67 }; 68 68 … … 84 84 @Override 85 85 public void saveState(IMemento memento) { 86 // FIXME ビューを閉じる時にここに入ってくるハズが、入ってこない。 87 // http://www.masatom.in/pukiwiki/index.php?Eclipse%2F%A5%D7%A5%E9%A5%B0%A5%A4%A5%F3%B3%AB%C8%AF%A4%CETIPS%BD%B8%2FTableViewer 86 88 super.saveState(memento); 87 89 saveColumnWidth(memento); -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views/TimeLineSorter.java
r9380 r9385 33 33 this.inverted = inverted; 34 34 this.df = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy", Locale.US); 35 36 35 } 37 36 -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views/TimeLineViewLabelProvider.java
r9383 r9385 3 3 import java.io.IOException; 4 4 import java.io.InputStream; 5 import java.text.DateFormat; 6 import java.text.ParseException; 7 import java.text.SimpleDateFormat; 8 import java.util.Date; 5 9 import java.util.HashMap; 10 import java.util.Locale; 6 11 import java.util.Map; 7 12 … … 27 32 private Map<String, Image> cashe = new HashMap<String, Image>(); 28 33 34 DateFormat dfIn = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy", Locale.US); 35 DateFormat dfOut = new SimpleDateFormat("HH:mm:ss yyyy/MM/dd", Locale.getDefault()); 29 36 30 37 public String getColumnText(Object obj, int index) { … … 42 49 break; 43 50 case 2: 44 result = status.getCreatedAt(); 51 try { 52 Date date = dfIn.parse(status.getCreatedAt()); 53 result = dfOut.format(date); 54 } catch (ParseException e) { 55 result = status.getCreatedAt(); 56 } 45 57 break; 46 58 default:
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)