Bug 217652 - [logview] detect optional bundles availability in new way
Summary: [logview] detect optional bundles availability in new way
Status: RESOLVED INVALID
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 205561
Blocks:
  Show dependency tree
 
Reported: 2008-02-04 05:13 EST by Jacek Pospychala CLA
Modified: 2008-04-15 00:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacek Pospychala CLA 2008-02-04 05:13:13 EST
in bug 205561 patch I have added:

/**
 * Returns whether bundle with given name is available or not.
 */
public boolean isRequiredBundleAvailable(String symbolicName) {
 return ((PackageAdmin) packageAdminTracker.getService()).getRequiredBundles(symbolicName) != null;
}

to fix things as:
// TODO this isn't the best way to check... we should be smarter and use package admin
// check to see if org.eclipse.ui.ide is available
Class.forName("org.eclipse.ui.ide.IDE"); //$NON-NLS-1$
// check to see if org.eclipse.core.filesystem is available
Class.forName("org.eclipse.core.filesystem.IFileStore"); //$NON-NLS-1$
action = new OpenIDELogFileAction(this);


It'd be good to go new way after patch for bug 205561 is applied.
Comment 1 Chris Aniszczyk CLA 2008-04-15 00:23:50 EDT
no longer valid