Class Utils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic classprivate static classprivate static classstatic interfaceprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Pattern(package private) static ConcurrentLinkedQueue<Object[]> (package private) static Runnable(package private) static AtomicIntegerprivate static booleanstatic intstatic intprivate static ParameterListenerprivate static ParameterListenerprivate static ParameterListenerprivate static booleanprivate static final booleanDebug/Diagnose SWT exec calls.private static AEDiagnosticsLoggerprivate static org.eclipse.swt.widgets.Displayprivate static AtomicIntegerprivate static intstatic final org.eclipse.swt.graphics.Rectangleprivate static AEDiagnosticsEvidenceGeneratorprivate static AsyncDispatcherprivate static booleanstatic final Stringprivate static booleanprivate static booleanprivate static booleanprivate static booleanprivate static Patternprivate static booleanprivate static org.eclipse.swt.graphics.Imageprivate static Booleanprivate static booleanprivate static booleanstatic final booleanstatic booleanstatic final booleanSome platforms expand the last column to fit the remaining width of the table.private static CopyOnWriteList<Utils.TerminateListener> (package private) static final Method(package private) static final Methodprivate static ParameterListenerstatic final Stringprivate static Set<DiskManagerFileInfo> private static TimerEventPeriodicprivate static intstatic final Stringstatic final intstatic final intstatic final intstatic final intprivate static Stringprivate static org.eclipse.swt.graphics.Image[]private static Utils.Skinnerprivate static intprivate static final Stringprivate static final intprivate static final intstatic final booleanGTK already handles alternating background for tablesprivate static booleanprivate static booleanstatic final Stringprivate static ThreadPool<AERunnable> private static Mapprivate static boolean(package private) static final booleanprivate static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAndFireParameterListener(Map<String, ParameterListener> mapConfigListeners, boolean requiresSWTThread, String parameter, ParameterListener listener) static voidaddListenerAndChildren(org.eclipse.swt.widgets.Composite area, int event, org.eclipse.swt.widgets.Listener listener) static voidaddSafeMouseUpListener(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Listener mouseUpListener) static voidaddSafeMouseUpListener(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Listener mouseDownListener, org.eclipse.swt.widgets.Listener mouseUpListener) static voidstatic voidalternateRowBackground(org.eclipse.swt.widgets.TableItem item) static voidalternateTableBackground(org.eclipse.swt.widgets.Table table) static booleananyShellHaveStyle(int styles) static voidbeep()static org.eclipse.swt.graphics.ImageblitImage(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.Image srcImage, org.eclipse.swt.graphics.Rectangle srcArea, org.eclipse.swt.graphics.Image dstImage, org.eclipse.swt.graphics.Point dstPos) static booleancanDisplayCharacters(org.eclipse.swt.graphics.Font font, char character1, char character2) Test if characters are displayable.static booleanstatic voidcenterRelativeTo(org.eclipse.swt.graphics.Rectangle target, org.eclipse.swt.graphics.Rectangle reference) Centers the targetRectanglerelative to the reference Rectanglestatic voidcenterWindowRelativeTo(org.eclipse.swt.widgets.Shell window, org.eclipse.swt.widgets.Control control) Centers a window relative to a control.static voidcentreWindow(org.eclipse.swt.widgets.Shell shell) static voidcentreWindow(org.eclipse.swt.widgets.Shell shell, boolean shrink_if_needed) static voidclearMenu(org.eclipse.swt.widgets.Menu menu) static int[]colorToIntArray(org.eclipse.swt.graphics.Color color) private static BufferedImageconvertToAWT(org.eclipse.swt.graphics.ImageData data) private static org.eclipse.swt.graphics.ImageDataconvertToSWT(BufferedImage bufferedImage) static org.eclipse.swt.widgets.ButtoncreateAlertButton(org.eclipse.swt.widgets.Composite panel, String localizationKey) static org.eclipse.swt.graphics.ImagecreateAlphaImage(org.eclipse.swt.graphics.Device device, int width, int height) static org.eclipse.swt.graphics.ImagecreateAlphaImage(org.eclipse.swt.graphics.Device device, int width, int height, byte defaultAlpha) static Utils.ColorButtoncreateColorButton(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.graphics.Point size, boolean isForeground, int[] existingColor, int[] defaultColor, Consumer<int[]> listener) static org.eclipse.swt.widgets.Button[]createOKCancelButtons(org.eclipse.swt.widgets.Composite panel) static BrowserWrappercreateSafeBrowser(org.eclipse.swt.widgets.Composite parent, int style) static org.eclipse.swt.widgets.SashcreateSash(org.eclipse.swt.widgets.Composite form, int SASH_WIDTH) static org.eclipse.swt.widgets.SashcreateSash(org.eclipse.swt.widgets.Composite form, int SASH_WIDTH, int style) static Utils.SashWrappercreateSashWrapper(org.eclipse.swt.widgets.Composite parent, String config_key, int def_pct) static Utils.SashWrapper2createSashWrapper2(org.eclipse.swt.widgets.Composite parent, String config_key) static org.eclipse.swt.widgets.CompositecreateScrolledComposite(org.eclipse.swt.widgets.Composite parent) Creates a ScrollComposite that scrolls vertically and handles recalculating size.static org.eclipse.swt.widgets.CompositecreateScrolledComposite(org.eclipse.swt.widgets.Composite parent, int style) private static org.eclipse.swt.widgets.CompositecreateScrolledComposite(org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.widgets.Control mega_parent) static org.eclipse.swt.widgets.CompositecreateScrolledComposite(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control mega_parent) static org.eclipse.swt.widgets.CompositecreateSkinnedComposite(org.eclipse.swt.widgets.Composite parent, int style, Object parentLayoutData) static org.eclipse.swt.widgets.Composite[]createSkinnedCompositeEx(org.eclipse.swt.widgets.Composite parent, int style, Object parentLayoutData) static org.eclipse.swt.widgets.GroupcreateSkinnedGroup(org.eclipse.swt.widgets.Composite parent, int style) static org.eclipse.swt.widgets.ControlcreateSkinnedLabelSeparator(org.eclipse.swt.widgets.Composite parent, int style) static org.eclipse.swt.widgets.ControlcreateSkinnedLabelSeparator(org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.graphics.Color color) static org.eclipse.swt.custom.StyledTextcreateStyledText(org.eclipse.swt.widgets.Composite parent, int style) static StringcreateSubViewID(String base, String sub) static voiddispose()static voiddisposeComposite(org.eclipse.swt.widgets.Composite composite) static voiddisposeComposite(org.eclipse.swt.widgets.Composite composite, boolean disposeSelf) static voiddisposeSWTObjects(Object... disposeList) static voiddisposeSWTObjects(List disposeList) Dispose of a list of SWT objectsstatic booleandrawImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Point srcStart, org.eclipse.swt.graphics.Rectangle dstRect, org.eclipse.swt.graphics.Rectangle clipping, int hOffset, int vOffset, boolean clearArea) static voiddrawImageCenterScaleDown(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image imgSrc, org.eclipse.swt.graphics.Rectangle area) static voiddrawResizedImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight) static voiddrawStriped(org.eclipse.swt.graphics.GC gcImg, int x, int y, int width, int height, int lineDist, int leftshift, boolean fallingLines) Draws diagonal stripes onto the specified area of a GCprivate static voiddump(IndentWriter iw, org.eclipse.swt.widgets.Control comp, Set<Object> done) static voiddump(org.eclipse.swt.widgets.Control comp) static voidstatic voidstatic StringescapeAccelerators(String str) static booleanexecSWTThread(Runnable code) Execute code in the Runnable object using SWT's thread.static booleanexecSWTThread(Runnable code, boolean async) Execute code in the Runnable object using SWT's thread.private static booleanexecSWTThread(Runnable code, int msLater) static booleanexecSWTThreadLater(int msLater, Runnable code) Schedule execution of the code in the Runnable object using SWT's thread.static BooleanexecSWTThreadWithBool(String ID, AERunnableBoolean code, long millis) Runs code within the SWT thread, waits for code to complete executing, (using a semaphore), and then returns a value.static ObjectexecSWTThreadWithObject(String ID, AERunnableObject code, long millis) Runs code within the SWT thread, waits for code to complete executing, (using a semaphore), and then returns a value.private static booleanfallbackLaunch(String command, String... args) static booleanfileExistsWithTimeout(File file) static booleanfileExistsWithTimeout(String path) static longfileLengthWithTimeout(File file) static org.eclipse.swt.widgets.Shellstatic org.eclipse.swt.widgets.ShellfindAnyShell(boolean preferMainShell) static org.eclipse.swt.widgets.ControlfindBackgroundImageControl(org.eclipse.swt.widgets.Control control) static org.eclipse.swt.widgets.ControlfindChild(org.eclipse.swt.widgets.Composite comp, int x, int y) static org.eclipse.swt.widgets.ShellfindFirstShellWithStyle(int styles) static org.eclipse.swt.widgets.Shellstatic List<org.eclipse.swt.widgets.Control> getAllChildren(org.eclipse.swt.widgets.Composite c) private static voidgetAllChildren(org.eclipse.swt.widgets.Control c, List<org.eclipse.swt.widgets.Control> kids) static StringgetBaseViewID(String id) static Stringstatic StringgetCCString(String cc) static org.eclipse.swt.graphics.ColorgetConfigColor(String name, org.eclipse.swt.graphics.Color def) static org.eclipse.swt.widgets.ControlSometimes, Display.getCursorControl doesn't go deep enough..static org.eclipse.swt.widgets.ControlgetCursorControl(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.graphics.Point cursorLocation) static List<org.eclipse.swt.graphics.RGB> static intstatic intstatic org.eclipse.swt.widgets.Displayprivate static org.eclipse.swt.widgets.DisplaygetDisplay(boolean warn) static org.eclipse.swt.widgets.Displaystatic intprivate static StringgetExplicitLauncher(String file) static org.eclipse.swt.layout.FormDatastatic org.eclipse.swt.layout.GridDatagetHSpanGridData(int hspan, int styles) static org.eclipse.swt.graphics.Colorstatic StringgetLinkFromClipboard(org.eclipse.swt.widgets.Display display) Gets a URL from the clipboardstatic org.eclipse.swt.graphics.PointgetLocationRelativeToShell(org.eclipse.swt.widgets.Control control) private static org.eclipse.swt.widgets.MonitorgetMonitor(int x, int y) Returns theMonitorthat the given x,y coordinates resides instatic org.eclipse.swt.widgets.MonitorgetMonitor(org.eclipse.swt.graphics.Point location) Returns theMonitorthat the givenPointresides instatic intstatic voidgetOffOfSWTThread(AERunnable runnable) static voidgetOffOfSWTThread(Runnable runnable) static Stringstatic org.eclipse.swt.graphics.ImagegetResizedImage(org.eclipse.swt.graphics.Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destWidth, int destHeight) static org.eclipse.swt.layout.GridLayoutgetSimpleGridLayout(int cols) static org.eclipse.swt.layout.RowLayoutgetSimpleRowLayout(boolean fill) static org.eclipse.swt.graphics.ColorgetSkinnedBackground(org.eclipse.swt.widgets.Control c) static org.eclipse.swt.graphics.ColorgetSkinnedForeground(org.eclipse.swt.widgets.Control c) static Stringstatic intstatic intstatic Stringstatic intgetTableBottomIndex(org.eclipse.swt.widgets.Table table, int iTopIndex) Bottom Index may be negative.static booleanstatic intstatic Stringstatic org.eclipse.swt.layout.GridDatagetWrappableLabelGridData(int hspan, int styles) static booleanprivate static voidhandlePluginLaunch(String eb_choice, String net_type, boolean use_plugins, String sFileOriginal, String sFileModified, boolean sync, boolean force_url, boolean force_anon) static booleanhasAlpha(org.eclipse.swt.graphics.Image image) static booleanhasShellMetricsConfig(String sConfigPrefix) static booleanhasSkinnedBackground(org.eclipse.swt.widgets.Control control) static booleanhasSkinnedForeground(org.eclipse.swt.widgets.Control control) static voidinitialize(org.eclipse.swt.widgets.Display _display) (package private) static voidinitStatic(Core core) private static booleaninstallTorBrowser(String remember_id, boolean[] install_outcome, Runnable callback) static booleanisAZ2UI()static booleanisAZ3UI()static booleanstatic booleanstatic booleanHack to switch some things to dark on Windows until proper support availablestatic booleanstatic booleanstatic booleanisFileResponding(File file) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic voidlaunch(DiskManagerFileInfo fileInfo) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidlaunchFileExplicit(DiskManagerFileInfo file, String exe) static voidlaunchFileExplicit(String sfile, String... cmd_args) static booleanlinkShellMetricsToConfig(org.eclipse.swt.widgets.Shell shell, String sConfigPrefix) static File[]static voidmaintainSashPanelWidth(org.eclipse.swt.custom.SashForm sash, org.eclipse.swt.widgets.Composite comp, int[] default_weights, String config_key) static voidmakeButtonsEqualWidth(List<org.eclipse.swt.widgets.Button> buttons) static voidmakeButtonsEqualWidth(List<org.eclipse.swt.widgets.Button> buttons, int min) static voidmakeButtonsEqualWidth(org.eclipse.swt.widgets.Button... buttons) private static RunnablemakeRunnableSafe(Runnable code) static voidmakeVisibleOnCursor(org.eclipse.swt.graphics.Rectangle rect) Ensure that the givenRectangleis fully visible on the monitor that the cursor is currently in.static voidmakeVisibleOnMonitor(org.eclipse.swt.graphics.Rectangle rect, org.eclipse.swt.widgets.Monitor monitor) Ensure that the givenRectangleis fully visible on the givenMonitor.static voidnumberPrompt(String title_resource, String text_resource, Integer def, int min, int max, Consumer<Integer> cons) static voidprivate static voidquickView(DiskManagerFileInfo file) private static voidstatic booleanreadAndDispatchLoop(Supplier<Boolean> done) static voidreadAndDispatchLoop(org.eclipse.swt.widgets.Control owner) static voidreadAndDispatchLoop(org.eclipse.swt.widgets.Control owner, boolean check_visible) static voidstatic voidreadAndDispatchUntilIdleFor(long millis) static voidstatic voidrelayout(org.eclipse.swt.widgets.Control control) Relayout all composites up from control until there's enough room for the control to fitstatic voidrelayout(org.eclipse.swt.widgets.Control control, boolean expandOnly) Relayout all composites up from control until there's enough room for the control to fitstatic voidrelayoutUp(org.eclipse.swt.widgets.Composite c) static voidremoveParameterListeners(Map<String, ParameterListener> mapListeners) static org.eclipse.swt.graphics.ImagerenderTransparency(org.eclipse.swt.widgets.Display display, org.eclipse.swt.graphics.Image background, org.eclipse.swt.graphics.Image foreground, org.eclipse.swt.graphics.Point foregroundOffsetOnBg, int modifyForegroundAlpha) static voidstatic org.eclipse.swt.graphics.ImageresizeImage(org.eclipse.swt.graphics.Image image, int newWidth, int newHeight) Resizes an image, using the given scaling factor.static booleanrunIfNotSWTThread(Runnable code) Run code on SWT Thread if we are calling from non-SWT Thread.static voidrunWhenCoreOperationsIdle(Core core, Runnable r) static voidsetCheckedInSetData(org.eclipse.swt.widgets.TableItem item, boolean checked) Sets the checkbox in a Virtual Table while inside a SWT.SetData listener trigger.static voidsetClipping(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle r) static voidsetConfigColor(String name, org.eclipse.swt.graphics.Color c) static voidsetEnabled(org.eclipse.swt.widgets.Composite composite, boolean enabled) static voidsetFilterPathWithTimeout(org.eclipse.swt.widgets.DirectoryDialog dialog, String path) static voidsetFilterPathWithTimeout(org.eclipse.swt.widgets.FileDialog dialog, String path) static org.eclipse.swt.layout.GridDatasetGridData(org.eclipse.swt.widgets.Composite composite, int gridStyle, org.eclipse.swt.widgets.Control ctrlBestSize, int maxHeight) static voidsetLinkForeground(org.eclipse.swt.widgets.Control label) static voidsetMenuItemImage(MenuItem item, String repoKey) static voidsetMenuItemImage(org.eclipse.swt.custom.CLabel item, String repoKey) static voidsetMenuItemImage(org.eclipse.swt.widgets.MenuItem item, String repoKey) Set a MenuItem's image with the given ImageRepository key.static voidsetMenuItemImage(org.eclipse.swt.widgets.MenuItem item, org.eclipse.swt.graphics.Image image) static booleansetPeronalShare(Map<String, String> properties) static voidsetQuickViewActive(DiskManagerFileInfo file, boolean active) static voidsetShellIcon(org.eclipse.swt.widgets.Shell shell) Sets the shell's Icon(s) to the default App icon.static voidsetShellMetricsConfigEnabled(org.eclipse.swt.widgets.Shell shell, boolean enabled) static voidsetSkinnedBackground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) static voidsetSkinnedBackground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color, boolean force) static voidsetSkinnedBackground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Control from) private static voidsetSkinnedBackgroundDefault(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) static voidsetSkinnedControlType(org.eclipse.swt.widgets.Control control, int type) static voidsetSkinnedForeground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) static voidsetSkinnedForeground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color, boolean force) private static voidsetSkinnedForegroundDefault(org.eclipse.swt.custom.CTabItem control, org.eclipse.swt.graphics.Color color) private static voidsetSkinnedForegroundDefault(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) static voidsetSkinningEnabled(boolean enabled) static voidstatic voidsetTextWithURLs(org.eclipse.swt.custom.StyledText text, String value, boolean allow_focus) static voidsetTT(BufferedTruncatedLabel c, String text) static voidsetTT(UISWTStatusEntry c, String text) static voidsetTT(TrayItemDelegate c, String text) static voidstatic voidstatic voidstatic voidstatic voidstatic voidsetUIVisible(boolean visible) static org.eclipse.swt.graphics.RGBshowColorDialog(org.eclipse.swt.widgets.Control parent, org.eclipse.swt.graphics.RGB existing) static org.eclipse.swt.graphics.RGBshowColorDialog(org.eclipse.swt.widgets.Shell parent_shell, org.eclipse.swt.graphics.RGB existing) static voidstatic voidstatic StringtoColorHexString(org.eclipse.swt.graphics.Color color) static StringtruncateText(org.eclipse.swt.graphics.GC gc, String text, int maxWidth, boolean cache) private static voidtwoHex(StringBuffer sb, int h) static voidupdateCustomColors(org.eclipse.swt.graphics.RGB[] new_cc) static voidupdateScrolledComposite(org.eclipse.swt.custom.ScrolledComposite sc) protected static voidupdateScrolledComposite(org.eclipse.swt.custom.ScrolledComposite sc, int style) static booleanverifyShellRect(org.eclipse.swt.widgets.Shell shell, boolean bAdjustIfInvalid) private static booleanverifyShellRect(org.eclipse.swt.widgets.Shell shell, boolean bAdjustIfInvalid, boolean reverifyOnChange) static voidWaits until modal dialogs are disposed.
-
Field Details
-
method_DPIUTIL_getDeviceZoom
-
method_DPIUTIL_getNativeDeviceZoom
-
GOOD_STRING
- See Also:
-
isGTK
public static final boolean isGTK -
isGTK3
public static boolean isGTK3 -
LAST_TABLECOLUMN_EXPANDS
public static final boolean LAST_TABLECOLUMN_EXPANDSSome platforms expand the last column to fit the remaining width of the table. -
TABLE_GRIDLINE_IS_ALTERNATING_COLOR
public static final boolean TABLE_GRIDLINE_IS_ALTERNATING_COLORGTK already handles alternating background for tables -
BUTTON_MARGIN
public static int BUTTON_MARGIN -
BUTTON_MINWIDTH
public static int BUTTON_MINWIDTH -
SCT_SKINNING_DISABLED
public static final int SCT_SKINNING_DISABLED- See Also:
-
SCT_NONE
public static final int SCT_NONE- See Also:
-
SCT_BUBBLE_TEXT_BOX
public static final int SCT_BUBBLE_TEXT_BOX- See Also:
-
SCT_MENU_ITEM
public static final int SCT_MENU_ITEM- See Also:
-
DEBUG_SWTEXEC
private static final boolean DEBUG_SWTEXECDebug/Diagnose SWT exec calls. Provides useful information like how many we are queuing up, and how long each call takes. Good to turn on occasionally to see if we coded something stupid. -
queue
-
diag_logger
-
shellIcons
private static org.eclipse.swt.graphics.Image[] shellIcons -
icon128
private static org.eclipse.swt.graphics.Image icon128 -
EMPTY_RECT
public static final org.eclipse.swt.graphics.Rectangle EMPTY_RECT -
userMode
private static int userMode -
isAZ2
private static boolean isAZ2 -
isAZ3
private static boolean isAZ3 -
evidenceGenerator
-
configUserModeListener
-
configUIListener
-
configOtherListener
-
terminated
private static boolean terminated -
SWT_VERSION
private static final int SWT_VERSION -
SWT_REVISION
private static final int SWT_REVISION -
SWT_PLATFORM
-
is_dark_appearance
-
force_dark_appearance
private static boolean force_dark_appearance -
skinner
-
skinning_enabled
private static int skinning_enabled -
dark_misc_things
private static volatile boolean dark_misc_things -
gradient_fill
private static volatile boolean gradient_fill -
gui_refresh_disable_when_min
private static volatile boolean gui_refresh_disable_when_min -
gui_is_minimized
private static volatile boolean gui_is_minimized -
gui_refresh_enable
private static volatile boolean gui_refresh_enable -
SHELL_METRICS_DISABLED_KEY
-
display
private static org.eclipse.swt.widgets.Display display -
quick_view_active
-
quick_view_event
-
dragDetectMask
private static volatile int dragDetectMask -
listeners
-
USE_ASYNC_EXEC_QUEUE
static final boolean USE_ASYNC_EXEC_QUEUE- Since:
- 3.0.4.3
- See Also:
-
async_seq
-
async_exec_q
-
async_runner
-
pending_ext_urls
-
ext_url_dispatcher
-
i2p_install_active_for_url
private static boolean i2p_install_active_for_url -
browser_install_active_for_url
private static boolean browser_install_active_for_url -
tb_installing
private static boolean tb_installing -
PL_SHOW_FILE
- See Also:
-
truncatedTextCache
-
THREAD_NAME_OFFSWT
- See Also:
-
tp
-
qv_exts
-
qv_max_bytes
private static int qv_max_bytes -
pconfigQuickViewListeners
-
RELAYOUT_UP_STOP_HERE
- See Also:
-
tt_enabled
private static boolean tt_enabled -
a_pattern
-
href_pattern
-
dl_depth
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
initStatic
-
initialize
public static void initialize(org.eclipse.swt.widgets.Display _display) -
setSkinningEnabled
public static void setSkinningEnabled(boolean enabled) -
setSkinnedControlType
public static void setSkinnedControlType(org.eclipse.swt.widgets.Control control, int type) -
setSkinnedForegroundDefault
private static void setSkinnedForegroundDefault(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) -
setSkinnedBackgroundDefault
private static void setSkinnedBackgroundDefault(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) -
setSkinnedForegroundDefault
private static void setSkinnedForegroundDefault(org.eclipse.swt.custom.CTabItem control, org.eclipse.swt.graphics.Color color) -
hasSkinnedForeground
public static boolean hasSkinnedForeground(org.eclipse.swt.widgets.Control control) -
setSkinnedForeground
public static void setSkinnedForeground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) -
setSkinnedForeground
public static void setSkinnedForeground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color, boolean force) -
getSkinnedForeground
public static org.eclipse.swt.graphics.Color getSkinnedForeground(org.eclipse.swt.widgets.Control c) -
hasSkinnedBackground
public static boolean hasSkinnedBackground(org.eclipse.swt.widgets.Control control) -
getSkinnedBackground
public static org.eclipse.swt.graphics.Color getSkinnedBackground(org.eclipse.swt.widgets.Control c) -
setSkinnedBackground
public static void setSkinnedBackground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color) -
setSkinnedBackground
public static void setSkinnedBackground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Color color, boolean force) -
setSkinnedBackground
public static void setSkinnedBackground(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Control from) -
createSkinnedLabelSeparator
public static org.eclipse.swt.widgets.Control createSkinnedLabelSeparator(org.eclipse.swt.widgets.Composite parent, int style) -
createSkinnedLabelSeparator
public static org.eclipse.swt.widgets.Control createSkinnedLabelSeparator(org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.graphics.Color color) -
createSkinnedComposite
public static org.eclipse.swt.widgets.Composite createSkinnedComposite(org.eclipse.swt.widgets.Composite parent, int style, Object parentLayoutData) -
createSkinnedCompositeEx
public static org.eclipse.swt.widgets.Composite[] createSkinnedCompositeEx(org.eclipse.swt.widgets.Composite parent, int style, Object parentLayoutData) -
createSkinnedGroup
public static org.eclipse.swt.widgets.Group createSkinnedGroup(org.eclipse.swt.widgets.Composite parent, int style) -
getLinkForegroundColor
public static org.eclipse.swt.graphics.Color getLinkForegroundColor() -
setLinkForeground
public static void setLinkForeground(org.eclipse.swt.widgets.Control label) -
getDragDetectModifiers
public static int getDragDetectModifiers() -
getSWTVersion
public static int getSWTVersion() -
getSWTRevision
public static int getSWTRevision() -
getSWTPlatform
-
getSWTVersionAndRevision
-
getDeviceZoom
public static int getDeviceZoom() -
getNativeDeviceZoom
public static int getNativeDeviceZoom() -
setUIVisible
public static void setUIVisible(boolean visible) -
isUIUpdateEnabled
public static boolean isUIUpdateEnabled() -
addTerminateListener
-
setTerminated
public static void setTerminated() -
isTerminated
public static boolean isTerminated() -
isAZ2UI
public static boolean isAZ2UI() -
isAZ3UI
public static boolean isAZ3UI() -
getUserMode
public static int getUserMode() -
setEnabled
public static void setEnabled(org.eclipse.swt.widgets.Composite composite, boolean enabled) -
disposeComposite
public static void disposeComposite(org.eclipse.swt.widgets.Composite composite, boolean disposeSelf) -
disposeComposite
public static void disposeComposite(org.eclipse.swt.widgets.Composite composite) -
disposeSWTObjects
Dispose of a list of SWT objects- Parameters:
disposeList-
-
disposeSWTObjects
-
getLinkFromClipboard
Gets a URL from the clipboard
The supported protocols currently are http, https and udp.
- Parameters:
display-- Returns:
- first valid link from clipboard, else "http://"
-
centreWindow
public static void centreWindow(org.eclipse.swt.widgets.Shell shell) -
centreWindow
public static void centreWindow(org.eclipse.swt.widgets.Shell shell, boolean shrink_if_needed) -
centerWindowRelativeTo
public static void centerWindowRelativeTo(org.eclipse.swt.widgets.Shell window, org.eclipse.swt.widgets.Control control) Centers a window relative to a control. That is to say, the window will be located at the center of the control.- Parameters:
window-control-
-
getCustomColors
-
updateCustomColors
public static void updateCustomColors(org.eclipse.swt.graphics.RGB[] new_cc) -
getConfigColor
public static org.eclipse.swt.graphics.Color getConfigColor(String name, org.eclipse.swt.graphics.Color def) -
setConfigColor
-
createColorButton
public static Utils.ColorButton createColorButton(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.graphics.Point size, boolean isForeground, int[] existingColor, int[] defaultColor, Consumer<int[]> listener) -
showColorDialog
public static org.eclipse.swt.graphics.RGB showColorDialog(org.eclipse.swt.widgets.Control parent, org.eclipse.swt.graphics.RGB existing) -
showColorDialog
public static org.eclipse.swt.graphics.RGB showColorDialog(org.eclipse.swt.widgets.Shell parent_shell, org.eclipse.swt.graphics.RGB existing) -
isDisplayDisposed
public static boolean isDisplayDisposed() -
getDisplayIfNotDisposing
public static org.eclipse.swt.widgets.Display getDisplayIfNotDisposing() -
getSimpleRowLayout
public static org.eclipse.swt.layout.RowLayout getSimpleRowLayout(boolean fill) -
getSimpleGridLayout
public static org.eclipse.swt.layout.GridLayout getSimpleGridLayout(int cols) -
alternateRowBackground
public static void alternateRowBackground(org.eclipse.swt.widgets.TableItem item) -
alternateTableBackground
public static void alternateTableBackground(org.eclipse.swt.widgets.Table table) -
setMenuItemImage
Set a MenuItem's image with the given ImageRepository key. In compliance with platform human interface guidelines, the images are not set under Mac OS X.
- Parameters:
item- SWT MenuItemrepoKey- ImageRepository image key- See Also:
-
setMenuItemImage
-
setMenuItemImage
public static void setMenuItemImage(org.eclipse.swt.widgets.MenuItem item, org.eclipse.swt.graphics.Image image) -
setShellIcon
public static void setShellIcon(org.eclipse.swt.widgets.Shell shell) Sets the shell's Icon(s) to the default App icon. OSX doesn't require an icon, so they are skipped- Parameters:
shell-
-
getDisplay
public static org.eclipse.swt.widgets.Display getDisplay() -
getDisplay
private static org.eclipse.swt.widgets.Display getDisplay(boolean warn) -
execSWTThread
Execute code in the Runnable object using SWT's thread. If current thread it already SWT's thread, the code will run immediately. If the current thread is not SWT's, code will be run either synchronously or asynchronously on SWT's thread at the next reasonable opportunity. This method does not catch any exceptions.- Parameters:
code- code to runasync- true if SWT asyncExec, false if SWT syncExec- Returns:
- success
-
execSWTThreadLater
Schedule execution of the code in the Runnable object using SWT's thread. Even if the current thread is the SWT Thread, the code will be scheduled.Much like Display.asyncExec, except getting the display is handled for you, and provides the ability to diagnose and monitor scheduled code run.
- Parameters:
msLater- time to wait before running code on SWT thread. 0 does not mean immediate, but as soon as possible.code- Code to run- Returns:
- success
- Since:
- 3.0.4.3
-
isSWTThread
public static boolean isSWTThread() -
execSWTThread
-
makeRunnableSafe
-
execSWTThread
Execute code in the Runnable object using SWT's thread. If current thread it already SWT's thread, the code will run immediately. If the current thread is not SWT's, code will be run asynchronously on SWT's thread at the next reasonable opportunity. This method does not catch any exceptions.- Parameters:
code- code to run- Returns:
- success
-
isThisThreadSWT
public static boolean isThisThreadSWT() -
getTableBottomIndex
public static int getTableBottomIndex(org.eclipse.swt.widgets.Table table, int iTopIndex) Bottom Index may be negative. Returns bottom index even if invisible.Used by rssfeed
-
launch
-
launch
-
launch
-
launch
-
launch
-
launch
-
launch
public static void launch(String sFileOriginal, boolean sync, boolean force_url, boolean force_anon) -
launchFileExplicit
-
launchFileExplicit
-
fallbackLaunch
-
handlePluginLaunch
-
isInstallingTorBrowser
public static boolean isInstallingTorBrowser() -
installTorBrowser
-
getExplicitLauncher
-
getPredefinedExplicitLauncher
-
setCheckedInSetData
public static void setCheckedInSetData(org.eclipse.swt.widgets.TableItem item, boolean checked) Sets the checkbox in a Virtual Table while inside a SWT.SetData listener trigger. SWT 3.1 has an OSX bug that needs working around.- Parameters:
item-checked-
-
linkShellMetricsToConfig
public static boolean linkShellMetricsToConfig(org.eclipse.swt.widgets.Shell shell, String sConfigPrefix) -
setShellMetricsConfigEnabled
public static void setShellMetricsConfigEnabled(org.eclipse.swt.widgets.Shell shell, boolean enabled) -
hasShellMetricsConfig
-
setGridData
public static org.eclipse.swt.layout.GridData setGridData(org.eclipse.swt.widgets.Composite composite, int gridStyle, org.eclipse.swt.widgets.Control ctrlBestSize, int maxHeight) -
getFilledFormData
public static org.eclipse.swt.layout.FormData getFilledFormData() -
drawImageCenterScaleDown
public static void drawImageCenterScaleDown(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image imgSrc, org.eclipse.swt.graphics.Rectangle area) -
hasAlpha
public static boolean hasAlpha(org.eclipse.swt.graphics.Image image) -
drawResizedImage
public static void drawResizedImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight) -
getResizedImage
public static org.eclipse.swt.graphics.Image getResizedImage(org.eclipse.swt.graphics.Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destWidth, int destHeight) -
drawImage
public static boolean drawImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Image image, org.eclipse.swt.graphics.Point srcStart, org.eclipse.swt.graphics.Rectangle dstRect, org.eclipse.swt.graphics.Rectangle clipping, int hOffset, int vOffset, boolean clearArea) -
findChild
public static org.eclipse.swt.widgets.Control findChild(org.eclipse.swt.widgets.Composite comp, int x, int y) -
dump
public static void dump(org.eclipse.swt.widgets.Control comp) -
dump
-
addListenerAndChildren
public static void addListenerAndChildren(org.eclipse.swt.widgets.Composite area, int event, org.eclipse.swt.widgets.Listener listener) - Parameters:
area-event- idlistener-
-
getActiveShell
public static org.eclipse.swt.widgets.Shell getActiveShell() -
findAnyShell
public static org.eclipse.swt.widgets.Shell findAnyShell() -
findAnyShell
public static org.eclipse.swt.widgets.Shell findAnyShell(boolean preferMainShell) -
verifyShellRect
public static boolean verifyShellRect(org.eclipse.swt.widgets.Shell shell, boolean bAdjustIfInvalid) -
verifyShellRect
private static boolean verifyShellRect(org.eclipse.swt.widgets.Shell shell, boolean bAdjustIfInvalid, boolean reverifyOnChange) -
relayout
public static void relayout(org.eclipse.swt.widgets.Control control) Relayout all composites up from control until there's enough room for the control to fit- Parameters:
control- Control that had it's sized changed and needs more room
-
relayout
public static void relayout(org.eclipse.swt.widgets.Control control, boolean expandOnly) Relayout all composites up from control until there's enough room for the control to fit- Parameters:
control- Control that had it's sized changed and needs more room
-
beep
public static void beep() -
execSWTThreadWithBool
Runs code within the SWT thread, waits for code to complete executing, (using a semaphore), and then returns a value.- Parameters:
ID- id for debugcode- code to runmillis- ms to timeout in- Returns:
- returns NULL if code never run
-
execSWTThreadWithObject
Runs code within the SWT thread, waits for code to complete executing, (using a semaphore), and then returns a value.- Parameters:
ID- id for debugcode- code to runmillis- ms to timeout in- Returns:
-
waitForModals
public static void waitForModals()Waits until modal dialogs are disposed. Assumes we are on SWT thread- Since:
- 3.0.1.3
-
getWrappableLabelGridData
public static org.eclipse.swt.layout.GridData getWrappableLabelGridData(int hspan, int styles) -
getHSpanGridData
public static org.eclipse.swt.layout.GridData getHSpanGridData(int hspan, int styles) -
createAlphaImage
public static org.eclipse.swt.graphics.Image createAlphaImage(org.eclipse.swt.graphics.Device device, int width, int height) -
createAlphaImage
public static org.eclipse.swt.graphics.Image createAlphaImage(org.eclipse.swt.graphics.Device device, int width, int height, byte defaultAlpha) -
blitImage
public static org.eclipse.swt.graphics.Image blitImage(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.Image srcImage, org.eclipse.swt.graphics.Rectangle srcArea, org.eclipse.swt.graphics.Image dstImage, org.eclipse.swt.graphics.Point dstPos) -
drawStriped
public static void drawStriped(org.eclipse.swt.graphics.GC gcImg, int x, int y, int width, int height, int lineDist, int leftshift, boolean fallingLines) Draws diagonal stripes onto the specified area of a GC- Parameters:
lineDist- spacing between the individual linesleftshift- moves the stripes to the left, useful to shift with the backgroundfallingLines- true for top left to bottom-right lines, false otherwise
-
renderTransparency
public static org.eclipse.swt.graphics.Image renderTransparency(org.eclipse.swt.widgets.Display display, org.eclipse.swt.graphics.Image background, org.eclipse.swt.graphics.Image foreground, org.eclipse.swt.graphics.Point foregroundOffsetOnBg, int modifyForegroundAlpha) - Parameters:
display-background-foreground-foregroundOffsetOnBg-modifyForegroundAlpha- 0 (fully transparent) to 255 (retain current alpha)- Returns:
-
findBackgroundImageControl
public static org.eclipse.swt.widgets.Control findBackgroundImageControl(org.eclipse.swt.widgets.Control control) -
anyShellHaveStyle
public static boolean anyShellHaveStyle(int styles) - Returns:
- Since:
- 3.0.3.5
-
findFirstShellWithStyle
public static org.eclipse.swt.widgets.Shell findFirstShellWithStyle(int styles) -
colorToIntArray
public static int[] colorToIntArray(org.eclipse.swt.graphics.Color color) -
centerRelativeTo
public static void centerRelativeTo(org.eclipse.swt.graphics.Rectangle target, org.eclipse.swt.graphics.Rectangle reference) Centers the targetRectanglerelative to the reference Rectangle- Parameters:
target-reference-
-
makeVisibleOnCursor
public static void makeVisibleOnCursor(org.eclipse.swt.graphics.Rectangle rect) Ensure that the givenRectangleis fully visible on the monitor that the cursor is currently in. This method does not resize the given Rectangle; it merely reposition it if appropriate. If the given Rectangle is taller or wider than the current monitor then it may not fit 'fully' in the monitor.We use a best-effort approach with an emphasis to have at least the top-left of the Rectangle be visible. If the given Rectangle does not fit entirely in the monitor then portion of the right and/or left may be off-screen.
This method does honor global screen elements when possible. Screen elements include the TaskBar on Windows and the Application menu on OSX, and possibly others. The re-positioned Rectangle returned will fit on the screen without overlapping (or sliding under) these screen elements.
- Parameters:
rect-
-
makeVisibleOnMonitor
public static void makeVisibleOnMonitor(org.eclipse.swt.graphics.Rectangle rect, org.eclipse.swt.widgets.Monitor monitor) Ensure that the givenRectangleis fully visible on the givenMonitor. This method does not resize the given Rectangle; it merely reposition it if appropriate. If the given Rectangle is taller or wider than the current monitor then it may not fit 'fully' in the monitor.We use a best-effort approach with an emphasis to have at least the top-left of the Rectangle be visible. If the given Rectangle does not fit entirely in the monitor then portion of the right and/or left may be off-screen.
This method does honor global screen elements when possible. Screen elements include the TaskBar on Windows and the Application menu on OSX, and possibly others. The re-positioned Rectangle returned will fit on the screen without overlapping (or sliding under) these screen elements.
- Parameters:
rect-monitor-
-
getMonitor
private static org.eclipse.swt.widgets.Monitor getMonitor(int x, int y) Returns theMonitorthat the given x,y coordinates resides in- Parameters:
x-y-- Returns:
- the monitor if found; otherwise returns
null
-
getMonitor
public static org.eclipse.swt.widgets.Monitor getMonitor(org.eclipse.swt.graphics.Point location) Returns theMonitorthat the givenPointresides in- Parameters:
location-- Returns:
- the monitor if found; otherwise returns
null
-
makeButtonsEqualWidth
public static void makeButtonsEqualWidth(org.eclipse.swt.widgets.Button... buttons) -
makeButtonsEqualWidth
-
makeButtonsEqualWidth
-
createOKCancelButtons
public static org.eclipse.swt.widgets.Button[] createOKCancelButtons(org.eclipse.swt.widgets.Composite panel) -
createAlertButton
public static org.eclipse.swt.widgets.Button createAlertButton(org.eclipse.swt.widgets.Composite panel, String localizationKey) -
truncateText
-
toColorHexString
- Parameters:
color-- Returns:
- Since:
- 3.1.1.1
-
twoHex
-
getWidgetBGColorURLParam
-
reportError
-
getOffOfSWTThread
-
getOffOfSWTThread
-
runIfNotSWTThread
Run code on SWT Thread if we are calling from non-SWT Thread. Otherwise, do nothing and return false Use Case:
void foo() { if (Utils.runIfNotSWTThread(this::foo)) { return; } // Do SWT Stuff }Use Case:
void foo(Object param) { if (Utils.runIfNotSWTThread(() -> foo(param)) { return; } // Do SWT Stuff } -
runWhenCoreOperationsIdle
-
createSafeBrowser
-
getLocationRelativeToShell
public static org.eclipse.swt.graphics.Point getLocationRelativeToShell(org.eclipse.swt.widgets.Control control) -
isQuickViewSupported
-
isQuickViewActive
-
setQuickViewActive
-
quickView
-
quickViewRAR
-
createSash
public static org.eclipse.swt.widgets.Sash createSash(org.eclipse.swt.widgets.Composite form, int SASH_WIDTH) -
createSash
public static org.eclipse.swt.widgets.Sash createSash(org.eclipse.swt.widgets.Composite form, int SASH_WIDTH, int style) -
createSashWrapper
public static Utils.SashWrapper createSashWrapper(org.eclipse.swt.widgets.Composite parent, String config_key, int def_pct) -
createSashWrapper2
public static Utils.SashWrapper2 createSashWrapper2(org.eclipse.swt.widgets.Composite parent, String config_key) -
getCursorControl
public static org.eclipse.swt.widgets.Control getCursorControl()Sometimes, Display.getCursorControl doesn't go deep enough.. -
getCursorControl
public static org.eclipse.swt.widgets.Control getCursorControl(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.graphics.Point cursorLocation) -
relayoutUp
public static void relayoutUp(org.eclipse.swt.widgets.Composite c) -
createScrolledComposite
public static org.eclipse.swt.widgets.Composite createScrolledComposite(org.eclipse.swt.widgets.Composite parent) Creates a ScrollComposite that scrolls vertically and handles recalculating size.
If parent's layout isn't GridLayout, sets parent to GridLayout with 1 column.- Returns:
- a new Composite that is the main view of the ScrolledComposite. No layout for this composite has been set
-
createScrolledComposite
public static org.eclipse.swt.widgets.Composite createScrolledComposite(org.eclipse.swt.widgets.Composite parent, int style) -
createScrolledComposite
public static org.eclipse.swt.widgets.Composite createScrolledComposite(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control mega_parent) -
createScrolledComposite
private static org.eclipse.swt.widgets.Composite createScrolledComposite(org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.swt.widgets.Control mega_parent) -
updateScrolledComposite
public static void updateScrolledComposite(org.eclipse.swt.custom.ScrolledComposite sc) -
updateScrolledComposite
protected static void updateScrolledComposite(org.eclipse.swt.custom.ScrolledComposite sc, int style) -
maintainSashPanelWidth
public static void maintainSashPanelWidth(org.eclipse.swt.custom.SashForm sash, org.eclipse.swt.widgets.Composite comp, int[] default_weights, String config_key) -
setClipping
public static void setClipping(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle r) -
addAndFireParameterListener
public static void addAndFireParameterListener(Map<String, ParameterListener> mapConfigListeners, boolean requiresSWTThread, String parameter, ParameterListener listener) -
removeParameterListeners
-
getTTEnabled
public static boolean getTTEnabled() -
setTT
-
setTT
-
setTT
-
setTT
-
setTT
-
setTT
-
setTT
-
setTT
-
dispose
public static void dispose() -
createSubViewID
-
getBaseViewID
-
isDarkAppearanceNativeWindows
public static boolean isDarkAppearanceNativeWindows() -
isDarkAppearanceNative
public static boolean isDarkAppearanceNative() -
isDarkAppearancePartial
public static boolean isDarkAppearancePartial()Hack to switch some things to dark on Windows until proper support available- Returns:
-
editSpeedLimitHandlerConfig
-
showText
-
showText
-
setTextWithURLs
public static void setTextWithURLs(org.eclipse.swt.custom.StyledText text, String value, boolean allow_focus) -
escapeAccelerators
-
addSafeMouseUpListener
public static void addSafeMouseUpListener(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Listener mouseUpListener) -
addSafeMouseUpListener
public static void addSafeMouseUpListener(org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Listener mouseDownListener, org.eclipse.swt.widgets.Listener mouseUpListener) -
createStyledText
public static org.eclipse.swt.custom.StyledText createStyledText(org.eclipse.swt.widgets.Composite parent, int style) -
clearMenu
public static void clearMenu(org.eclipse.swt.widgets.Menu menu) -
getAllChildren
public static List<org.eclipse.swt.widgets.Control> getAllChildren(org.eclipse.swt.widgets.Composite c) -
getAllChildren
private static void getAllChildren(org.eclipse.swt.widgets.Control c, List<org.eclipse.swt.widgets.Control> kids) -
getCCString
-
resizeImage
public static org.eclipse.swt.graphics.Image resizeImage(org.eclipse.swt.graphics.Image image, int newWidth, int newHeight) Resizes an image, using the given scaling factor. Constructs a new image resource, please take care of resource disposal if you no longer need the original one. This method is optimized for quality, not for speed.- Parameters:
image- source image- Returns:
- scaled image
-
convertToAWT
-
convertToSWT
-
gradientFillSelection
public static boolean gradientFillSelection() -
ensureDisplayUpdated
public static void ensureDisplayUpdated() -
readAndDispatchUntilIdle
public static void readAndDispatchUntilIdle() -
readAndDispatchLoop
public static void readAndDispatchLoop(org.eclipse.swt.widgets.Control owner) -
readAndDispatchLoop
public static void readAndDispatchLoop(org.eclipse.swt.widgets.Control owner, boolean check_visible) -
readAndDispatchUntilIdleFor
public static void readAndDispatchUntilIdleFor(long millis) -
readAndDispatchUntilIdleOr
-
getDispatchLoopDepth
public static int getDispatchLoopDepth() -
readAndDispatchLoop
-
setFilterPathWithTimeout
-
setFilterPathWithTimeout
public static void setFilterPathWithTimeout(org.eclipse.swt.widgets.DirectoryDialog dialog, String path) -
isFileResponding
-
fileExistsWithTimeout
-
fileExistsWithTimeout
-
isDirectoryWithTimeout
-
canReadFileWithTimeout
-
fileLengthWithTimeout
-
getCanonicalPathWithTimeout
- Throws:
IOException
-
listFileRootsWithTimeout
-
numberPrompt
-
numberPrompt
-
canDisplayCharacters
public static boolean canDisplayCharacters(org.eclipse.swt.graphics.Font font, char character1, char character2) Test if characters are displayable. Both should be different and equally likely to display within the font (e.g. in same unicode block) If they both render to the same thing then it is assumed that neither can be displayed...
-