Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2009-03-09 22:37:22 +0000
committerAndrew Niefer2009-03-09 22:37:22 +0000
commit096f18ff5d9c09b6e443bff2fe816ace6b63d2c1 (patch)
tree731867c59e597b7f263917169c95fdf9a992e38c /bundles/org.eclipse.equinox.p2.metadata.generator
parentf5e186871c762ed1760f225ea462cc37699087cb (diff)
downloadrt.equinox.p2-096f18ff5d9c09b6e443bff2fe816ace6b63d2c1.tar.gz
rt.equinox.p2-096f18ff5d9c09b6e443bff2fe816ace6b63d2c1.tar.xz
rt.equinox.p2-096f18ff5d9c09b6e443bff2fe816ace6b63d2c1.zip
bug 267461 - use product uid attributev20090309-1845
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata.generator')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/ProductFile.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/ProductFile.java b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/ProductFile.java
index a87555836..fd1e55017 100644
--- a/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/ProductFile.java
+++ b/bundles/org.eclipse.equinox.p2.metadata.generator/src/org/eclipse/equinox/internal/p2/metadata/generator/features/ProductFile.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
+ * Copyright (c) 2005, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -92,6 +92,7 @@ public class ProductFile extends DefaultHandler {
private String platformConfigPath = null;
private String launcherName = null;
private String id = null;
+ private String uid = null;
private boolean useFeatures = false;
private List plugins = null;
private List fragments = null;
@@ -154,6 +155,12 @@ public class ProductFile extends DefaultHandler {
}
public String getId() {
+ if (uid != null)
+ return uid;
+ return id;
+ }
+
+ public String getProductId() {
return id;
}
@@ -415,6 +422,7 @@ public class ProductFile extends DefaultHandler {
private void processProduct(Attributes attributes) {
id = attributes.getValue("id"); //$NON-NLS-1$
+ uid = attributes.getValue("uid"); //$NON-NLS-1$
productName = attributes.getValue("name"); //$NON-NLS-1$
String use = attributes.getValue("useFeatures"); //$NON-NLS-1$
if (use != null)

Back to the top