|
Lines 23-28
Link Here
|
| 23 |
import org.eclipse.core.runtime.IConfigurationElement; |
23 |
import org.eclipse.core.runtime.IConfigurationElement; |
| 24 |
import org.eclipse.core.runtime.IStatus; |
24 |
import org.eclipse.core.runtime.IStatus; |
| 25 |
import org.eclipse.jface.viewers.IStructuredSelection; |
25 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
|
26 |
import org.eclipse.ui.IPluginContribution; |
| 26 |
import org.eclipse.ui.WorkbenchException; |
27 |
import org.eclipse.ui.WorkbenchException; |
| 27 |
import org.eclipse.ui.internal.navigator.NavigatorPlugin; |
28 |
import org.eclipse.ui.internal.navigator.NavigatorPlugin; |
| 28 |
import org.eclipse.ui.internal.navigator.extensions.INavigatorContentExtPtConstants; |
29 |
import org.eclipse.ui.internal.navigator.extensions.INavigatorContentExtPtConstants; |
|
Lines 37-43
Link Here
|
| 37 |
* |
38 |
* |
| 38 |
* @since 3.2 |
39 |
* @since 3.2 |
| 39 |
*/ |
40 |
*/ |
| 40 |
public class CommonWizardDescriptor implements INavigatorContentExtPtConstants { |
41 |
public class CommonWizardDescriptor implements INavigatorContentExtPtConstants, IPluginContribution { |
| 41 |
|
42 |
|
| 42 |
/** The default menu group id for commonWizards without a menuGroupId attribute. */ |
43 |
/** The default menu group id for commonWizards without a menuGroupId attribute. */ |
| 43 |
public static final String DEFAULT_MENU_GROUP_ID = "all-uncategorized"; //$NON-NLS-1$ |
44 |
public static final String DEFAULT_MENU_GROUP_ID = "all-uncategorized"; //$NON-NLS-1$ |
|
Lines 243-246
Link Here
|
| 243 |
return "CommonWizardDescriptor["+getId()+", wizardId="+getWizardId()+"]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
244 |
return "CommonWizardDescriptor["+getId()+", wizardId="+getWizardId()+"]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| 244 |
} |
245 |
} |
| 245 |
|
246 |
|
|
|
247 |
/* (non-Javadoc) |
| 248 |
* @see org.eclipse.ui.IPluginContribution#getLocalId() |
| 249 |
*/ |
| 250 |
public String getLocalId() { |
| 251 |
return getId(); |
| 252 |
} |
| 253 |
|
| 254 |
/* (non-Javadoc) |
| 255 |
* @see org.eclipse.ui.IPluginContribution#getPluginId() |
| 256 |
*/ |
| 257 |
public String getPluginId() { |
| 258 |
return (configElement != null) ? configElement.getNamespaceIdentifier() : null; |
| 259 |
} |
| 246 |
} |
260 |
} |