Skip to content

Commit

Permalink
Support for Eclipse-BundleShape: Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
alshamams committed Dec 5, 2023
1 parent 949e6be commit dae3ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,8 @@ protected void createBundleShape(Composite parent, FormToolkit toolkit, IActionB
});
fBundleShapeDefault.addListener(SWT.Selection, event -> {
if (fBundleShapeDefault.getSelection()) {
IBundle bundle = getBundle();

if (bundle instanceof Bundle) {
Map<String, IManifestHeader> headers = ((Bundle) bundle).getHeaders();
if (getBundle() instanceof Bundle bundle) {
Map<String, IManifestHeader> headers = bundle.getHeaders();
Object entry = headers.get(ICoreConstants.ECLIPSE_BUNDLE_SHAPE);
((IManifestHeader) entry).setValue(null);
bundle.setHeader(ICoreConstants.ECLIPSE_BUNDLE_SHAPE, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ PluginWorkingSet_deselectAll_label=Dese&lect All
PluginDevelopmentPage_presentation=Plug-in Manifest Editor Presentation
PluginGeneralInfoSection_lazyStart=Activate this plug-in when one of its classes is loaded
PluginGeneralInfoSection_singleton=This plug-in is a singleton
PluginGeneralInfoSection_bundleshape=Unpack behavior during installation (Only for P2):
PluginGeneralInfoSection_bundleshape=Unpack behavior during P2 installation:
FragmentGeneralInfoSection_singleton=This fragment is a singleton
PluginWorkingSet_deselectAll_toolTip=Unselect all of these plug-ins for this working set.
PluginListPage_initializeFromPlugins=&Initialize from the plug-ins list:
Expand Down

0 comments on commit dae3ac2

Please sign in to comment.