|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.ContributionItem
eu.esdihumboldt.hale.ui.service.project.RecentFilesMenu
public class RecentFilesMenu
A menu filled with the list of recently opened files (MRU).
Field Summary | |
---|---|
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 Summary | |
---|---|
RecentFilesMenu()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.jface.action.ContributionItem |
---|
dispose, fill, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FILLSTRING
public static final int MAX_LENGTH
Constructor Detail |
---|
public RecentFilesMenu()
Method Detail |
---|
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
removed
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |