public class PluginUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FontMetrics |
getFontMetrics(Drawable drawable,
Font font) |
static boolean |
isChromiumDebugFile(IFile file)
Determines whether
file is a .chromium file in a
JavaScript debug project. |
static void |
openProjectExplorerView()
Brings up the "Project Explorer" view in the active workbench window.
|
static java.lang.String |
stripChromiumExtension(java.lang.String fileName,
boolean check)
Removes the ".chromium" extension from the fileName.
|
public static void openProjectExplorerView()
public static boolean isChromiumDebugFile(IFile file)
file
is a .chromium file in a
JavaScript debug project.file
- to testpublic static java.lang.String stripChromiumExtension(java.lang.String fileName, boolean check)
fileName
- to remove the extension fromcheck
- if true additionally check that fileName actually has ".chromium" extensionpublic static FontMetrics getFontMetrics(Drawable drawable, Font font)
font
- or null to use default fontCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.