1 11 package org.eclipse.ltk.ui.refactoring.history; 12 13 import org.eclipse.core.resources.IProject; 14 15 import org.eclipse.ltk.ui.refactoring.RefactoringUI; 16 17 import org.eclipse.ltk.internal.ui.refactoring.RefactoringUIMessages; 18 19 35 public class RefactoringHistoryControlConfiguration { 36 37 38 protected final boolean fCheckable; 39 40 41 protected final IProject fProject; 42 43 44 protected final boolean fTime; 45 46 58 public RefactoringHistoryControlConfiguration(final IProject project, final boolean time, final boolean checkable) { 59 fProject= project; 60 fTime= time; 61 fCheckable= checkable; 62 } 63 64 69 public String getCollectionLabel() { 70 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_collection_label; 71 } 72 73 79 public String getCommentCaption() { 80 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_comment_caption; 81 } 82 83 88 public RefactoringHistoryContentProvider getContentProvider() { 89 return new RefactoringHistoryContentProvider(this); 90 } 91 92 103 public String getDayPattern() { 104 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_day_pattern; 105 } 106 107 112 public RefactoringHistoryLabelProvider getLabelProvider() { 113 return new RefactoringHistoryLabelProvider(this); 114 } 115 116 127 public String getLastMonthPattern() { 128 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_last_month_label; 129 } 130 131 142 public String getLastWeekPattern() { 143 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_last_week_label; 144 } 145 146 157 public String getMonthPattern() { 158 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_month_pattern; 159 } 160 161 166 public final IProject getProject() { 167 return fProject; 168 } 169 170 182 public String getProjectPattern() { 183 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_project_pattern; 184 } 185 186 198 public String getRefactoringPattern() { 199 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_refactoring_pattern; 200 } 201 202 213 public String getThisMonthPattern() { 214 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_this_month_pattern; 215 } 216 217 228 public String getThisWeekPattern() { 229 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_this_week_pattern; 230 } 231 232 243 public String getTodayPattern() { 244 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_today_pattern; 245 } 246 247 258 public String getWeekPattern() { 259 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_week_pattern; 260 } 261 262 268 public String getWorkspaceCaption() { 269 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_workspace_caption; 270 } 271 272 283 public String getYearPattern() { 284 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_year_pattern; 285 } 286 287 298 public String getYesterdayPattern() { 299 return RefactoringUIMessages.RefactoringHistoryControlConfiguration_yesterday_pattern; 300 } 301 302 308 public final boolean isCheckableViewer() { 309 return fCheckable; 310 } 311 312 318 public final boolean isTimeDisplayed() { 319 return fTime; 320 } 321 } 322 | Popular Tags |