org.apache.cayenne.modeler.util.DbRelationshipPathComboBoxEditor.class Maven / Gradle / Ivy
???? 7R
=org/apache/cayenne/modeler/util/PathChooserComboBoxCellEditor ()V
javax/swing/JTable getModel ()Ljavax/swing/table/TableModel; ;org/apache/cayenne/modeler/editor/ObjRelationshipTableModel @org/apache/cayenne/modeler/util/DbRelationshipPathComboBoxEditor model =Lorg/apache/cayenne/modeler/editor/ObjRelationshipTableModel; row I table Ljavax/swing/JTable;
createTreeModelForComboBox 4(I)Lorg/apache/cayenne/modeler/util/EntityTreeModel; " # $ treeModel 1Lorg/apache/cayenne/modeler/util/EntityTreeModel; & javax/swing/JLabel ( -You should select table for this ObjectEntity
% * + (Ljava/lang/String;)V
- . / initializeCombo U(Lorg/apache/cayenne/modeler/editor/ObjRelationshipTableModel;ILjavax/swing/JTable;)V 1 2 3 comboBoxPathChooser Ljavax/swing/JComboBox;
5 6 7 8 9 javax/swing/JComboBox getEditor ()Ljavax/swing/ComboBoxEditor; ; < = > ? javax/swing/ComboBoxEditor getEditorComponent ()Ljava/awt/Component; A javax/swing/text/JTextComponent
@ C D E getText ()Ljava/lang/String; G .
I J K L M java/util/regex/Pattern quote &(Ljava/lang/String;)Ljava/lang/String;
O P Q R S java/lang/String split '(Ljava/lang/String;)[Ljava/lang/String; U V previousEmbeddedLevel
X Y Z
getValueAt (II)Ljava/lang/Object;
\ . ] K(Lorg/apache/cayenne/modeler/util/CayenneTableModel;ILjavax/swing/JTable;)V
_ ` a getRelationship +(I)Lorg/apache/cayenne/map/ObjRelationship;
c d e f g &org/apache/cayenne/map/ObjRelationship getDbRelationshipPath +()Lorg/apache/cayenne/exp/path/CayennePath;
5 i j k setSelectedItem (Ljava/lang/Object;)V m n enterPressedCount p STo choose relationship press enter two times.To choose next relationship press dot.
5 r s + setToolTipText
@ u v w addFocusListener !(Ljava/awt/event/FocusListener;)V y z { | E 'org/apache/cayenne/exp/path/CayennePath value ~ ? savePath Ljava/lang/String;
? ? ? changeObjEntity (Ljava/lang/String;)Z
? ? ? getCurrentNode &(Ljava/lang/String;)Ljava/lang/Object;
? ? ? ? ? +org/apache/cayenne/modeler/util/ModelerUtil
getObjectName &(Ljava/lang/Object;)Ljava/lang/String;
O ? ? ? equals (Ljava/lang/Object;)Z ? %org/apache/cayenne/map/DbRelationship
? ? ?
getCellEditor %()Ljavax/swing/table/TableCellEditor; ? ? ? ? ? !javax/swing/table/TableCellEditor stopCellEditing ()Z
? ? ? ? getTargetEntity #()Lorg/apache/cayenne/map/DbEntity;
? ? ? ? ? org/apache/cayenne/map/DbEntity
getDataMap "()Lorg/apache/cayenne/map/DataMap;
? ? ? ? ? org/apache/cayenne/map/DataMap getMappedEntities 9(Lorg/apache/cayenne/map/DbEntity;)Ljava/util/Collection; ? ? ? ? ? java/util/Collection isEmpty ? ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? ? java/util/Iterator next ()Ljava/lang/Object; ? org/apache/cayenne/map/ObjEntity
c ? ? ? setTargetEntityName "(Lorg/apache/cayenne/map/Entity;)V
? ? ? setUpdatedValueAt (Ljava/lang/Object;II)V
c ? ? + setDbRelationshipPath
c ? ? + setMapKey
? ? repaint
? ? processDotEntered
? ? ? parsePathString (C)V
c ? ? ? getSourceEntity $()Lorg/apache/cayenne/map/ObjEntity;
? ? ? ? getDbEntity ? /org/apache/cayenne/modeler/util/EntityTreeModel
? ? ? ?