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 102261 Details for
Bug 222480
Some features in platform.xml not showing up in "About" dialog
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
222480.txt (text/plain), 7.37 KB, created by
DJ Houghton
on 2008-05-27 18:14:29 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
DJ Houghton
Created:
2008-05-27 18:14:29 EDT
Size:
7.37 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.p2.touchpoint.eclipse >Index: src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java,v >retrieving revision 1.14 >diff -u -r1.14 PlatformConfigurationWrapper.java >--- src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java 6 May 2008 17:26:58 -0000 1.14 >+++ src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java 27 May 2008 21:08:55 -0000 >@@ -190,6 +190,11 @@ > addedFeature.setId(id); > addedFeature.setVersion(version); > addedFeature.setUrl(makeFeatureURL(id, version)); >+ addedFeature.setApplication(application); >+ addedFeature.setPluginIdentifier(pluginIdentifier); >+ addedFeature.setPluginVersion(pluginVersion); >+ addedFeature.setRoots(root); >+ addedFeature.setPrimary(primary); > site.addFeature(addedFeature); > return Status.OK_STATUS; > } >Index: src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/InstallFeatureAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/InstallFeatureAction.java,v >retrieving revision 1.1 >diff -u -r1.1 InstallFeatureAction.java >--- src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/InstallFeatureAction.java 6 Apr 2008 00:10:17 -0000 1.1 >+++ src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/actions/InstallFeatureAction.java 27 May 2008 21:08:55 -0000 >@@ -65,6 +65,9 @@ > if (file == null || !file.exists()) { > return Util.createError(NLS.bind(Messages.artifact_file_not_found, artifactKey)); > } >- return configuration.addFeatureEntry(file, featureId, featureVersion, artifactKey.getId(), artifactKey.getVersion().toString(), /*primary*/false, /*application*/null, /*root*/null); >+ String pluginId = iu.getProperty("feature.plugin"); >+ boolean isPrimary = Boolean.valueOf(iu.getProperty("feature.primary")).booleanValue(); >+ String application = iu.getProperty("feature.application"); >+ return configuration.addFeatureEntry(file, featureId, featureVersion, pluginId, artifactKey.getVersion().toString(), isPrimary, application, /*root*/null); > } > } >\ No newline at end of file >#P org.eclipse.equinox.p2.metadata.generator >Index: src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java,v >retrieving revision 1.22 >diff -u -r1.22 FeatureParser.java >--- src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java 14 May 2008 19:31:28 -0000 1.22 >+++ src/org/eclipse/equinox/internal/p2/metadata/generator/features/FeatureParser.java 27 May 2008 21:08:57 -0000 >@@ -251,6 +251,11 @@ > String arch = attributes.getValue("arch"); //$NON-NLS-1$ > result.setEnvironment(os, ws, arch, nl); > >+ result.setApplication(attributes.getValue("application")); //$NON-NLS-1$ >+ result.setPlugin(attributes.getValue("plugin")); //$NON-NLS-1$ >+ result.setExclusive(Boolean.valueOf(attributes.getValue("exclusive")).booleanValue()); //$NON-NLS-1$ >+ result.setPrimary(Boolean.valueOf(attributes.getValue("primary")).booleanValue()); //$NON-NLS-1$ >+ > //TODO rootURLs > if (url != null && "file".equals(url.getProtocol())) { //$NON-NLS-1$ > File f = new File(url.getFile().replace('/', File.separatorChar)); >Index: src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Feature.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Feature.java,v >retrieving revision 1.3 >diff -u -r1.3 Feature.java >--- src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Feature.java 9 May 2008 01:37:01 -0000 1.3 >+++ src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/Feature.java 27 May 2008 21:08:57 -0000 >@@ -23,6 +23,10 @@ > private String version; > private String label; > private String image; >+ private String pluginId; >+ private boolean primary = false; >+ private boolean exclusive = false; >+ private String application; > > private URLEntry description; > private URLEntry license; >@@ -70,6 +74,10 @@ > entries.add(plugin); > } > >+ public String getApplication() { >+ return application; >+ } >+ > public String getArch() { > return arch; > } >@@ -162,6 +170,10 @@ > return os; > } > >+ public String getPlugin() { >+ return pluginId; >+ } >+ > public String getProviderName() { > return providerName; > } >@@ -186,6 +198,18 @@ > return ws; > } > >+ public boolean isExclusive() { >+ return exclusive; >+ } >+ >+ public boolean isPrimary() { >+ return primary; >+ } >+ >+ public void setApplication(String application) { >+ this.application = application; >+ } >+ > public void setCopyright(String copyright) { > if (this.copyright == null) > this.copyright = new URLEntry(); >@@ -217,6 +241,10 @@ > this.nl = nl; > } > >+ public void setExclusive(boolean exclusive) { >+ this.exclusive = exclusive; >+ } >+ > public void setImage(String image) { > this.image = image; > } >@@ -257,6 +285,14 @@ > this.location = location; > } > >+ public void setPlugin(String pluginId) { >+ this.pluginId = pluginId; >+ } >+ >+ public void setPrimary(boolean primary) { >+ this.primary = primary; >+ } >+ > public void setProviderName(String value) { > providerName = value; > } >Index: src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/MetadataGeneratorHelper.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/MetadataGeneratorHelper.java,v >retrieving revision 1.50 >diff -u -r1.50 MetadataGeneratorHelper.java >--- src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/MetadataGeneratorHelper.java 23 May 2008 01:56:06 -0000 1.50 >+++ src/org/eclipse/equinox/internal/provisional/p2/metadata/generator/MetadataGeneratorHelper.java 27 May 2008 21:08:57 -0000 >@@ -571,6 +571,14 @@ > iu.setLicense(new License(feature.getLicenseURL(), feature.getLicense())); > if (feature.getCopyright() != null) > iu.setCopyright(new Copyright(feature.getCopyrightURL(), feature.getCopyright())); >+ if (feature.getApplication() != null) >+ iu.setProperty("feature.application", feature.getApplication()); >+ if (feature.getPlugin() != null) >+ iu.setProperty("feature.plugin", feature.getPlugin()); >+ if (feature.isExclusive()) >+ iu.setProperty("feature.exclusive", "true"); >+ if (feature.isPrimary()) >+ iu.setProperty("feature.primary", "true"); > > // The required capabilities are not specified at this level because we don't want the feature jar to be attractive to install. >
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 222480
:
96341
|
102260
|
102261
|
102546