Transcript
Page 1: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

DemoCamp 24.11 Piwnica 21

Product Customization

[email protected]

Page 2: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Agenda

• Equinox Transforms

• Google Summer of Code

• Demo

Page 3: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Equinox Transforms - Problem ?

Page 4: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Equinox Transformations – Problem ?

• dostosowanie

• włączenie całości

Page 5: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Equinox Transforms

http://wiki.eclipse.org/Product_Customization

http://wiki.eclipse.org/Equinox_Transforms

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="view"> <xsl:if test="@id='org.eclipse.ui.views.TaskList'"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:if> </xsl:template> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template></xsl:stylesheet>

Page 6: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Equinox Transforms

http://wiki.eclipse.org/Adaptor_Hooks

Transformer (np. XSLT)

Cached

-clean

Page 7: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Equinox Transforms

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/plugin/extension[@point='org.eclipse.ui.views']/view[@id='testProduct.navigationView']" /> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template></xsl:stylesheet>

testProduct,plugin\.xml,/transforms/testProduct.xmlextensionProject,plugin\.xml,/transforms/extensionProject.xml

Page 8: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Equinox Transforms

osgi.framework.extensions=org.eclipse.equinox.transforms.hookosgi.bundles=... org.eclipse.equinox.transforms.xslt@1:start,... testProduct,testProduct.transforms@1:start ...

public void start(BundleContext context) throws Exception {Properties properties = new Properties();properties.put("equinox.transformerType", "xslt"); //$NON-NLS-1$ //$NON-NLS-2$fRegistration = context.registerService(URL.class.getName(), context.getBundle().getEntry("transforms/xslt_transforms.csv"), properties); //$NON-NLS-1$}

Page 9: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Page 10: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Chris AniszczykKim Horne

Page 11: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Frankfurt am Main

Page 12: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Mainz

Page 13: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Monachium

Page 14: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Alpy

Page 15: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Nadrenia

Page 16: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Demo

Page 17: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Google Summer of Code

Informacje:

http://frankfurt-days.blogspot.com/

http://code.google.com/p/product-customization/

Page 18: Product Customization - Poznań University of Technology€¦ · DemoCamp 24.11 Piwnica 21 Product Customization bartosz.michalik@cs.put.poznan.pl. Agenda • Equinox Transforms •

Pytania


Top Related