/** * Creates a new UI on the given model and the set of viewers. The model * must provide a tab stop sequence with a non-empty list of tab stops. * * @param model the linked mode model * @param targets the non-empty list of targets upon which the linked mode * UI should act */ public LinkedModeUI(LinkedModeModel model, LinkedModeUITarget[] targets) { constructor(model, targets); }
/** * Convenience constructor for one target. * * @param model the linked mode model * @param target the target upon which the linked mode UI should act */ public LinkedModeUI(LinkedModeModel model, LinkedModeUITarget target) { constructor(model, new LinkedModeUITarget[]{target}); }
/** * Creates a new UI on the given model and the set of viewers. The model * must provide a tab stop sequence with a non-empty list of tab stops. * * @param model the linked mode model * @param targets the non-empty list of targets upon which the linked mode * UI should act */ public LinkedModeUI(LinkedModeModel model, LinkedModeUITarget[] targets) { constructor(model, targets); }
/** * Convenience constructor for one target. * * @param model the linked mode model * @param target the target upon which the linked mode UI should act */ public LinkedModeUI(LinkedModeModel model, LinkedModeUITarget target) { constructor(model, new LinkedModeUITarget[]{target}); }
/** * Convenience constructor for just one viewer. * * @param model the linked mode model * @param viewer the viewer upon which the linked mode UI should act */ public LinkedModeUI(LinkedModeModel model, ITextViewer viewer) { constructor(model, new LinkedModeUITarget[]{new EmptyTarget(viewer)}); }
/** * Convenience constructor for just one viewer. * * @param model the linked mode model * @param viewer the viewer upon which the linked mode UI should act */ public LinkedModeUI(LinkedModeModel model, ITextViewer viewer) { constructor(model, new LinkedModeUITarget[]{new EmptyTarget(viewer)}); }
/** * Convenience constructor for multiple viewers. * * @param model the linked mode model * @param viewers the non-empty list of viewers upon which the linked mode * UI should act */ public LinkedModeUI(LinkedModeModel model, ITextViewer[] viewers) { LinkedModeUITarget[] array= new LinkedModeUITarget[viewers.length]; for (int i= 0; i < array.length; i++) { array[i]= new EmptyTarget(viewers[i]); } constructor(model, array); }
/** * Convenience constructor for multiple viewers. * * @param model the linked mode model * @param viewers the non-empty list of viewers upon which the linked mode * UI should act */ public LinkedModeUI(LinkedModeModel model, ITextViewer[] viewers) { LinkedModeUITarget[] array= new LinkedModeUITarget[viewers.length]; for (int i= 0; i < array.length; i++) { array[i]= new EmptyTarget(viewers[i]); } constructor(model, array); }