org.eclipse.ltk.ui.refactoring.history
Class RefactoringHistoryControlConfiguration
java.lang.Object
org.eclipse.ltk.ui.refactoring.history.RefactoringHistoryControlConfiguration
-
public class RefactoringHistoryControlConfiguration
- extends
Object
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.
-
Since:
- 3.2
-
See Also:
-
RefactoringUI.createRefactoringHistoryControl(org.eclipse.swt.widgets.Composite, RefactoringHistoryControlConfiguration)
,
IRefactoringHistoryControl
,
RefactoringHistoryLabelProvider
,
RefactoringHistoryContentProvider
Field Summary
|
protected boolean
|
fCheckable
Should the refactorings be checkable? |
protected
IProject
|
fProject
The project, or null for the workspace |
protected boolean
|
fTime
Should time information be displayed? |
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
fCheckable
protected final boolean fCheckable
- Should the refactorings be checkable?
fProject
protected final
IProject fProject
- The project, or
null
for the workspace
fTime
protected final boolean fTime
- Should time information be displayed?
RefactoringHistoryControlConfiguration
public RefactoringHistoryControlConfiguration(
IProject project,
boolean time,
boolean checkable)
- Creates a new refactoring history control configuration.
-
Parameters:
-
project
- the project, or null
for the workspace -
time
- true
to display time information,
false
otherwise -
checkable
- true
if the refactorings should be checkable,
false
otherwise
getCollectionLabel
public
String getCollectionLabel()
- Returns the label of a collection of refactorings.
-
-
Returns:
- the collection label
getCommentCaption
public
String 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
public
RefactoringHistoryContentProvider getContentProvider()
- Returns the content provider to use.
-
-
Returns:
- the content provider to use
getDayPattern
public
String getDayPattern()
- Returns the message format pattern to use for days.
Arguments:
-
-
Returns:
- the day pattern
getLabelProvider
public
RefactoringHistoryLabelProvider getLabelProvider()
- Returns the label provider to use.
-
-
Returns:
- the label provider to use
getLastMonthPattern
public
String getLastMonthPattern()
- Returns the message format pattern to use for last month.
Arguments:
-
-
Returns:
- the last month pattern
getLastWeekPattern
public
String getLastWeekPattern()
- Returns the message format pattern to use for last week.
Arguments:
-
-
Returns:
- the last week pattern
getMonthPattern
public
String getMonthPattern()
- Returns the message format pattern to use for months.
Arguments:
-
-
Returns:
- the month pattern
getProject
public final
IProject getProject()
- Returns the project of the refactoring history being displayed.
-
-
Returns:
- the project, or
null
for the workspace
getProjectPattern
public
String getProjectPattern()
- Returns the message format pattern to use if refactorings of exactly one
project are displayed.
Arguments:
-
-
Returns:
- the project pattern
getRefactoringPattern
public
String getRefactoringPattern()
- Returns the message format pattern to use for refactorings.
Arguments:
- {0}: formatted date
- {0}: description of refactoring
-
-
Returns:
- the refactoring pattern
getThisMonthPattern
public
String getThisMonthPattern()
- Returns the message format pattern to use for this month.
Arguments:
-
-
Returns:
- the this month pattern
getThisWeekPattern
public
String getThisWeekPattern()
- Returns the message format pattern to use for this week.
Arguments:
-
-
Returns:
- the this week pattern
getTodayPattern
public
String getTodayPattern()
- Returns the message format pattern to use for today.
Arguments:
-
-
Returns:
- the today pattern
getWeekPattern
public
String getWeekPattern()
- Returns the message format pattern to use for weeks.
Arguments:
-
-
Returns:
- the week pattern
getWorkspaceCaption
public
String getWorkspaceCaption()
- Returns the caption of the refactoring history tree if refactorings of
more than one project are displayed.
-
-
Returns:
- the workspace caption
getYearPattern
public
String getYearPattern()
- Returns the message format pattern to use for years.
Arguments:
-
-
Returns:
- the year pattern
getYesterdayPattern
public
String getYesterdayPattern()
- Returns the message format pattern to use for yesterday.
Arguments:
-
-
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
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.