Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 2746 Details for
Bug 28064
Stack overflow in java editor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
compilation unit that was being edited when the error occurred
NullProgressMonitor.java (text/plain), 3.05 KB, created by
John Arthorne
on 2002-12-10 18:00:31 EST
(
hide
)
Description:
compilation unit that was being edited when the error occurred
Filename:
MIME Type:
Creator:
John Arthorne
Created:
2002-12-10 18:00:31 EST
Size:
3.05 KB
patch
obsolete
>/********************************************************************** > * Copyright (c) 2000, 2002 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Common Public License v0.5 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/cpl-v05.html > * > * Contributors: > * IBM - Initial API and implementation > **********************************************************************/ >package org.eclipse.core.runtime; > >/** > * A default progress monitor implementation suitable for > * subclassing. > * <p> > * This implementation supports cancelation. The default > * implementations of the other methods do nothing. > * </p> > */ >public class NullProgressMonitor implements IProgressMonitor { > > /** > * Indicates whether cancel has been requested. > */ > private boolean cancelled = false; > > private NullProgressMonitor instance = new NullProgressMonitor() { > public void setCanceled(boolean value) { > } > }) >/** > * Constructs a new progress monitor. > */ >public NullProgressMonitor() { >} >/** > * This implementation does nothing. > * Subclasses may override this method to do interesting > * processing when a task begins. > * > * @see IProgressMonitor#beginTask > */ >public void beginTask(String name, int totalWork) { >} >/** > * This implementation does nothing. > * Subclasses may override this method to do interesting > * processing when a task is done. > * > * @see IProgressMonitor#done > */ >public void done() { >} >/** > * This implementation does nothing. > * Subclasses may override this method. > * > * @see IProgressMonitor#internalWorked > */ >public void internalWorked(double work) { >} >/** > * This implementation returns the value of the internal > * state variable set by <code>setCanceled</code>. > * Subclasses which override this method should > * override <code>setCanceled</code> as well. > * > * @see IProgressMonitor#isCanceled > * @see IProgressMonitor#setCanceled > */ >public boolean isCanceled() { > return cancelled; >} >/** > * This implementation sets the value of an internal state variable. > * Subclasses which override this method should override > * <code>isCanceled</code> as well. > * > * @see IProgressMonitor#isCanceled > * @see IProgressMonitor#setCanceled > */ >public void setCanceled(boolean cancelled) { > this.cancelled = cancelled; >} >/** > * This implementation does nothing. > * Subclasses may override this method to do something > * with the name of the task. > * > * @see IProgressMonitor#setTaskName > */ >public void setTaskName(String name) { >} >/** > * This implementation does nothing. > * Subclasses may override this method to do interesting > * processing when a subtask begins. > * > * @see IProgressMonitor#subTask > */ >public void subTask(String name) { >} >/** > * This implementation does nothing. > * Subclasses may override this method to do interesting > * processing when some work has been completed. > * > * @see IProgressMonitor#worked > */ >public void worked(int work) { >} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 28064
:
2745
| 2746