|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kaom.importer.ptolemy.utils.Utils
public final class Utils
Contains utility methods used in the plug-in.
Method Summary | |
---|---|
static String |
getFileBaseName(String fileName)
Returns the file name without file extension. |
static String |
getFileExtension(String fileName)
Returns the file extension of the file with the given name. |
static String |
getSetting(IDialogSettings settings,
String key,
String deflt)
Returns the given setting from the given dialog settings instance, or the given default if none is found. |
static String[] |
getSettingArray(IDialogSettings settings,
String key,
String[] deflt)
Returns the given setting from the given dialog settings instance, or the given default if none is found. |
static boolean |
getSettingBoolean(IDialogSettings settings,
String key,
boolean deflt)
Returns the given setting from the given dialog settings instance, or the given default if none is found. |
static void |
insertVerticalSpace(Composite container,
int space,
int columns)
Inserts the given amount of vertical space into the given container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getSetting(IDialogSettings settings, String key, String deflt)
settings
- the dialog settings to retrieve the setting from.key
- the setting's key.deflt
- the default value.
public static boolean getSettingBoolean(IDialogSettings settings, String key, boolean deflt)
settings
- the dialog settings to retrieve the setting from.key
- the setting's key.deflt
- the default value.
public static String[] getSettingArray(IDialogSettings settings, String key, String[] deflt)
settings
- the dialog settings to retrieve the setting from.key
- the setting's key.deflt
- the default value.
public static void insertVerticalSpace(Composite container, int space, int columns)
GridLayout
. This method must only be called at the
beginning of a new line in the layout manager.
container
- the container to insert the space into.space
- the amount of space to insert.columns
- the number of columns in the grid layout.public static String getFileExtension(String fileName)
fileName
- name of the file whose extension to return.
public static String getFileBaseName(String fileName)
fileName
- name of the file whose base name to return.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |