|
Lines 24-29
Link Here
|
| 24 |
import org.eclipse.core.runtime.Platform; |
24 |
import org.eclipse.core.runtime.Platform; |
| 25 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionTracker; |
25 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionTracker; |
| 26 |
import org.eclipse.jface.preference.PreferenceNode; |
26 |
import org.eclipse.jface.preference.PreferenceNode; |
|
|
27 |
import org.eclipse.rwt.SessionSingletonBase; |
| 27 |
import org.eclipse.ui.internal.ObjectContributorManager; |
28 |
import org.eclipse.ui.internal.ObjectContributorManager; |
| 28 |
import org.eclipse.ui.internal.WorkbenchPlugin; |
29 |
import org.eclipse.ui.internal.WorkbenchPlugin; |
| 29 |
import org.eclipse.ui.internal.registry.PropertyPagesRegistryReader; |
30 |
import org.eclipse.ui.internal.registry.PropertyPagesRegistryReader; |
|
Lines 34-40
Link Here
|
| 34 |
*/ |
35 |
*/ |
| 35 |
|
36 |
|
| 36 |
public class PropertyPageContributorManager extends ObjectContributorManager { |
37 |
public class PropertyPageContributorManager extends ObjectContributorManager { |
| 37 |
private static PropertyPageContributorManager sharedInstance = null; |
38 |
// RAP [rst] |
|
|
39 |
// private static PropertyPageContributorManager sharedInstance = null; |
| 38 |
|
40 |
|
| 39 |
private class CategorizedPageNode { |
41 |
private class CategorizedPageNode { |
| 40 |
RegistryPageContributor contributor; |
42 |
RegistryPageContributor contributor; |
|
Lines 180-189
Link Here
|
| 180 |
* @return PropertyPageContributorManager |
182 |
* @return PropertyPageContributorManager |
| 181 |
*/ |
183 |
*/ |
| 182 |
public static PropertyPageContributorManager getManager() { |
184 |
public static PropertyPageContributorManager getManager() { |
| 183 |
if (sharedInstance == null) { |
185 |
// RAP [rst] singleton |
| 184 |
sharedInstance = new PropertyPageContributorManager(); |
186 |
// if (sharedInstance == null) { |
| 185 |
} |
187 |
// sharedInstance = new PropertyPageContributorManager(); |
| 186 |
return sharedInstance; |
188 |
// } |
|
|
189 |
// return sharedInstance; |
| 190 |
Class type = PropertyPageContributorManager.class; |
| 191 |
Object instance = SessionSingletonBase.getInstance( type ); |
| 192 |
return ( PropertyPageContributorManager )instance; |
| 187 |
} |
193 |
} |
| 188 |
|
194 |
|
| 189 |
/** |
195 |
/** |