public final class UIDecisionUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
cutString(String str,
int length,
boolean addPoints)
Cuts a text to certain length and adds "..." at the end if needed.
|
static org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
getAdapterFactory()
Returns a label provider.
|
static ChangePackageVisualizationHelper |
getChangePackageVisualizationHelper(DecisionManager decisionManager)
Returns the visualizationhelper.
|
static org.eclipse.jface.resource.FontRegistry |
getFontRegistry()
Returns FontRegistry.
|
static org.eclipse.swt.graphics.Image |
getImage(String path)
Fetches image by path.
|
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(String path)
Fetches image descriptor by path.
|
static String |
stripNewLine(String text)
Strips line breaking characters from text.
|
public static org.eclipse.swt.graphics.Image getImage(String path)
path - pathpublic static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
path - pathImageDescriptorpublic static String cutString(String str, int length, boolean addPoints)
str - textlength - lengthaddPoints - true, if ending dottspublic static String stripNewLine(String text)
text - textpublic static org.eclipse.jface.resource.FontRegistry getFontRegistry()
public static ChangePackageVisualizationHelper getChangePackageVisualizationHelper(DecisionManager decisionManager)
decisionManager - instance of the decisionManagerpublic static org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider getAdapterFactory()
Copyright © 2017. All rights reserved.