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 165304 Details for
Bug 307789
Better message when installing target stuff into IDE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
suggestion for improved message
307789.txt (text/plain), 4.48 KB, created by
Thomas Watson
on 2010-04-19 11:32:19 EDT
(
hide
)
Description:
suggestion for improved message
Filename:
MIME Type:
Creator:
Thomas Watson
Created:
2010-04-19 11:32:19 EDT
Size:
4.48 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.p2.director >Index: src/org/eclipse/equinox/internal/p2/director/Messages.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/Messages.java,v >retrieving revision 1.21 >diff -u -r1.21 Messages.java >--- src/org/eclipse/equinox/internal/p2/director/Messages.java 10 Apr 2010 00:48:30 -0000 1.21 >+++ src/org/eclipse/equinox/internal/p2/director/Messages.java 19 Apr 2010 15:31:19 -0000 >@@ -30,6 +30,8 @@ > public static String Director_Task_Resolving_Dependencies; > public static String Director_Unsatisfied_Dependencies; > public static String Director_error_applying_configuration; >+ public static String Director_For_Target; >+ public static String Director_For_Target_Unselect_Required; > > public static String Explanation_alreadyInstalled; > public static String Explanation_from; >Index: src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java,v >retrieving revision 1.117 >diff -u -r1.117 SimplePlanner.java >--- src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java 10 Apr 2010 01:45:01 -0000 1.117 >+++ src/org/eclipse/equinox/internal/p2/director/SimplePlanner.java 19 Apr 2010 15:31:19 -0000 >@@ -17,6 +17,8 @@ > import org.eclipse.core.runtime.*; > import org.eclipse.equinox.internal.p2.core.helpers.LogHelper; > import org.eclipse.equinox.internal.p2.core.helpers.Tracing; >+import org.eclipse.equinox.internal.p2.director.Explanation.MissingIU; >+import org.eclipse.equinox.internal.p2.metadata.IRequiredCapability; > import org.eclipse.equinox.internal.p2.metadata.query.UpdateQuery; > import org.eclipse.equinox.internal.p2.rollback.FormerState; > import org.eclipse.equinox.internal.provisional.p2.director.*; >@@ -124,6 +126,19 @@ > private IStatus convertExplanationToStatus(Set<Explanation> explanations) { > if (explanations == null) > return new Status(IStatus.ERROR, DirectorActivator.PI_DIRECTOR, Messages.Director_Unsatisfied_Dependencies); >+ >+ // hack to create a useful message when a user installs something intended for a target platform into the IDE >+ ArrayList<IStatus> forTargets = new ArrayList<IStatus>(0); >+ for (Explanation next : explanations) { >+ if (next instanceof Explanation.MissingIU) { >+ Explanation.MissingIU missingIU = (MissingIU) next; >+ if (missingIU.req instanceof IRequiredCapability && "A.PDE.Target.Platform".equals(((IRequiredCapability) missingIU.req).getNamespace())) //$NON-NLS-1$ >+ forTargets.add(new Status(IStatus.ERROR, DirectorActivator.PI_DIRECTOR, NLS.bind(Messages.Director_For_Target_Unselect_Required, missingIU.getUserReadableName(missingIU.iu)))); >+ } >+ } >+ if (forTargets.size() > 0) >+ return new MultiStatus(DirectorActivator.PI_DIRECTOR, 1, forTargets.toArray(new IStatus[forTargets.size()]), Messages.Director_For_Target, null); >+ > MultiStatus root = new MultiStatus(DirectorActivator.PI_DIRECTOR, 1, Messages.Director_Unsatisfied_Dependencies, null); > //try to find a more specific root message if possible > String specificMessage = null; >Index: src/org/eclipse/equinox/internal/p2/director/messages.properties >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/messages.properties,v >retrieving revision 1.26 >diff -u -r1.26 messages.properties >--- src/org/eclipse/equinox/internal/p2/director/messages.properties 10 Apr 2010 00:48:30 -0000 1.26 >+++ src/org/eclipse/equinox/internal/p2/director/messages.properties 19 Apr 2010 15:31:19 -0000 >@@ -16,6 +16,8 @@ > Director_Unsatisfied_Dependencies=\ > Cannot complete the install because some dependencies are not satisfiable > Director_error_applying_configuration=Unexpected failure applying configuration after for the installer plan execution. >+Director_For_Target = Cannot complete the install because software was selected which is intended only for installation into a target platform for the Plug-in Development Environment (PDE). >+Director_For_Target_Unselect_Required = {0}: If provisioning a target platform then try disabling the option ''Include required software'' > > Explanation_alreadyInstalled=Software currently installed: {0} > Explanation_from=From: {0}
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 307789
:
165304
|
165499
|
165635