comparison org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/JobOSGiUtils.d @ 78:0a55d2d5a946

Added file for databinding
author Frank Benoit <benoit@tionex.de>
date Tue, 14 Apr 2009 11:35:29 +0200
parents bc29606a740c
children
comparison
equal deleted inserted replaced
76:f05e6e8b2f2d 78:0a55d2d5a946
56 private this() { 56 private this() {
57 // super(); 57 // super();
58 } 58 }
59 59
60 void openServices() { 60 void openServices() {
61 implMissing(__FILE__,__LINE__); 61 //FIXME implMissing(__FILE__,__LINE__);
62 // BundleContext context = JobActivator.getContext(); 62 // BundleContext context = JobActivator.getContext();
63 // if (context is null) { 63 // if (context is null) {
64 // if (JobManager.DEBUG) 64 // if (JobManager.DEBUG)
65 // JobMessages.message("JobsOSGiUtils called before plugin started"); //$NON-NLS-1$ 65 // JobMessages.message("JobsOSGiUtils called before plugin started"); //$NON-NLS-1$
66 // return; 66 // return;
72 // bundleTracker = new ServiceTracker(context, PackageAdmin.class.getName(), null); 72 // bundleTracker = new ServiceTracker(context, PackageAdmin.class.getName(), null);
73 // bundleTracker.open(); 73 // bundleTracker.open();
74 } 74 }
75 75
76 void closeServices() { 76 void closeServices() {
77 implMissing(__FILE__,__LINE__); 77 //FIXME implMissing(__FILE__,__LINE__);
78 // if (debugTracker !is null) { 78 // if (debugTracker !is null) {
79 // debugTracker.close(); 79 // debugTracker.close();
80 // debugTracker = null; 80 // debugTracker = null;
81 // } 81 // }
82 // if (bundleTracker !is null) { 82 // if (bundleTracker !is null) {
84 // bundleTracker = null; 84 // bundleTracker = null;
85 // } 85 // }
86 } 86 }
87 87
88 public bool getBooleanDebugOption(String option, bool defaultValue) { 88 public bool getBooleanDebugOption(String option, bool defaultValue) {
89 implMissing(__FILE__,__LINE__); 89 //FIXME implMissing(__FILE__,__LINE__);
90 return false; 90 return false;
91 // if (debugTracker is null) { 91 // if (debugTracker is null) {
92 // if (JobManager.DEBUG) 92 // if (JobManager.DEBUG)
93 // JobMessages.message("Debug tracker is not set"); //$NON-NLS-1$ 93 // JobMessages.message("Debug tracker is not set"); //$NON-NLS-1$
94 // return defaultValue; 94 // return defaultValue;
105 /** 105 /**
106 * Returns the bundle id of the bundle that contains the provided object, or 106 * Returns the bundle id of the bundle that contains the provided object, or
107 * <code>null</code> if the bundle could not be determined. 107 * <code>null</code> if the bundle could not be determined.
108 */ 108 */
109 public String getBundleId(Object object) { 109 public String getBundleId(Object object) {
110 implMissing(__FILE__,__LINE__); 110 //FIXME implMissing(__FILE__,__LINE__);
111 // if (bundleTracker is null) { 111 // if (bundleTracker is null) {
112 // if (JobManager.DEBUG) 112 // if (JobManager.DEBUG)
113 // JobMessages.message("Bundle tracker is not set"); //$NON-NLS-1$ 113 // JobMessages.message("Bundle tracker is not set"); //$NON-NLS-1$
114 // return null; 114 // return null;
115 // } 115 // }
131 * alive. 131 * alive.
132 * @return <code>true</code> if all worker threads should be daemon threads, 132 * @return <code>true</code> if all worker threads should be daemon threads,
133 * and <code>false</code> otherwise. 133 * and <code>false</code> otherwise.
134 */ 134 */
135 bool useDaemonThreads() { 135 bool useDaemonThreads() {
136 implMissing(__FILE__,__LINE__); 136 //FIXME implMissing(__FILE__,__LINE__);
137 return false; 137 return true;
138 // BundleContext context = JobActivator.getContext(); 138 // BundleContext context = JobActivator.getContext();
139 // if (context is null) { 139 // if (context is null) {
140 // //we are running stand-alone, so consult global system property 140 // //we are running stand-alone, so consult global system property
141 // String value = System.getProperty(IJobManager.PROP_USE_DAEMON_THREADS); 141 // String value = System.getProperty(IJobManager.PROP_USE_DAEMON_THREADS);
142 // //default to use daemon threads if property is absent 142 // //default to use daemon threads if property is absent