Changeset 11075
- Timestamp:
- 05/04/08 15:27:45 (5 years ago)
- Location:
- lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter
- Files:
-
- 11 added
- 13 modified
-
action/CreateFavoriteAction.java (modified) (4 diffs)
-
action/GetNewFriendTimeLineAction.java (modified) (3 diffs)
-
action/OpenFavotterAction.java (modified) (3 diffs)
-
action/OpenUsersHomeAction.java (modified) (3 diffs)
-
action/ReplyAction.java (modified) (3 diffs)
-
core (added)
-
core/Sabotter.java (added)
-
core/SabotterAdapter.java (added)
-
core/SabotterListener.java (added)
-
core/SabotterStatus.java (added)
-
core/SabotterUser.java (added)
-
core/impl (added)
-
core/impl/SabotterImpl.java (added)
-
core/impl/SabotterStatusImpl.java (added)
-
core/impl/SabotterUserImpl.java (added)
-
core/impl/TwitterAdapterWrapper.java (added)
-
filters/UnreadFilter.java (modified) (2 diffs)
-
manager/BrowserManager.java (modified) (3 diffs)
-
manager/TableManager.java (modified) (4 diffs)
-
manager/TwitterManager.java (modified) (21 diffs)
-
views/LabelProcessor.java (modified) (11 diffs)
-
views/SabotterView.java (modified) (9 diffs)
-
views/TimeLineSorter.java (modified) (5 diffs)
-
views/TimeLineViewLabelProvider.java (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/action/CreateFavoriteAction.java
r10440 r11075 3 3 import java.util.List; 4 4 5 import jp.xet.eclipse.sabotter.core.SabotterStatus; 6 import jp.xet.eclipse.sabotter.core.SabotterListener; 5 7 import jp.xet.eclipse.sabotter.manager.TwitterManager; 8 6 9 import org.eclipse.jface.viewers.IStructuredSelection; 7 10 import org.eclipse.jface.viewers.TableViewer; 8 11 import org.eclipse.swt.custom.CTabFolder; 9 10 import twitter4j.Status;11 import twitter4j.TwitterListener;12 12 13 13 /** … … 22 22 23 23 /** 結果ハンドラ */ 24 private TwitterListener listener;24 private SabotterListener listener; 25 25 26 26 … … 34 34 */ 35 35 public CreateFavoriteAction(List<TableViewer> viewers, 36 CTabFolder tabFolder, TwitterListener listener) {36 CTabFolder tabFolder, SabotterListener listener) { 37 37 super(viewers, tabFolder); 38 38 this.listener = listener; … … 51 51 (IStructuredSelection) viewer.getSelection(); 52 52 for (Object statusObj : selection.toList()) { 53 if (statusObj instanceof S tatus) {54 int targetStatusId = ((S tatus) statusObj).getId();53 if (statusObj instanceof SabotterStatus) { 54 int targetStatusId = ((SabotterStatus) statusObj).getId(); 55 55 TwitterManager.getInstance().createFavorite(targetStatusId, 56 56 listener); -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/action/GetNewFriendTimeLineAction.java
r10440 r11075 8 8 import org.eclipse.jface.action.Action; 9 9 10 import twitter4j.TwitterListener;10 import jp.xet.eclipse.sabotter.core.SabotterListener; 11 11 12 12 /** … … 21 21 22 22 /** 取得したタイムラインの非同期ハンドラ */ 23 private TwitterListener listener;23 private SabotterListener listener; 24 24 25 25 … … 30 30 * @category instance creation 31 31 */ 32 public GetNewFriendTimeLineAction( TwitterListener listener) {32 public GetNewFriendTimeLineAction(SabotterListener listener) { 33 33 this.listener = listener; 34 34 } -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/action/OpenFavotterAction.java
r11062 r11075 4 4 5 5 import jp.xet.eclipse.sabotter.SabotterPlugin; 6 import jp.xet.eclipse.sabotter.core.SabotterStatus; 6 7 import jp.xet.eclipse.sabotter.manager.BrowserManager; 7 8 import org.eclipse.jface.viewers.IStructuredSelection; … … 9 10 import org.eclipse.swt.custom.CTabFolder; 10 11 import org.eclipse.ui.PartInitException; 11 12 import twitter4j.Status;13 12 14 13 /** … … 46 45 (IStructuredSelection) viewer.getSelection(); 47 46 for (Object obj : selection.toList()) { 48 S tatus status = (Status) obj;47 SabotterStatus status = (SabotterStatus) obj; 49 48 try { 50 49 BrowserManager -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/action/OpenUsersHomeAction.java
r11062 r11075 4 4 5 5 import jp.xet.eclipse.sabotter.SabotterPlugin; 6 import jp.xet.eclipse.sabotter.core.SabotterStatus; 6 7 import jp.xet.eclipse.sabotter.manager.BrowserManager; 7 8 import org.eclipse.jface.viewers.IStructuredSelection; … … 9 10 import org.eclipse.swt.custom.CTabFolder; 10 11 import org.eclipse.ui.PartInitException; 11 12 import twitter4j.Status;13 12 14 13 /** … … 46 45 (IStructuredSelection) viewer.getSelection(); 47 46 for (Object obj : selection.toList()) { 48 S tatus status = (Status) obj;47 SabotterStatus status = (SabotterStatus) obj; 49 48 try { 50 49 BrowserManager.openPage("http://twitter.com/{screenName}", // $NON-NLS-1$ -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/action/ReplyAction.java
r10355 r11075 2 2 3 3 import java.util.List; 4 5 import jp.xet.eclipse.sabotter.core.SabotterStatus; 4 6 5 7 import org.eclipse.jface.viewers.ISelection; … … 8 10 import org.eclipse.swt.custom.CTabFolder; 9 11 import org.eclipse.swt.widgets.Text; 10 11 import twitter4j.Status;12 12 13 13 /** … … 48 48 TableViewer viewer = getCurrentViewer(); 49 49 ISelection selection = viewer.getSelection(); 50 S tatus status =51 (S tatus) ((IStructuredSelection) selection).getFirstElement();50 SabotterStatus status = 51 (SabotterStatus) ((IStructuredSelection) selection).getFirstElement(); 52 52 53 53 // TODO refactor -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/filters/UnreadFilter.java
r11062 r11075 1 1 package jp.xet.eclipse.sabotter.filters; 2 2 3 import jp.xet.eclipse.sabotter.core.SabotterStatus; 3 4 import jp.xet.eclipse.sabotter.manager.TwitterManager; 4 5 5 6 import org.eclipse.jface.viewers.Viewer; 6 import twitter4j.Status;7 7 8 8 /** … … 22 22 @Override 23 23 public boolean select(Viewer viewer, Object parentElement, Object element) { 24 S tatus status = (Status) element;24 SabotterStatus status = (SabotterStatus) element; 25 25 if (TwitterManager.getInstance().isUnread(status)) { 26 26 return true; -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/manager/BrowserManager.java
r10836 r11075 4 4 import java.net.URL; 5 5 6 import jp.xet.eclipse.sabotter.core.SabotterStatus; 6 7 import jp.xet.eclipse.sabotter.exception.SabotterRuntimeException; 7 8 … … 10 11 import org.eclipse.ui.browser.IWebBrowser; 11 12 import org.eclipse.ui.browser.IWorkbenchBrowserSupport; 12 13 import twitter4j.Status;14 13 15 14 /** … … 49 48 * @throws PartInitException 50 49 */ 51 public static void openPage(String url, S tatus status)50 public static void openPage(String url, SabotterStatus status) 52 51 throws PartInitException { 53 52 url = url.replace("{screenName}", status.getUser().getScreenName()); -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/manager/TableManager.java
r10804 r11075 4 4 import java.util.List; 5 5 6 import jp.xet.eclipse.sabotter.core.SabotterStatus; 6 7 import jp.xet.eclipse.sabotter.views.TimeLineSorter; 7 8 … … 10 11 import org.eclipse.jface.viewers.StructuredSelection; 11 12 import org.eclipse.jface.viewers.TableViewer; 12 import twitter4j.Status;13 13 14 14 /** … … 36 36 */ 37 37 public void oldestUnread() { 38 S tatus oldestUnread = TwitterManager.getInstance().getOldestUnread();38 SabotterStatus oldestUnread = TwitterManager.getInstance().getOldestUnread(); 39 39 if (oldestUnread != null) { 40 40 ISelection sel = new StructuredSelection(oldestUnread); … … 95 95 * @return ステータスのリスト 96 96 */ 97 public List<S tatus> getSelection() {98 List<S tatus> result = new ArrayList<Status>();97 public List<SabotterStatus> getSelection() { 98 List<SabotterStatus> result = new ArrayList<SabotterStatus>(); 99 99 IStructuredSelection selection = 100 100 (IStructuredSelection) viewer.getSelection(); 101 101 for (Object obj : selection.toList()) { 102 result.add((S tatus) obj);102 result.add((SabotterStatus) obj); 103 103 } 104 104 return result; -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/manager/TwitterManager.java
r10969 r11075 10 10 11 11 import jp.xet.eclipse.sabotter.SabotterPlugin; 12 import jp.xet.eclipse.sabotter.core.SabotterStatus; 13 import jp.xet.eclipse.sabotter.core.Sabotter; 14 import jp.xet.eclipse.sabotter.core.SabotterListener; 15 import jp.xet.eclipse.sabotter.core.impl.SabotterImpl; 12 16 import jp.xet.eclipse.sabotter.preferences.PreferenceKeys; 13 17 import jp.xet.eclipse.sabotter.preferences.SabotterPreference; … … 17 21 import org.eclipse.jface.util.PropertyChangeEvent; 18 22 19 import twitter4j.AsyncTwitter;20 import twitter4j.Status;21 23 import twitter4j.TwitterException; 22 import twitter4j.TwitterListener;23 24 24 25 /** … … 30 31 31 32 /** TwitterAPIラッパー */ 32 private AsyncTwitter twitterAPI;33 private Sabotter twitterAPI; 33 34 34 35 /** 取得したStatusを保持する */ 35 private SortedSet<S tatus> allStatuses =36 new TreeSet<S tatus>(new StatusComparator());36 private SortedSet<SabotterStatus> allStatuses = 37 new TreeSet<SabotterStatus>(new StatusComparator()); 37 38 38 39 /** 未読ステータスセット */ 39 private SortedSet<S tatus> unread =40 new TreeSet<S tatus>(new StatusComparator());40 private SortedSet<SabotterStatus> unread = 41 new TreeSet<SabotterStatus>(new StatusComparator()); 41 42 42 43 /** singletonインスタンス */ … … 47 48 48 49 49 private class StatusComparator implements Comparator<S tatus> {50 private class StatusComparator implements Comparator<SabotterStatus> { 50 51 51 52 /** … … 54 55 * @return 結果 55 56 */ 56 public int compare(S tatus o1,Status o2) {57 public int compare(SabotterStatus o1, SabotterStatus o2) { 57 58 return o1.getId() - o2.getId(); 58 59 } … … 103 104 String username = ps.getString(PreferenceKeys.USERNAME); 104 105 String password = ps.getString(PreferenceKeys.PASSWORD); 105 twitterAPI = new AsyncTwitter(username, password);106 twitterAPI = new SabotterImpl(username, password); 106 107 } 107 108 … … 122 123 * @return 自分のステータスであれば<code>true</code> 123 124 */ 124 public boolean isOwnStatus(S tatus status) {125 public boolean isOwnStatus(SabotterStatus status) { 125 126 String username = pref.getUsername(); 126 127 … … 134 135 * @return 返信ステータスであれば<code>true</code> 135 136 */ 136 public boolean isReplyStatus(S tatus status) {137 public boolean isReplyStatus(SabotterStatus status) { 137 138 String username = pref.getUsername(); 138 139 … … 146 147 * @return 初めて取得したステータスであれば<code>true</code> 147 148 */ 148 public boolean isNewStatus(S tatus status) {149 public boolean isNewStatus(SabotterStatus status) { 149 150 return allStatuses.contains(status) == false; 150 151 } … … 156 157 * @return 未読であれば<code>true</code> 157 158 */ 158 public boolean isUnread(S tatus status) {159 public boolean isUnread(SabotterStatus status) { 159 160 return unread.contains(status); 160 161 } … … 165 166 * @param status 166 167 */ 167 public void setReaded(S tatus status) {168 public void setReaded(SabotterStatus status) { 168 169 unread.remove(status); 169 170 } … … 174 175 * @param statuses 175 176 */ 176 public void setReaded(List<S tatus> statuses) {177 for (S tatus status : statuses) {177 public void setReaded(List<SabotterStatus> statuses) { 178 for (SabotterStatus status : statuses) { 178 179 setReaded(status); 179 180 } … … 185 186 * @param status 186 187 */ 187 public void setUnread(S tatus status) {188 public void setUnread(SabotterStatus status) { 188 189 if (pref.isUnreadManagement()) { 189 190 unread.add(status); … … 196 197 * @param statuses 197 198 */ 198 public void setUnread(List<S tatus> statuses) {199 for (S tatus status : statuses) {199 public void setUnread(List<SabotterStatus> statuses) { 200 for (SabotterStatus status : statuses) { 200 201 setUnread(status); 201 202 } … … 207 208 * @param status 208 209 */ 209 public void add(S tatus status) {210 public void add(SabotterStatus status) { 210 211 allStatuses.add(status); 211 212 … … 220 221 * @return 破棄されたステータスのセット 221 222 */ 222 public Set<S tatus> cutoff() {223 public Set<SabotterStatus> cutoff() { 223 224 int max = pref.getMaxStatuses(); 224 225 int numberToCutoff = allStatuses.size() - max; 225 Set<S tatus> statusesToRemove =226 new HashSet<S tatus>(Math.max(0, numberToCutoff));226 Set<SabotterStatus> statusesToRemove = 227 new HashSet<SabotterStatus>(Math.max(0, numberToCutoff)); 227 228 if (numberToCutoff > 0) { 228 Iterator<S tatus> ite = allStatuses.iterator();229 Iterator<SabotterStatus> ite = allStatuses.iterator(); 229 230 for (int i = 0; i < numberToCutoff; i++) { 230 231 statusesToRemove.add(ite.next()); … … 241 242 * @return 全てのステータス 242 243 */ 243 public SortedSet<S tatus> getAllStatuses() {244 public SortedSet<SabotterStatus> getAllStatuses() { 244 245 return allStatuses; 245 246 } … … 250 251 * @return 一番古い未読ステータス 251 252 */ 252 public S tatus getOldestUnread() {253 public SabotterStatus getOldestUnread() { 253 254 if (unread.isEmpty() == false) { 254 255 return unread.first(); … … 262 263 * @param listener 取得した後のデータハンドラ 263 264 */ 264 public void getFriendsTimeline( TwitterListener listener) {265 public void getFriendsTimeline(SabotterListener listener) { 265 266 twitterAPI.getFriendsTimelineAsync(listener); 266 267 } … … 273 274 * @throws TwitterException 274 275 */ 275 public S tatus update(String message) throws TwitterException {276 S tatus status = null;276 public SabotterStatus update(String message) throws TwitterException { 277 SabotterStatus status = null; 277 278 if (message.length() != 0) { 278 279 status = twitterAPI.update(message); … … 287 288 * @param listener ふぁぼった後のデータハンドラ 288 289 */ 289 public void createFavorite(int id, TwitterListener listener) {290 public void createFavorite(int id, SabotterListener listener) { 290 291 twitterAPI.createFavoriteAsync(id, listener); 291 292 } -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views/LabelProcessor.java
r10804 r11075 12 12 13 13 import jp.xet.eclipse.sabotter.SabotterPlugin; 14 import jp.xet.eclipse.sabotter.core.SabotterStatus; 14 15 import jp.xet.eclipse.sabotter.manager.TwitterManager; 15 16 import jp.xet.eclipse.sabotter.preferences.SabotterPreference; … … 27 28 import org.eclipse.swt.graphics.ImageData; 28 29 29 import twitter4j.Status;30 31 30 /** 32 31 * 表示文字列等の加工(色づけ等)クラス。 … … 57 56 * @return 名前 58 57 */ 59 public String getName(S tatus status) {58 public String getName(SabotterStatus status) { 60 59 switch (pref.getNameType()) { 61 60 case NAME: … … 76 75 * @return メッセージ 77 76 */ 78 public String getText(S tatus status) {77 public String getText(SabotterStatus status) { 79 78 return status.getText(); 80 79 } … … 86 85 * @return IDリンク付きメッセージ 87 86 */ 88 public String getLinkedText(S tatus status) {87 public String getLinkedText(SabotterStatus status) { 89 88 String txt = getText(status); 90 89 txt = … … 103 102 * @return 日時 104 103 */ 105 public String getTime(S tatus status) {104 public String getTime(SabotterStatus status) { 106 105 String result; 107 106 try { … … 120 119 * @return アイコン 121 120 */ 122 public Image getImage(S tatus status) {121 public Image getImage(SabotterStatus status) { 123 122 if (status == null) { 124 123 return null; … … 166 165 * @return アイコン 167 166 */ 168 public Image getProcessedImage(S tatus status) {167 public Image getProcessedImage(SabotterStatus status) { 169 168 // キャッシュのキーとして使う文字列なので、encode()はしてない 170 169 String key = … … 262 261 * @return 背景色 263 262 */ 264 public Color getBackgroundColor(S tatus status) {263 public Color getBackgroundColor(SabotterStatus status) { 265 264 TwitterManager manager = TwitterManager.getInstance(); 266 265 if (manager.isOwnStatus(status)) { … … 281 280 * @return 文字色 282 281 */ 283 public Color getForegroundColor(S tatus status) {282 public Color getForegroundColor(SabotterStatus status) { 284 283 TwitterManager manager = TwitterManager.getInstance(); 285 284 if (manager.isOwnStatus(status)) { … … 300 299 * @return フォント 301 300 */ 302 public Font getFont(S tatus status) {301 public Font getFont(SabotterStatus status) { 303 302 return pref.getStatusFont(); 304 303 } -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views/SabotterView.java
r11062 r11075 18 18 import jp.xet.eclipse.sabotter.action.OpenUsersHomeAction; 19 19 import jp.xet.eclipse.sabotter.action.ReplyAction; 20 import jp.xet.eclipse.sabotter.core.SabotterStatus; 21 import jp.xet.eclipse.sabotter.core.SabotterAdapter; 20 22 import jp.xet.eclipse.sabotter.manager.BrowserManager; 21 23 import jp.xet.eclipse.sabotter.manager.TwitterManager; … … 71 73 import org.eclipse.ui.part.ViewPart; 72 74 73 import twitter4j.Status;74 import twitter4j.TwitterAdapter;75 75 import twitter4j.TwitterException; 76 76 … … 176 176 * @author daisuke 177 177 */ 178 private class SabotterListener extends TwitterAdapter {178 private class SabotterListener extends SabotterAdapter { 179 179 180 180 /** … … 184 184 */ 185 185 @Override 186 public void gotFriendsTimeline(List<S tatus> statuses) {186 public void gotFriendsTimeline(List<SabotterStatus> statuses) { 187 187 SabotterPlugin.log(org.eclipse.core.runtime.Status.INFO, 0, 188 188 "Sabotter: responce recieved"); // $NON-NLS-1$ 189 189 190 final Set<S tatus> toAdd = new HashSet<Status>();190 final Set<SabotterStatus> toAdd = new HashSet<SabotterStatus>(); 191 191 TwitterManager twitterManager = TwitterManager.getInstance(); 192 for (S tatus status : statuses) {192 for (SabotterStatus status : statuses) { 193 193 if (twitterManager.isNewStatus(status)) { 194 194 toAdd.add(status); … … 196 196 } 197 197 } 198 final Set<S tatus> toRemove = twitterManager.cutoff();198 final Set<SabotterStatus> toRemove = twitterManager.cutoff(); 199 199 200 200 // UIスレッドでWidgetを操作する。 … … 205 205 0, "Sabotter: start to add statuses to table"); // $NON-NLS-1$ 206 206 for (TableViewer viewer : viewers) { 207 viewer.remove(toRemove.toArray(new S tatus[0]));208 viewer.add(toAdd.toArray(new S tatus[0]));207 viewer.remove(toRemove.toArray(new SabotterStatus[0])); 208 viewer.add(toAdd.toArray(new SabotterStatus[0])); 209 209 } 210 210 SabotterPlugin.log(org.eclipse.core.runtime.Status.INFO, … … 258 258 (IStructuredSelection) viewer.getSelection(); 259 259 for (Object obj : selection.toList()) { 260 TwitterManager.getInstance().setReaded((S tatus) obj);261 } 262 263 setDetail((S tatus) selection.getFirstElement());260 TwitterManager.getInstance().setReaded((SabotterStatus) obj); 261 } 262 263 setDetail((SabotterStatus) selection.getFirstElement()); 264 264 265 265 for (TableViewer viewerx : viewers) { … … 269 269 } 270 270 271 private void setDetail(S tatus status) {271 private void setDetail(SabotterStatus status) { 272 272 if (status == null) { 273 273 detailImage.setImage(new Image(null, 48, 48)); … … 461 461 Action createFavoriteAction = 462 462 new CreateFavoriteAction(viewers, tabFolder, 463 new TwitterAdapter());463 new SabotterAdapter()); 464 464 createFavoriteAction.setText(Messages.action_create_favorite); 465 465 createFavoriteAction.setToolTipText(Messages.tooltip_create_favorite); -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views/TimeLineSorter.java
r10355 r11075 6 6 import java.util.Locale; 7 7 8 import jp.xet.eclipse.sabotter.core.SabotterStatus; 9 8 10 import org.eclipse.jface.viewers.Viewer; 9 11 import org.eclipse.jface.viewers.ViewerSorter; 10 12 import org.eclipse.swt.widgets.TableColumn; 11 12 import twitter4j.Status;13 13 14 14 /** … … 61 61 @Override 62 62 public int compare(Viewer viewer, Object e1, Object e2) { 63 S tatus s1 = (Status) e1;64 S tatus s2 = (Status) e2;63 SabotterStatus s1 = (SabotterStatus) e1; 64 SabotterStatus s2 = (SabotterStatus) e2; 65 65 66 66 return compare(s1, s2); 67 67 } 68 68 69 private int compare(S tatus s1,Status s2) {69 private int compare(SabotterStatus s1, SabotterStatus s2) { 70 70 int result = 0; 71 71 … … 88 88 * @return 結果 89 89 */ 90 private int compareByName(S tatus s1,Status s2) {90 private int compareByName(SabotterStatus s1, SabotterStatus s2) { 91 91 return s1.getUser().getName().compareTo(s2.getUser().getName()); 92 92 } … … 99 99 * @return 結果 100 100 */ 101 private int compareByMessage(S tatus s1,Status s2) {101 private int compareByMessage(SabotterStatus s1, SabotterStatus s2) { 102 102 return s1.getText().compareTo(s2.getText()); 103 103 } … … 110 110 * @return 結果 111 111 */ 112 private int compareByTime(S tatus s1,Status s2) {112 private int compareByTime(SabotterStatus s1, SabotterStatus s2) { 113 113 int result; 114 114 try { -
lang/java/sabotter/trunk/src/jp/xet/eclipse/sabotter/views/TimeLineViewLabelProvider.java
r10609 r11075 1 1 package jp.xet.eclipse.sabotter.views; 2 3 import jp.xet.eclipse.sabotter.core.SabotterStatus; 2 4 3 5 import org.eclipse.jface.viewers.ITableColorProvider; … … 8 10 import org.eclipse.swt.graphics.Font; 9 11 import org.eclipse.swt.graphics.Image; 10 11 import twitter4j.Status;12 12 13 13 /** … … 30 30 */ 31 31 public String getColumnText(Object obj, int index) { 32 S tatus status = (Status) obj;32 SabotterStatus status = (SabotterStatus) obj; 33 33 if (status == null) { 34 34 return ""; // $NON-NLS-1$ … … 60 60 public Image getColumnImage(Object obj, int index) { 61 61 if (index == 0) { 62 return processor.getProcessedImage((S tatus) obj);62 return processor.getProcessedImage((SabotterStatus) obj); 63 63 } 64 64 return null; … … 72 72 @Override 73 73 public Image getImage(Object obj) { 74 return processor.getImage((S tatus) obj);74 return processor.getImage((SabotterStatus) obj); 75 75 } 76 76 … … 82 82 */ 83 83 public Color getBackground(Object element, int columnIndex) { 84 return processor.getBackgroundColor((S tatus) element);84 return processor.getBackgroundColor((SabotterStatus) element); 85 85 } 86 86 … … 92 92 */ 93 93 public Color getForeground(Object element, int columnIndex) { 94 return processor.getForegroundColor((S tatus) element);94 return processor.getForegroundColor((SabotterStatus) element); 95 95 } 96 96 … … 101 101 */ 102 102 public Font getFont(Object element, int columnIndex) { 103 return processor.getFont((S tatus) element);103 return processor.getFont((SabotterStatus) element); 104 104 } 105 105 … … 111 111 @Override 112 112 public String getText(Object element) { 113 return processor.getLinkedText((S tatus) element);113 return processor.getLinkedText((SabotterStatus) element); 114 114 } 115 115 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)