Class RefactoringHistoryControlConfiguration
java.lang.Object
org.eclipse.ltk.ui.refactoring.history.RefactoringHistoryControlConfiguration
Configuration object for a refactoring history control.
Note: this class is intended to be subclassed by clients wishing to control the configuration behavior of their refactoring history control.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
Should the refactorings be checkable?protected final IProject
The project, ornull
for the workspaceprotected final boolean
Should time information be displayed? -
Constructor Summary
ConstructorDescriptionRefactoringHistoryControlConfiguration
(IProject project, boolean time, boolean checkable) Creates a new refactoring history control configuration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the label of a collection of refactorings.Returns the text of the comment field below the refactoring history tree, if the currently selected refactoring descriptor provides no comment.Returns the content provider to use.Returns the message format pattern to use for days.Returns the label provider to use.Returns the message format pattern to use for last month.Returns the message format pattern to use for last week.Returns the message format pattern to use for months.final IProject
Returns the project of the refactoring history being displayed.Returns the message format pattern to use if refactorings of exactly one project are displayed.Returns the message format pattern to use for refactorings.Returns the message format pattern to use for this month.Returns the message format pattern to use for this week.Returns the message format pattern to use for today.Returns the message format pattern to use for weeks.Returns the caption of the refactoring history tree if refactorings of more than one project are displayed.Returns the message format pattern to use for years.Returns the message format pattern to use for yesterday.final boolean
Returns whether the control should make the refactorings checkable.final boolean
Returns whether the control should display time information.
-
Field Details
-
fCheckable
protected final boolean fCheckableShould the refactorings be checkable? -
fProject
The project, ornull
for the workspace -
fTime
protected final boolean fTimeShould time information be displayed?
-
-
Constructor Details
-
RefactoringHistoryControlConfiguration
Creates a new refactoring history control configuration.- Parameters:
project
- the project, ornull
for the workspacetime
-true
to display time information,false
otherwisecheckable
-true
if the refactorings should be checkable,false
otherwise
-
-
Method Details
-
getCollectionLabel
Returns the label of a collection of refactorings.- Returns:
- the collection label
-
getCommentCaption
Returns the text of the comment field below the refactoring history tree, if the currently selected refactoring descriptor provides no comment.- Returns:
- the comment caption
-
getContentProvider
Returns the content provider to use.- Returns:
- the content provider to use
-
getDayPattern
Returns the message format pattern to use for days.Arguments:
- {0}: formatted date
- Returns:
- the day pattern
-
getLabelProvider
Returns the label provider to use.- Returns:
- the label provider to use
-
getLastMonthPattern
Returns the message format pattern to use for last month.Arguments:
- {0}: month name
- Returns:
- the last month pattern
-
getLastWeekPattern
Returns the message format pattern to use for last week.Arguments:
- {0}: week number
- Returns:
- the last week pattern
-
getMonthPattern
Returns the message format pattern to use for months.Arguments:
- {0}: month name
- Returns:
- the month pattern
-
getProject
Returns the project of the refactoring history being displayed.- Returns:
- the project, or
null
for the workspace
-
getProjectPattern
Returns the message format pattern to use if refactorings of exactly one project are displayed.Arguments:
- {0}: name of project
- Returns:
- the project pattern
-
getRefactoringPattern
Returns the message format pattern to use for refactorings.Arguments:
- {0}: formatted date
- {0}: description of refactoring
- Returns:
- the refactoring pattern
-
getThisMonthPattern
Returns the message format pattern to use for this month.Arguments:
- {0}: month name
- Returns:
- the this month pattern
-
getThisWeekPattern
Returns the message format pattern to use for this week.Arguments:
- {0}: week number
- Returns:
- the this week pattern
-
getTodayPattern
Returns the message format pattern to use for today.Arguments:
- {0}: formatted date
- Returns:
- the today pattern
-
getWeekPattern
Returns the message format pattern to use for weeks.Arguments:
- {0}: week number
- Returns:
- the week pattern
-
getWorkspaceCaption
Returns the caption of the refactoring history tree if refactorings of more than one project are displayed.- Returns:
- the workspace caption
-
getYearPattern
Returns the message format pattern to use for years.Arguments:
- {0}: year number
- Returns:
- the year pattern
-
getYesterdayPattern
Returns the message format pattern to use for yesterday.Arguments:
- {0}: formatted date
- Returns:
- the yesterday pattern
-
isCheckableViewer
public final boolean isCheckableViewer()Returns whether the control should make the refactorings checkable.- Returns:
true
if the control should make refactorings checkable,false
otherwise
-
isTimeDisplayed
public final boolean isTimeDisplayed()Returns whether the control should display time information.- Returns:
true
to display time information,false
otherwise
-