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 101580 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]
patch to InstallAction
bug233183.patch (text/plain), 1.68 KB, created by
Susan McCourt
on 2008-05-22 14:21:45 EDT
(
hide
)
Description:
patch to InstallAction
Filename:
MIME Type:
Creator:
Susan McCourt
Created:
2008-05-22 14:21:45 EDT
Size:
1.68 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 22 May 2008 18:15:48 -0000 >@@ -11,6 +11,7 @@ > > package org.eclipse.equinox.internal.provisional.p2.ui.actions; > >+import java.util.ArrayList; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.MultiStatus; > import org.eclipse.equinox.internal.p2.ui.PlanStatusHelper; >@@ -99,7 +100,18 @@ > * @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. >+ ArrayList iuList = new ArrayList(); >+ for (int i = 0; i < selectionArray.length; i++) { >+ IInstallableUnit iu = getIU(selectionArray[i]); >+ if (iu != null && !ProvisioningUtil.isCategory(iu)) >+ iuList.add(iu); >+ } >+ return iuList.size() > 0; > } > > 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