Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[578422] Extend subscriber retrieval through extension points
- Manage providers in registry and expose registry through UI plugin - Providers can map from comparison input data to Team subscriber - Providers may be ranked to allow for easier execution control - Use previous subscriber retrieval behavior in new subscriber provider Bug: 578422 Change-Id: Ifd1dc9e7d5dbc19cdd2f9c1d6899ea1049475845 Signed-off-by: Martin Fleck <mfleck@eclipsesource.com>
- Loading branch information
1 parent
e739909
commit cdf1917
Showing
9 changed files
with
623 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
122
plugins/org.eclipse.emf.compare.ide.ui/schema/subscriberProvider.exsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<!-- Schema file written by PDE --> | ||
<schema targetNamespace="org.eclipse.emf.compare.ide.ui" xmlns="http://www.w3.org/2001/XMLSchema"> | ||
<annotation> | ||
<appinfo> | ||
<meta.schema plugin="org.eclipse.emf.compare.ide.ui" id="subscriberProvider" name="Subscriber Provider"/> | ||
</appinfo> | ||
<documentation> | ||
The extension point can be used to support the mapping from a comparison input to a Team Subscriber that manages the mapping between local resources and a remote resources. | ||
</documentation> | ||
</annotation> | ||
|
||
<element name="extension"> | ||
<annotation> | ||
<appinfo> | ||
<meta.element /> | ||
</appinfo> | ||
</annotation> | ||
<complexType> | ||
<sequence> | ||
<element ref="provider" minOccurs="1" maxOccurs="unbounded"/> | ||
</sequence> | ||
<attribute name="point" type="string" use="required"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
<attribute name="id" type="string"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
<attribute name="name" type="string"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
<appinfo> | ||
<meta.attribute translatable="true"/> | ||
</appinfo> | ||
</annotation> | ||
</attribute> | ||
</complexType> | ||
</element> | ||
|
||
<element name="provider"> | ||
<complexType> | ||
<attribute name="class" type="string" use="required"> | ||
<annotation> | ||
<documentation> | ||
The fully qualified name of a class that implements org.eclipse.emf.compare.ide.ui.subscriber.ISubscriberProvider | ||
</documentation> | ||
<appinfo> | ||
<meta.attribute kind="java" basedOn=":org.eclipse.emf.compare.ide.ui.subscriber.ISubscriberProvider"/> | ||
</appinfo> | ||
</annotation> | ||
</attribute> | ||
<attribute name="ranking" type="string" use="default" value="0"> | ||
<annotation> | ||
<documentation> | ||
|
||
</documentation> | ||
</annotation> | ||
</attribute> | ||
</complexType> | ||
</element> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="since"/> | ||
</appinfo> | ||
<documentation> | ||
4.4.3 | ||
</documentation> | ||
</annotation> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="examples"/> | ||
</appinfo> | ||
<documentation> | ||
<extension | ||
point="org.eclipse.emf.compare.ide.ui.subscriberProvider"> | ||
<provider | ||
class="org.eclipse.emf.compare.ide.ui.subscriber.TeamSubscriberProvider" | ||
ranking="0"> | ||
</provider> | ||
</extension> | ||
</documentation> | ||
</annotation> | ||
|
||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="implementation"/> | ||
</appinfo> | ||
<documentation> | ||
See org.eclipse.emf.compare.ide.ui/plugin.xml for existing contributions. | ||
</documentation> | ||
</annotation> | ||
|
||
<annotation> | ||
<appinfo> | ||
<meta.section type="copyright"/> | ||
</appinfo> | ||
<documentation> | ||
Copyright (c) 2022 EclipseSource 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 | ||
http://www.eclipse.org/legal/epl-v10.html | ||
|
||
Contributors: | ||
Martin Fleck - initial API and implementation | ||
</documentation> | ||
</annotation> | ||
|
||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.