org.apache.cayenne.modeler.dialog.datamap.PackageUpdateController.class Maven / Gradle / Ivy
???? 1G
Y ? ? ? ? ? ?
? ? ?
?
?
? ?
?
?
?
?
?
? ?
?
? ?
? ?
?
?
?
? ? ? ?
F ? ?
?
?
?
? ?
% ? ?
? ? ? ? ? ? ? ? ?
, ? ?
? ?
? ?
F ? ?
2 ? ? ?
, ? ?
? ?
? ?
? ? ?
?
: ?
?
?
: ? ? ? ? ?
@ ? ? ? ? ? ?
@ ? ?
H ?
? ?
?
F ?
F ?
F ?
? ?
? ?
: ?
: ?
? ?
: ?
: ? ?
V ?
? ? ? InnerClasses ALL_CONTROL Ljava/lang/String;
ConstantValue UNINIT_CONTROL clientUpdate Z view CLorg/apache/cayenne/modeler/dialog/datamap/DefaultsPreferencesView; R(Lorg/apache/cayenne/modeler/ProjectController;Lorg/apache/cayenne/map/DataMap;Z)V Code LineNumberTable LocalVariableTable this CLorg/apache/cayenne/modeler/dialog/datamap/PackageUpdateController; mediator .Lorg/apache/cayenne/modeler/ProjectController; dataMap Lorg/apache/cayenne/map/DataMap;
startupAction ()V getView ()Ljava/awt/Component; initController
updatePackage e .Lorg/apache/cayenne/map/event/EmbeddableEvent; newClassName oldName p Ljava/util/regex/Pattern; tokens [Ljava/lang/String; className
embeddable #Lorg/apache/cayenne/map/Embeddable; ev -Lorg/apache/cayenne/map/event/AttributeEvent; attribute %Lorg/apache/cayenne/map/ObjAttribute; entity "Lorg/apache/cayenne/map/ObjEntity; doAll defaultPackage oldNameEmbeddableToNewName Ljava/util/Map; LocalVariableTypeTable 5Ljava/util/Map; extractClassName &(Ljava/lang/String;)Ljava/lang/String; name dot I getDefaultPackage ()Ljava/lang/String; getClassName 6(Lorg/apache/cayenne/map/ObjEntity;)Ljava/lang/String; setClassName 7(Lorg/apache/cayenne/map/ObjEntity;Ljava/lang/String;)V newName
SourceFile PackageUpdateController.java c ? _ ` Aorg/apache/cayenne/modeler/dialog/datamap/DefaultsPreferencesView Aorg/apache/cayenne/modeler/dialog/datamap/PackageUpdateController ^Set/update package for all ObjEntities and Embeddables (create default class names if missing) )Do not override class names with packages c ? a b /Update ObjEntities and Embeddables Java Package ? ? r o ? o javax/swing/WindowConstants ? ? ? ? ? o ? o ? Corg/apache/cayenne/modeler/dialog/datamap/PackageUpdateController$1 c Corg/apache/cayenne/modeler/dialog/datamap/PackageUpdateController$2 ? ?
.
java/lang/StringBuilder c o ? java/util/HashMap l m !org/apache/cayenne/map/Embeddable ? ? [.] !" ,org/apache/cayenne/map/event/EmbeddableEvent c#$%& ? ? j k'()*+, org/apache/cayenne/map/ObjEntity ? ?- ? ? ? ? ?. #org/apache/cayenne/map/ObjAttribute (org/apache/cayenne/map/EmbeddedAttribute/01 ?2345 java/lang/String6 ? +org/apache/cayenne/map/event/AttributeEvent c789: o;"<0=>? ?@ ?ABC ? (org/apache/cayenne/map/event/EntityEvent cDEF Gorg/apache/cayenne/modeler/dialog/datamap/DefaultsPreferencesController Q(Lorg/apache/cayenne/modeler/ProjectController;Lorg/apache/cayenne/map/DataMap;)V '(Ljava/lang/String;Ljava/lang/String;)V setTitle (Ljava/lang/String;)V pack setDefaultCloseOperation (I)V setModal (Z)V makeCloseableOnEscape
centerView
setVisible getCancelButton ()Ljavax/swing/JButton; F(Lorg/apache/cayenne/modeler/dialog/datamap/PackageUpdateController;)V javax/swing/JButton addActionListener "(Ljava/awt/event/ActionListener;)V getUpdateButton
isAllEntities ()Z org/apache/cayenne/util/Util
isEmptyString (Ljava/lang/String;)Z endsWith append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; toString org/apache/cayenne/map/DataMap getEmbeddables ()Ljava/util/Collection; java/util/Collection iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; java/util/regex/Pattern compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; split -(Ljava/lang/CharSequence;)[Ljava/lang/String; indexOf (I)I J(Ljava/lang/Object;Lorg/apache/cayenne/map/Embeddable;Ljava/lang/String;)V
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ,org/apache/cayenne/modeler/ProjectController getCurrentDataMap "()Lorg/apache/cayenne/map/DataMap; fireEmbeddableEvent Q(Lorg/apache/cayenne/map/event/EmbeddableEvent;Lorg/apache/cayenne/map/DataMap;)V getObjEntities getName
getAttributes size ()I getType containsKey (Ljava/lang/Object;)Z get &(Ljava/lang/Object;)Ljava/lang/Object; setType V(Ljava/lang/Object;Lorg/apache/cayenne/map/Attribute;Lorg/apache/cayenne/map/Entity;)V fireObjAttributeEvent 0(Lorg/apache/cayenne/map/event/AttributeEvent;)V dispose lastIndexOf length substring (I)Ljava/lang/String; getDefaultClientPackage getClientClassName nullSafeEquals '(Ljava/lang/Object;Ljava/lang/Object;)Z setClientClassName 4(Ljava/lang/Object;Lorg/apache/cayenne/map/Entity;)V fireObjEntityEvent -(Lorg/apache/cayenne/map/event/EntityEvent;)V ! Y [ \ ] ^ \ ] _ ` a b c d e \ *+,? *? ? f 8 9 : g * h i j k l m _ ` n o e ? D*? Y? ? *? ?
*? *? ? *? ? *? ? *? *? *? ? ? f *
@ A B D # E + F 3 G 7 H ; I C J g D h i p q e / *? ? f M g h i r o e W %*? ? ? Y*? ? *? ? ? Y*? ? ? f Q W $ ] g % h i s o e , ?*? <*? M,? ? M? ,? ? ? Y? !,? ".? #? $M? %Y? &N*? '? (? ) :? * ? ?? + ? ,:? -:.? /:? 0:?d2: ? ? ?
.? 1? K? 2Y*? -? 3:
? Y? !,? " ? "? $:-? 4 W? 5*? 6
*? 6? 7? 8??k*? '? 9? ) :? * ? ?? + ? ::*? ;:? ? ?
.? 1? 4*? ? ?