Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Compare framework

334 views

Published on

Published in: Technology
  • Be the first to comment

Compare framework

  1. 1. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 2008Compare Framework BasicsTomasz ZarnaIBM Krakow Software Labtomasz.zarna@pl.ibm.com
  2. 2. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20082Agenda• Quick introduction• Simple editor• News• Links• Questions
  3. 3. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20083The Compare Framework• What is the purpose of the Compare framework? Support comparison of alternate states of a file system ordata store• What does the Compare framework provide? API to define the input to a comparison Extensions for associating viewers with input types Containers to host comparisons in the UI A differencing engine API and actions related to file system resources
  4. 4. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20084Overview of Compare ArchitectureCompare ContainerFile System Repository DatabaseCompare InputCompare ViewersJDTrightleftancestorClientsEMFModel Providers
  5. 5. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20085Compare/Merge viewers• A simple text merge viewer and the JDT merge viewer
  6. 6. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20086How to create the simplest Compare Editor?• Ingredients: A CompareItem that implements ITypedElement for name, image and content type of the object IModificationDate for timestamp IStreamContentAccessor to supply the content CompareEditorInput subclass DiffNode computed in a CompareEditorInput subclass To specify which of the panes is editable useCompareConfiguration An action to open the editor A contribution in org.eclipse.ui.popupMenus extension point
  7. 7. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20087The input and the item© Copyright 2008 IBM Corp. All rights reserved. This source code ismade available under the terms of the Eclipse Public License, v1.0.
  8. 8. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20088The action and the popup menu entry© Copyright 2008 IBM Corp. All rights reserved. This source code ismade available under the terms of the Eclipse Public License, v1.0.
  9. 9. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 20089The result
  10. 10. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 200810The panes of a Compare EditorcontentMergeViewers JavaContentViewerCreatorstructureCreatorsstructureMergeViewersZipFileStructureCreatorJavaStructureDiffViewerCreator
  11. 11. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 200811News• Richer Compare Editor• Local diff
  12. 12. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 200812IRC, newsgroups and bugzilla• IRC: Freenode: irc.freenode.net #eclipse, #eclipse-dev SzymonB, z4z4 http://wiki.eclipse.org/IRC• Newsgroups eclipse.platform More info: http://www.eclipse.org/newsgroups/• Bugzilla https://bugs.eclipse.org
  13. 13. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 200813Web and mail• Web http://www.eclipse.org http://wiki.eclipse.org/Workspace_Team http://planeteclipse.org http://polishineclipse.blogspot.com• Mail Tomasz.Zarna@pl.ibm.com Szymon.Brandys@pl.ibm.com Pawel.Pogorzelski@pl.ibm.com
  14. 14. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 200814Questions
  15. 15. Compare Framework | Copyright © IBM Corp., 2008. All rights reserved. Source code in this presentation is made available underthe EPL, v1.0, remainder of the presentation is licensed under Creative Commons Att. Nc Nd 2.5 license. | 2008-11-15Eclipse Demo Camp 200815Legal Notices• Java and all Java-based trademarks are trademarksof Sun Microsystems, Inc. in the United States, othercountries, or both• Other company, product, or service names may betrademarks or service marks of others• Question mark graphic is taken from WikimediaCommons and is part of the public domain

×