Exemple #1
0
 protected IFigure createDummy() {
   Layer layer = getTargetViewer().getLayer(GEF.LAYER_PRESENTATION);
   if (layer != null) {
     SizeableImageFigure dummy = new SizeableImageFigure(((IMarkerPart) getSource()).getImage());
     dummy.setStretched(true);
     dummy.setConstrained(true);
     dummy.setBounds(getSource().getFigure().getBounds());
     layer.add(dummy);
     return dummy;
   }
   return null;
 }
Exemple #2
0
 private void addBranchView() {
   Layer layer = viewer.getLayer(GEF.LAYER_PRESENTATION);
   if (layer != null) {
     layer.add(branch.getFigure());
   }
 }