public class RefactoringHistoryControlConfiguration extends Object
Note: this class is intended to be subclassed by clients wishing to control the configuration behavior of their refactoring history control.
Modifier and Type | Field and Description |
---|---|
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?
|
Constructor and Description |
---|
RefactoringHistoryControlConfiguration(IProject project,
boolean time,
boolean checkable)
Creates a new refactoring history control configuration.
|
Modifier and Type | Method and Description |
---|---|
String |
getCollectionLabel()
Returns the label of a collection of refactorings.
|
String |
getCommentCaption()
Returns the text of the comment field below the refactoring history tree,
if the currently selected refactoring descriptor provides no comment.
|
RefactoringHistoryContentProvider |
getContentProvider()
Returns the content provider to use.
|
String |
getDayPattern()
Returns the message format pattern to use for days.
|
RefactoringHistoryLabelProvider |
getLabelProvider()
Returns the label provider to use.
|
String |
getLastMonthPattern()
Returns the message format pattern to use for last month.
|
String |
getLastWeekPattern()
Returns the message format pattern to use for last week.
|
String |
getMonthPattern()
Returns the message format pattern to use for months.
|
IProject |
getProject()
Returns the project of the refactoring history being displayed.
|
String |
getProjectPattern()
Returns the message format pattern to use if refactorings of exactly one
project are displayed.
|
String |
getRefactoringPattern()
Returns the message format pattern to use for refactorings.
|
String |
getThisMonthPattern()
Returns the message format pattern to use for this month.
|
String |
getThisWeekPattern()
Returns the message format pattern to use for this week.
|
String |
getTodayPattern()
Returns the message format pattern to use for today.
|
String |
getWeekPattern()
Returns the message format pattern to use for weeks.
|
String |
getWorkspaceCaption()
Returns the caption of the refactoring history tree if refactorings of
more than one project are displayed.
|
String |
getYearPattern()
Returns the message format pattern to use for years.
|
String |
getYesterdayPattern()
Returns the message format pattern to use for yesterday.
|
boolean |
isCheckableViewer()
Returns whether the control should make the refactorings checkable.
|
boolean |
isTimeDisplayed()
Returns whether the control should display time information.
|
protected final boolean fCheckable
protected final IProject fProject
null
for the workspaceprotected final boolean fTime
public RefactoringHistoryControlConfiguration(IProject project, boolean time, boolean checkable)
project
- the project, or null
for the workspacetime
- true
to display time information,
false
otherwisecheckable
- true
if the refactorings should be checkable,
false
otherwisepublic String getCollectionLabel()
public String getCommentCaption()
public RefactoringHistoryContentProvider getContentProvider()
public String getDayPattern()
Arguments:
public RefactoringHistoryLabelProvider getLabelProvider()
public String getLastMonthPattern()
Arguments:
public String getLastWeekPattern()
Arguments:
public String getMonthPattern()
Arguments:
public final IProject getProject()
null
for the workspacepublic String getProjectPattern()
Arguments:
public String getRefactoringPattern()
Arguments:
public String getThisMonthPattern()
Arguments:
public String getThisWeekPattern()
Arguments:
public String getTodayPattern()
Arguments:
public String getWeekPattern()
Arguments:
public String getWorkspaceCaption()
public String getYearPattern()
Arguments:
public String getYesterdayPattern()
Arguments:
public final boolean isCheckableViewer()
true
if the control should make refactorings
checkable, false
otherwisepublic final boolean isTimeDisplayed()
true
to display time information,
false
otherwise
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.