コード例 #1
0
 /** @since 0.8 */
 public boolean canRedo(IContext context) {
   IPattern pattern = delegate.getPattern();
   if (pattern instanceof ICustomUndoablePattern) {
     return ((ICustomUndoablePattern) pattern).canRedo(this, context);
   }
   return true;
 }
コード例 #2
0
 @Override
 public boolean canUndo(IContext context) {
   IPattern pattern = delegate.getPattern();
   if (pattern instanceof ICustomUndoablePattern) {
     return ((ICustomUndoablePattern) pattern).canUndo(this, context);
   }
   return super.canUndo(context);
 }
コード例 #3
0
 @Override
 public IResizeConfiguration getResizeConfiguration(IResizeShapeContext context) {
   IPattern pattern = delegate.getPattern();
   IResizeConfiguration resizeConfiguration = pattern.getResizeConfiguration(context);
   if (resizeConfiguration != null) {
     return resizeConfiguration;
   }
   return super.getResizeConfiguration(context);
 }
コード例 #4
0
 /** @since 0.8 */
 public void redo(IContext context) {
   IPattern pattern = delegate.getPattern();
   if (pattern instanceof ICustomUndoablePattern) {
     ((ICustomUndoablePattern) pattern).redo(this, context);
   }
 }
コード例 #5
0
 @Override
 public void resizeShape(IResizeShapeContext context) {
   delegate.getPattern().resizeShape(context);
 }
コード例 #6
0
 @Override
 public boolean canResizeShape(IResizeShapeContext context) {
   IPattern pattern = delegate.getPattern();
   return pattern.canResizeShape(context);
 }