org.apache.cayenne.modeler.action.ObjEntitySyncAction.class Maven / Gradle / Ivy
???? 7 ? Sync ObjEntity with DbEntity
5org/apache/cayenne/modeler/action/ObjEntitySyncAction
getActionName ()Ljava/lang/String;
-org/apache/cayenne/modeler/util/CayenneAction =(Ljava/lang/String;Lorg/apache/cayenne/modeler/Application;)V
icon-sync.png java/awt/event/KeyEvent
java/awt/Toolkit getDefaultToolkit ()Ljava/awt/Toolkit;
getMenuShortcutKeyMaskEx ()I
! " javax/swing/KeyStroke getKeyStroke (II)Ljavax/swing/KeyStroke;
$ % &
syncObjEntity ()V
( ) * getProjectController 0()Lorg/apache/cayenne/modeler/ProjectController;
, - . / 0 ,org/apache/cayenne/modeler/ProjectController getCurrentObjEntity $()Lorg/apache/cayenne/map/ObjEntity;
2 3 4 5 6 org/apache/cayenne/map/ObjEntity getDbEntity #()Lorg/apache/cayenne/map/DbEntity; 8 @org/apache/cayenne/modeler/dialog/objentity/EntitySyncController
: ; < = > &org/apache/cayenne/modeler/Application getInstance *()Lorg/apache/cayenne/modeler/Application;
: @ A B getFrameController 7()Lorg/apache/cayenne/modeler/CayenneModelerController;
7 D
E X(Lorg/apache/cayenne/modeler/util/CayenneController;Lorg/apache/cayenne/map/ObjEntity;)V
7 G H I createMerger >()Lorg/apache/cayenne/dbsync/merge/context/EntityMergeSupport; K Vorg/apache/cayenne/modeler/action/DbEntitySyncAction$PreserveRelationshipNameGenerator
J M
&
O P Q R S :org/apache/cayenne/dbsync/merge/context/EntityMergeSupport setNameGenerator 9(Lorg/apache/cayenne/dbsync/naming/ObjectNameGenerator;)V
O U V W synchronizeWithDbEntity %(Lorg/apache/cayenne/map/ObjEntity;)Z Y (org/apache/cayenne/map/event/EntityEvent [ %org/apache/cayenne/map/event/MapEvent
X ]
^ 5(Ljava/lang/Object;Lorg/apache/cayenne/map/Entity;I)V
, ` a b fireObjEntityEvent -(Lorg/apache/cayenne/map/event/EntityEvent;)V d 3org/apache/cayenne/modeler/event/EntityDisplayEvent
2 f g h
getDataMap "()Lorg/apache/cayenne/map/DataMap;
, j k l
getProject &()Lorg/apache/cayenne/project/Project;
n o p q r "org/apache/cayenne/project/Project getRootNode 6()Lorg/apache/cayenne/configuration/ConfigurationNode; t 6org/apache/cayenne/configuration/DataChannelDescriptor
c v
w ?(Ljava/lang/Object;Lorg/apache/cayenne/map/Entity;Lorg/apache/cayenne/map/DataMap;Lorg/apache/cayenne/configuration/DataChannelDescriptor;)V
, y z { fireObjEntityDisplayEvent 8(Lorg/apache/cayenne/modeler/event/EntityDisplayEvent;)V Code LineNumberTable +(Lorg/apache/cayenne/modeler/Application;)V LocalVariableTable this 7Lorg/apache/cayenne/modeler/action/ObjEntitySyncAction; application (Lorg/apache/cayenne/modeler/Application; getIconName getAcceleratorKey ()Ljavax/swing/KeyStroke;
performAction (Ljava/awt/event/ActionEvent;)V e Ljava/awt/event/ActionEvent; merger