/** * TaskItemを取得します * * @param shell * @return */ @CheckForNull public static TaskItem getTaskBarItem(Shell shell) { TaskBar bar = Display.getDefault().getSystemTaskBar(); if (bar == null) return null; TaskItem item = bar.getItem(shell); if (item == null) item = bar.getItem(null); return item; }
public ShowIndeterminateProgressRunnable(Shell shell, TaskItem item, long blinkUntil) { this.blinkUntil = blinkUntil; this.item = item; }