|
Lines 24-29
Link Here
|
| 24 |
import org.eclipse.core.runtime.dynamichelpers.ExtensionTracker; |
24 |
import org.eclipse.core.runtime.dynamichelpers.ExtensionTracker; |
| 25 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionChangeHandler; |
25 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionChangeHandler; |
| 26 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionTracker; |
26 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionTracker; |
|
|
27 |
import org.eclipse.rwt.SessionSingletonBase; |
| 27 |
import org.eclipse.ui.PlatformUI; |
28 |
import org.eclipse.ui.PlatformUI; |
| 28 |
import org.eclipse.ui.contexts.IContextService; |
29 |
import org.eclipse.ui.contexts.IContextService; |
| 29 |
import org.eclipse.ui.internal.WorkbenchPlugin; |
30 |
import org.eclipse.ui.internal.WorkbenchPlugin; |
|
Lines 61-67
Link Here
|
| 61 |
/** |
62 |
/** |
| 62 |
* Creates the action set registry. |
63 |
* Creates the action set registry. |
| 63 |
*/ |
64 |
*/ |
| 64 |
public ActionSetRegistry() { |
65 |
// RAP [if]: see getInstance |
|
|
66 |
// public ActionSetRegistry() { |
| 67 |
private ActionSetRegistry() { |
| 68 |
// RAPEND: [if] |
| 65 |
contextService = (IContextService) PlatformUI |
69 |
contextService = (IContextService) PlatformUI |
| 66 |
.getWorkbench().getService(IContextService.class); |
70 |
.getWorkbench().getService(IContextService.class); |
| 67 |
PlatformUI.getWorkbench().getExtensionTracker().registerHandler( |
71 |
PlatformUI.getWorkbench().getExtensionTracker().registerHandler( |
|
Lines 72-77
Link Here
|
| 72 |
getActionSetPartAssociationExtensionPoint() })); |
76 |
getActionSetPartAssociationExtensionPoint() })); |
| 73 |
readFromRegistry(); |
77 |
readFromRegistry(); |
| 74 |
} |
78 |
} |
|
|
79 |
|
| 80 |
// RAP [if]: |
| 81 |
/** |
| 82 |
* Returns a session scoped ActionSetRegistry |
| 83 |
* @return |
| 84 |
*/ |
| 85 |
public static ActionSetRegistry getInstance() { |
| 86 |
return ( ActionSetRegistry )SessionSingletonBase.getInstance( ActionSetRegistry.class ); |
| 87 |
} |
| 88 |
// RAPEND: [if] |
| 75 |
|
89 |
|
| 76 |
/** |
90 |
/** |
| 77 |
* Return the action set part association extension point. |
91 |
* Return the action set part association extension point. |