You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/09/10 22:15:18 UTC
svn commit: r813573 -
/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java
Author: tvolkert
Date: Thu Sep 10 20:15:17 2009
New Revision: 813573
URL: http://svn.apache.org/viewvc?rev=813573&view=rev
Log:
PIVOT-289 :: Partition x,y,width,height cached values by application class name
Modified:
incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java
Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java?rev=813573&r1=813572&r2=813573&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java Thu Sep 10 20:15:17 2009
@@ -265,10 +265,13 @@
if (!cancelShutdown) {
try {
Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
+ preferences = preferences.node(applicationClassName);
+
preferences.putInt(X_ARGUMENT, windowedHostFrame.getX());
preferences.putInt(Y_ARGUMENT, windowedHostFrame.getY());
preferences.putInt(WIDTH_ARGUMENT, windowedHostFrame.getWidth());
preferences.putInt(HEIGHT_ARGUMENT, windowedHostFrame.getHeight());
+
preferences.flush();
} catch (SecurityException exception) {
// No-op
@@ -314,6 +317,8 @@
try {
Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
+ preferences = preferences.node(applicationClassName);
+
x = preferences.getInt(X_ARGUMENT, x);
y = preferences.getInt(Y_ARGUMENT, y);
width = preferences.getInt(WIDTH_ARGUMENT, width);