public class RecentFilesMenu
extends org.eclipse.jface.action.ContributionItem
Modifier and Type | Field and Description |
---|---|
static String |
FILLSTRING
The string filled in for the gap in the filename
|
static int |
MAX_LENGTH
Maximum length of the string displayed in the menu
|
Constructor and Description |
---|
RecentFilesMenu() |
Modifier and Type | Method and Description |
---|---|
void |
fill(org.eclipse.swt.widgets.Menu menu,
int index) |
boolean |
isDynamic() |
static String |
shorten(String file,
int maxLength,
int endKeep)
Shortens the given file path.
|
public static final String FILLSTRING
public static final int MAX_LENGTH
public boolean isDynamic()
isDynamic
in interface org.eclipse.jface.action.IContributionItem
isDynamic
in class org.eclipse.jface.action.ContributionItem
ContributionItem.isDynamic()
public void fill(org.eclipse.swt.widgets.Menu menu, int index)
fill
in interface org.eclipse.jface.action.IContributionItem
fill
in class org.eclipse.jface.action.ContributionItem
ContributionItem.fill(Menu, int)
public static String shorten(String file, int maxLength, int endKeep)
file
- the complete file path to shortenmaxLength
- the maximum length the shortened verison should haveendKeep
- the length at the end of the string that should not be
removedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a