Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui.operations
Class SystemProgressDialogRunnableContext

java.lang.Object
  extended by 
org.eclipse.rse.ui.operations.SystemProgressDialogRunnableContext
All Implemented Interfaces:
ISystemRunnableContext

public class SystemProgressDialogRunnableContext
extends Object
implements ISystemRunnableContext

This runnable context blocks the UI and can therefore have a shell assigned to it (since the shell won't be closed by the user before the runnable completes).


Constructor Summary
SystemProgressDialogRunnableContext ( Shell shell)
          Constructor.
 
Method Summary
  ISchedulingRule getSchedulingRule ()
          Returns the scheduling rule that will be obtained before the context executes a runnable or null if no scheduling rule is to be obtained.
  Shell getShell ()
          Returns the shell.
 boolean isPostponeBuild ()
          Returns whether the auto-build will be postponed while this context is executing a runnable.
 void run ( IRunnableWithProgress runnable)
          Runs the runnable.
 void setPostponeBuild (boolean postponeBuild)
          Sets whether the auto-build will be postponed while this context is executing a runnable.
 void setRunnableContext ( IRunnableContext runnableContext)
          Sets the runnable context that is used to execute the runnable.
 void setSchedulingRule ( ISchedulingRule schedulingRule)
          Sets the scheduling rule that will be obtained before the context executes a runnable or null if no scheduling rule is to be obtained.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemProgressDialogRunnableContext

public SystemProgressDialogRunnableContext(
Shell shell)
Constructor.

Parameters:
shell - the shell for the runnable context.
Method Detail

isPostponeBuild

public boolean isPostponeBuild()
Returns whether the auto-build will be postponed while this context is executing a runnable.

Returns:
true if the auto-build will be postponed while this context is executing a runnable, false otherwise.

setPostponeBuild

public void setPostponeBuild(boolean postponeBuild)
Sets whether the auto-build will be postponed while this context is executing a runnable.

Parameters:
postponeBuild - true to postpone the auto-build, false

getSchedulingRule

public 
ISchedulingRule getSchedulingRule()
Returns the scheduling rule that will be obtained before the context executes a runnable or null if no scheduling rule is to be obtained.

Returns:
the scheduling rule to be obtained or null.

setSchedulingRule

public void setSchedulingRule(
ISchedulingRule schedulingRule)
Sets the scheduling rule that will be obtained before the context executes a runnable or null if no scheduling rule is to be obtained.

Parameters:
schedulingRule - the scheduling rule to be obtained or null.

getShell

public 
Shell getShell()
Returns the shell.

Specified by:
getShell in interface ISystemRunnableContext
Returns:
a shell.
See Also:
ISystemRunnableContext.getShell()

setRunnableContext

public void setRunnableContext(
IRunnableContext runnableContext)
Sets the runnable context that is used to execute the runnable. By default, the workbench's progress service is used, but clients can provide their own.

Parameters:
runnableContext - the runnable contenxt used to execute runnables.

run

public void run(
IRunnableWithProgress runnable)
         throws 
InvocationTargetException,
                
InterruptedException
Runs the runnable.

Specified by:
run in interface ISystemRunnableContext
Throws:
InvocationTargetException
InterruptedException
See Also:
ISystemRunnableContext.run(org.eclipse.jface.operation.IRunnableWithProgress)

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire