diff options
author | Laurent Goubet | 2017-08-31 14:08:18 +0000 |
---|---|---|
committer | Laurent Goubet | 2017-08-31 14:17:00 +0000 |
commit | 997821d9971b4628a287051b6d4ed17defed8032 (patch) | |
tree | 5afba02d606af15a7f883f74367f8505a455b337 | |
parent | eae991e4853f5674432afd82a38dc3c39035c531 (diff) | |
download | org.eclipse.emf.compare-997821d9971b4628a287051b6d4ed17defed8032.tar.gz org.eclipse.emf.compare-997821d9971b4628a287051b6d4ed17defed8032.tar.xz org.eclipse.emf.compare-997821d9971b4628a287051b6d4ed17defed8032.zip |
[521358] documentation for EMFCompareRCPPlugin missing getDefault calls
Change-Id: Icf5f209222633c8cf8b4e8efc8a467a83bfe7635
-rw-r--r-- | plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki b/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki index 789027306..088ce77a4 100644 --- a/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki +++ b/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki @@ -213,7 +213,7 @@ A custom match engine can be used for your model comparison needs: // for standalone usage IMatchEngine.Factory.Registry registry = MatchEngineFactoryRegistryImpl.createStandaloneInstance(); // for OSGi (IDE, RCP) usage -// IMatchEngine.Factory.Registry registry = EMFCompareRCPPlugin.getMatchEngineFactoryRegistry(); +// IMatchEngine.Factory.Registry registry = EMFCompareRCPPlugin.getDefault().getMatchEngineFactoryRegistry(); final IMatchEngine customMatchEngine = new MyMatchEngine(...); IMatchEngine.Factory engineFactory = new MatchEngineFactoryImpl() { public IMatchEngine getMatchEngine() { @@ -254,7 +254,7 @@ IComparisonFactory comparisonFactory = new DefaultComparisonFactory(new DefaultE IMatchEngine.Factory.Registry registry = MatchEngineFactoryRegistryImpl.createStandaloneInstance(); // for OSGi (IDE, RCP) usage -// IMatchEngine.Factory.Registry registry = EMFCompareRCPPlugin.getMatchEngineFactoryRegistry(); +// IMatchEngine.Factory.Registry registry = EMFCompareRCPPlugin.getDefault().getMatchEngineFactoryRegistry(); final MatchEngineFactoryImpl matchEngineFactory = new MatchEngineFactoryImpl(customIDMatcher, comparisonFactory); matchEngineFactory.setRanking(20); // default engine ranking is 10, must be higher to override. registry.add(matchEngineFactory); @@ -270,7 +270,7 @@ There are some cases where you do not want the identifiers of your elements to b <source lang="java"> IMatchEngine.Factory.Registry registry === MatchEngineFactoryRegistryImpl.createStandaloneInstance(); // for OSGi (IDE, RCP) usage -// IMatchEngine.Factory.Registry registry === EMFCompareRCPPlugin.getMatchEngineFactoryRegistry(); +// IMatchEngine.Factory.Registry registry === EMFCompareRCPPlugin.getDefault().getMatchEngineFactoryRegistry(); final MatchEngineFactoryImpl matchEngineFactory = new MatchEngineFactoryImpl(UseIdentifiers.NEVER); matchEngineFactory.setRanking(20); // default engine ranking is 10, must be higher to override. registry.add(matchEngineFactory); |