/** * change the display name of the progress task. Use with care, please make sure the changed name is not completely different, * or otherwise it might appear to the user as a different task. * @since 1.5 */ public void setDisplayName(String newDisplayName) { handle.setDisplayName(newDisplayName); }
/** * Change the display name of the progress task. Use with care, please make sure the changed name is not completely different, or otherwise it might appear to the user as a different task. * @param newDisplayName the new display name */ @Override public void setDisplayName(String newDisplayName) { if (handle != null) { handle.setDisplayName(newDisplayName); this.displayName = newDisplayName; } }
@Override public void setTaskName(String taskName) { this.progressHandle.setDisplayName(taskName); }
@Override public void setTaskName(String taskName) { Assert.notNull(progressHandle); progressHandle.setDisplayName(taskName); }
@Override public void beginTask(String taskName, int totalWork) { this.progressHandle.setDisplayName(taskName); this.progressHandle.start(totalWork, -1); if (this.isIndeterminate) { this.progressHandle.switchToIndeterminate(); } if (this.console != null) { this.console.setVisible(true); } }
@Messages({"# {0} - repo name", "LBL_unpacking=Unpacking index for {0}"}) void unpackingProgress(String label) { checkCancel(); if (unpacking.compareAndSet(false, true)) { handle.setDisplayName(LBL_unpacking(info.getName())); } handle.progress(label); }
@Override public void beginTask(String taskName, int totalWork) { if(totalWork < 0) { this.totalWorkUnits = 0; }else { this.totalWorkUnits = F * totalWork; } this.currentWorkUnits = 0; this.currentWorkUnitsRational = 0.0; if (progressHandle == null) { progressHandle = ProgressHandleFactory.createHandle(taskName, this); progressHandle.start(this.totalWorkUnits); } else { try { progressHandle.start(this.totalWorkUnits); } catch (java.lang.IllegalStateException e) { // if already started, use fall back progressHandle.switchToDeterminate(this.totalWorkUnits); } progressHandle.setDisplayName(taskName); } }
handle.setDisplayName(message); if (BUG_LOGGER.isLoggable(Level.FINE)) { BUG_LOGGER.log(Level.FINE, getElapsedTime() +"CompilerWorker.updateFolder - updating handle " + handle + " to " + message + " + folderFile"); BUG_LOGGER.log(Level.FINE, getElapsedTime() +"CompilerWorker.updateFolder2 - updating handle " + handle + " to " + message); handle.setDisplayName(message);