This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The Saros Eclipse Plugin". Pusher was dpp-gerrit.
The branch, master has been updated
via ed6c9591d4056db011eb654599fc0b154f3db9c8 (commit)
from 4d927555c7f9951dbb5e039fdc55a434c2a2167c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ed6c9591d4056db011eb654599fc0b154f3db9c8
Author: Christoph Krüger <[email protected]>
Date: Thu Nov 14 15:36:08 2013 +0100
[INTERNAL] Make adding new Annotations easier
Until now only default annotations were used (annotations that do not
require custom DrawingStrategies, but use the standard Eclipse
strategies).
This patch provides convenience methods for registering custom
DrawingStrategies, e.g. to enable more sophisticated annotations.
In order to add a custom annotation, just subclass "SarosAnnotation",
implement an "IDrawingStrategy", and add them both into
EditorManager.registerCustomAnnotations().
The DrawingStrategy will always be called when the AnnotationPainter is
informed (i.e. whenever the text cursor is changed or a new selection is
made).
Furthermore, CustomAnnotationManager allows to provide a layer number to
ensure that the Annotations are drawn in the correct order.
Additionally, old Annotation instances get only removed if they have the
same class and source (User), instead of just the same source. This way
we are able to keep multiple Annotations per User.
Adapted from SWTP-2013 repository.
- Commits 76c77f7 and ceb0fe9
- Reviewed on: http://saros-build.imp.fu-berlin.de/gerrit/892 and
http://saros-build.imp.fu-berlin.de/gerrit/956
- Reviewed by: Richard Möhn <[email protected]>
- Reviewed by: Conrad LäÃig <[email protected]>
The CustomAnnotationManager was introduced by Stefan Rossbach in this
patch: http://saros-build.imp.fu-berlin.de/gerrit/972
Change-Id: I6dc2890a5bc5d7181e42d6de756c062e9f48e6ff
Reviewed-on: http://saros-build.imp.fu-berlin.de/gerrit/1232
Tested-by: Jenkins CI
Reviewed-by: Stefan Rossbach <[email protected]>
Reviewed-by: Franz Zieris <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
.../de/fu_berlin/inf/dpp/editor/EditorManager.java | 37 ++++++-
.../de/fu_berlin/inf/dpp/editor/EditorPool.java | 2 +-
.../editor/internal/CustomAnnotationManager.java | 118 ++++++++++++++++++++
.../inf/dpp/editor/internal/EditorAPI.java | 57 +++++++---
.../inf/dpp/editor/internal/IEditorAPI.java | 15 ++-
5 files changed, 205 insertions(+), 24 deletions(-)
create mode 100644
de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/editor/internal/CustomAnnotationManager.java
hooks/post-receive
--
The Saros Eclipse Plugin
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Dpp-robot mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dpp-robot