Package de.fu_berlin.inf.dpp.editor.annotations

Examples of de.fu_berlin.inf.dpp.editor.annotations.ContributionAnnotation


                        .equals(source)) {
                    return;
                }
            }

            ContributionAnnotation annotation = new ContributionAnnotation(
                source, model);
            addContributionAnnotation(annotation, new Position(offset, length));
        }
    }
View Full Code Here


                    Position beforeOffset = new Position(pos.offset, offset
                        - pos.offset);
                    Position afterOffset = new Position(offset, pos.length
                        - (offset - pos.offset));

                    ContributionAnnotation oldAnnotation = (ContributionAnnotation) annotation;

                    removeFromHistory(oldAnnotation);

                    ContributionAnnotation newAnnotation;
                    User source = oldAnnotation.getSource();

                    newAnnotation = new ContributionAnnotation(source, model);
                    addContributionAnnotation(newAnnotation, beforeOffset);

                    newAnnotation = new ContributionAnnotation(source, model);
                    addContributionAnnotation(newAnnotation, afterOffset);
                }
            }
        }
    }
View Full Code Here

        Queue<ContributionAnnotation> history = getHistory(annotation
            .getSource());
        history.add(annotation);
        while (history.size() > MAX_HISTORY_LENGTH) {
            ContributionAnnotation oldAnnotation = history.remove();
            oldAnnotation.getModel().removeAnnotation(oldAnnotation);
        }
    }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.editor.annotations.ContributionAnnotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.