org.apache.cayenne.modeler.action.SaveAsAction.class Maven / Gradle / Ivy
???? 1K ?
N ?
N ?
O ? ?
? N ? ?
? ?
? ? ?
? ?
N ?
? ? ? ?
? ?
? ?
?
? ?
? ? ?
? ?
?
? ? ?
? ? ?
?
N ?
? ?
? ?
? ? ?
# ?
N ?
? ? ? ? ?
? ? ' ?
? ?
? ? ? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ? ?
? ?
? ?
? ?
? ?
? ?
? ? ?
N ? ?
? ? ? ?
N ? ? ? ? ?
D ?
? ?
? ? ? ?
? ?
? ?
? ? ? ? fileChooser 1Lorg/apache/cayenne/modeler/action/ProjectOpener;
getActionName ()Ljava/lang/String; Code LineNumberTable +(Lorg/apache/cayenne/modeler/Application;)V LocalVariableTable this 0Lorg/apache/cayenne/modeler/action/SaveAsAction; application (Lorg/apache/cayenne/modeler/Application; =(Ljava/lang/String;Lorg/apache/cayenne/modeler/Application;)V name Ljava/lang/String; getAcceleratorKey ()Ljavax/swing/KeyStroke; saveAll ()Z newName oldName oldPref Ljava/util/prefs/Preferences; projPath newPref newProjectName p $Lorg/apache/cayenne/project/Project; oldPath
projectDir Ljava/io/File; url Ljava/net/URL; res )Lorg/apache/cayenne/resource/URLResource; saver )Lorg/apache/cayenne/project/ProjectSaver; isNewProject Z tempOldPref
Exceptions
performAction (Ljava/awt/event/ActionEvent;)V e Ljava/awt/event/ActionEvent; (I)V ex Ljava/lang/Exception; warningLevel I projectValidator 8Lorg/apache/cayenne/project/validation/ProjectValidator; validationResult 0Lorg/apache/cayenne/validation/ValidationResult;
enableForPath 7(Lorg/apache/cayenne/configuration/ConfigurationNode;)Z object 4Lorg/apache/cayenne/configuration/ConfigurationNode; project
SourceFile SaveAsAction.java
Save As... R S V ] /org/apache/cayenne/modeler/action/ProjectOpener V ? P Q java/awt/event/KeyEvent ? ? ? ? ? java/awt/event/ActionEvent ? ? ? ? ? ? ? ? ? ? ? ? ? S ? c c java/lang/StringBuilder .Can't save project - unable to write to file " " S Can't Save Project javax/swing/JOptionPane
? ? 'org/apache/cayenne/resource/URLResource V 'org/apache/cayenne/project/ProjectSaver ! ?"# .xml $%&'( S)*+,-. S/0 /1 ?2 ?3456789 ?: ? Dorg/apache/cayenne/modeler/dialog/validator/ValidationDisplayHandler z ~ 6org/apache/cayenne/project/validation/ProjectValidator;<=> b c java/lang/Exception *org/apache/cayenne/CayenneRuntimeException
Error on save java/lang/Object V?@ ?ABCDE ?FGHI ?J c .org/apache/cayenne/modeler/action/SaveAsAction -org/apache/cayenne/modeler/util/CayenneAction ()V java/awt/Toolkit getDefaultToolkit ()Ljava/awt/Toolkit; getMenuShortcutKeyMask ()I javax/swing/KeyStroke getKeyStroke (II)Ljavax/swing/KeyStroke; getCurrentProject &()Lorg/apache/cayenne/project/Project; "org/apache/cayenne/project/Project getConfigurationResource (()Lorg/apache/cayenne/resource/Resource; $org/apache/cayenne/resource/Resource getURL ()Ljava/net/URL; java/net/URL getPath &org/apache/cayenne/modeler/Application getFrame 2()Lorg/apache/cayenne/modeler/CayenneModelerFrame;
newProjectDir D(Ljava/awt/Frame;Lorg/apache/cayenne/project/Project;)Ljava/io/File; java/io/File exists canWrite append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString showMessageDialog <(Ljava/awt/Component;Ljava/lang/Object;Ljava/lang/String;I)V getProjectController 0()Lorg/apache/cayenne/modeler/ProjectController; ,org/apache/cayenne/modeler/ProjectController getProjectWatcher .()Lorg/apache/cayenne/modeler/ProjectWatchdog; *org/apache/cayenne/modeler/ProjectWatchdog
pauseWatching toURL (Ljava/net/URL;)V getApplication *()Lorg/apache/cayenne/modeler/Application; getInjector "()Lorg/apache/cayenne/di/Injector; org/apache/cayenne/di/Injector getInstance %(Ljava/lang/Class;)Ljava/lang/Object; getMainPreferenceForProject ()Ljava/util/prefs/Preferences; saveAs M(Lorg/apache/cayenne/project/Project;Lorg/apache/cayenne/resource/Resource;)V java/lang/String length equals (Ljava/lang/Object;)Z replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; getPreferenceForProject java/util/prefs/Preferences absolutePath node 1(Ljava/lang/String;)Ljava/util/prefs/Preferences; *org/apache/cayenne/pref/RenamedPreferences copyPreferences Z(Ljava/util/prefs/Preferences;Ljava/util/prefs/Preferences;Z)Ljava/util/prefs/Preferences; getNewProjectTemporaryName contains (Ljava/lang/CharSequence;)Z
removeNode removeNewPreferences getFrameController 7()Lorg/apache/cayenne/modeler/CayenneModelerController; 3org/apache/cayenne/modeler/CayenneModelerController addToLastProjListAction (Ljava/lang/String;)V .org/apache/cayenne/modeler/CayenneModelerFrame fireRecentFileListChanged reconfigure getRootNode 6()Lorg/apache/cayenne/configuration/ConfigurationNode; validate f(Lorg/apache/cayenne/configuration/ConfigurationNode;)Lorg/apache/cayenne/validation/ValidationResult; =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V projectSavedAction .org/apache/cayenne/validation/ValidationResult getFailures ()Ljava/util/List; java/util/List size ;org/apache/cayenne/modeler/dialog/validator/ValidatorDialog
showDialog C(Lorg/apache/cayenne/modeler/CayenneModelerFrame;Ljava/util/List;)V
getProject
isModified ! N O P Q R S T ? U 6 V W T A *? +? ? U
: ; X Y Z [ \ V ] T X *+,? *? Y? ? ? U > ? @ X Y Z ^ _ [ \ ` a T D S? ?
?? ? U C D E
C X Y Z b c T ? ?*?
LM+? ? +? ? ? M*? ? +? N-? ?-? ? 0-? ? )? ? Y? ? -? ? ? ? ? ?*? ? ? !-? ":? #Y? $:*? %? &'? ( ? ':+? ? ? 6:? *? %? ):+? * ,? ?,? +? },+? ? ? ? ,? j+? ? ? -.? /: ,-.? /:
*? ? 0:? 1
.? /:*? ? 0? Y? ? ? ? ? 2:
*? ? 0? 3W? ?? ?? |*? %? 4: ? 1 ? 5? f? 1? Y? 6? ? ? .? /:
+? ? ? -.? /:*? %? )? Y?
? ? ? ? 2:? 3W? 7? 8*? %? 9+? ? ? ? :? ? ;*? ? ? <? U ? 7 N P Q R U ' V + W - Z ; \ K ^ \ [ _ b a e k g q i | k ? n ? o ? p ? q ? t ? v ? w ? x ? z ? } ? ? ? ?, ?2 ?6 ?: ?= ?B ?G ?P ?] ?} ?~ ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? X ? ? O d _ ? E e _
? <