Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 101668 Details for
Bug 233183
[ui] repo unavailable but install button is trying to do something
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Updated patch
patch.txt (text/plain), 1.35 KB, created by
John Arthorne
on 2008-05-22 20:52:26 EDT
(
hide
)
Description:
Updated patch
Filename:
MIME Type:
Creator:
John Arthorne
Created:
2008-05-22 20:52:26 EDT
Size:
1.35 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.p2.ui >Index: src/org/eclipse/equinox/internal/provisional/p2/ui/actions/InstallAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/actions/InstallAction.java,v >retrieving revision 1.12 >diff -u -r1.12 InstallAction.java >--- src/org/eclipse/equinox/internal/provisional/p2/ui/actions/InstallAction.java 15 May 2008 18:03:04 -0000 1.12 >+++ src/org/eclipse/equinox/internal/provisional/p2/ui/actions/InstallAction.java 23 May 2008 00:51:37 -0000 >@@ -99,7 +99,17 @@ > * @see org.eclipse.equinox.internal.provisional.p2.ui.actions.ProfileModificationAction#isEnabledFor(java.lang.Object[]) > */ > protected boolean isEnabledFor(Object[] selectionArray) { >- return selectionArray.length > 0; >+ if (selectionArray.length == 0) >+ return false; >+ // We allow non-IU's to be selected at this point, but there >+ // must be at least one installable unit selected that is >+ // not a category. >+ for (int i = 0; i < selectionArray.length; i++) { >+ IInstallableUnit iu = getIU(selectionArray[i]); >+ if (iu != null && !ProvisioningUtil.isCategory(iu)) >+ return true; >+ } >+ return false; > } > > protected String getTaskName() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233183
:
101308
|
101580
| 101668