1 19 20 package org.openide.loaders; 21 22 import java.util.EventObject ; 23 24 import org.openide.util.Lookup; 25 import org.openide.filesystems.*; 26 27 32 class ShadowChangeAdapter extends Object implements OperationListener { 33 34 35 ShadowChangeAdapter() { 36 37 40 DataLoaderPool.getDefault().addOperationListener(this); 41 } 42 43 44 static void checkBrokenDataShadows(EventObject ev) { 45 BrokenDataShadow.checkValidity(ev); 46 } 47 48 49 static void checkDataShadows(EventObject ev) { 50 DataShadow.checkValidity(ev); 51 } 52 53 60 public void operationPostCreate(OperationEvent ev) { 61 checkBrokenDataShadows(ev); 62 } 63 64 67 public void operationCopy(OperationEvent.Copy ev) { 68 } 69 70 73 public void operationMove(OperationEvent.Move ev) { 74 checkDataShadows(ev); 75 checkBrokenDataShadows(ev); 76 } 77 78 81 public void operationDelete(OperationEvent ev) { 82 checkDataShadows(ev); 83 } 84 85 88 public void operationRename(OperationEvent.Rename ev) { 89 checkDataShadows(ev); 90 checkBrokenDataShadows(ev); 91 } 92 93 96 public void operationCreateShadow(OperationEvent.Copy ev) { 97 } 98 99 102 public void operationCreateFromTemplate(OperationEvent.Copy ev) { 103 checkBrokenDataShadows(ev); 104 } 105 106 } 107 | Popular Tags |