public class RefactoringHistoryControlConfiguration
extends java.lang.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 |
|---|---|
java.lang.String |
getCollectionLabel()
Returns the label of a collection of refactorings.
|
java.lang.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.
|
java.lang.String |
getDayPattern()
Returns the message format pattern to use for days.
|
RefactoringHistoryLabelProvider |
getLabelProvider()
Returns the label provider to use.
|
java.lang.String |
getLastMonthPattern()
Returns the message format pattern to use for last month.
|
java.lang.String |
getLastWeekPattern()
Returns the message format pattern to use for last week.
|
java.lang.String |
getMonthPattern()
Returns the message format pattern to use for months.
|
IProject |
getProject()
Returns the project of the refactoring history being displayed.
|
java.lang.String |
getProjectPattern()
Returns the message format pattern to use if refactorings of exactly one
project are displayed.
|
java.lang.String |
getRefactoringPattern()
Returns the message format pattern to use for refactorings.
|
java.lang.String |
getThisMonthPattern()
Returns the message format pattern to use for this month.
|
java.lang.String |
getThisWeekPattern()
Returns the message format pattern to use for this week.
|
java.lang.String |
getTodayPattern()
Returns the message format pattern to use for today.
|
java.lang.String |
getWeekPattern()
Returns the message format pattern to use for weeks.
|
java.lang.String |
getWorkspaceCaption()
Returns the caption of the refactoring history tree if refactorings of
more than one project are displayed.
|
java.lang.String |
getYearPattern()
Returns the message format pattern to use for years.
|
java.lang.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 java.lang.String getCollectionLabel()
public java.lang.String getCommentCaption()
public RefactoringHistoryContentProvider getContentProvider()
public java.lang.String getDayPattern()
Arguments:
public RefactoringHistoryLabelProvider getLabelProvider()
public java.lang.String getLastMonthPattern()
Arguments:
public java.lang.String getLastWeekPattern()
Arguments:
public java.lang.String getMonthPattern()
Arguments:
public final IProject getProject()
null for the workspacepublic java.lang.String getProjectPattern()
Arguments:
public java.lang.String getRefactoringPattern()
Arguments:
public java.lang.String getThisMonthPattern()
Arguments:
public java.lang.String getThisWeekPattern()
Arguments:
public java.lang.String getTodayPattern()
Arguments:
public java.lang.String getWeekPattern()
Arguments:
public java.lang.String getWorkspaceCaption()
public java.lang.String getYearPattern()
Arguments:
public java.lang.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, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.