FAQ
Hi Olga,

I'm afraid "open project" menu item doesn't work anymore:
java.lang.NullPointerException
at
org.apache.cayenne.modeler.Application.getMainPreferenceForProject(Application.java:263)
at
org.apache.cayenne.modeler.util.CayenneController.getViewPreferences(CayenneController.java:109)
at
org.apache.cayenne.modeler.util.CayenneController.getLastDirectory(CayenneController.java:92)
at
org.apache.cayenne.modeler.action.ProjectOpener.getDefaultStartDir(ProjectOpener.java:158)
at
org.apache.cayenne.modeler.action.ProjectOpener.openProjectFile(ProjectOpener.java:132)
at
org.apache.cayenne.modeler.action.OpenProjectAction.performAction(OpenProjectAction.java:96)

2010/3/3 <oltka@apache.org>
Author: oltka
Date: Wed Mar 3 13:26:27 2010
New Revision: 918465

URL: http://svn.apache.org/viewvc?rev=918465&view=rev
Log:
CAY-1327 Migrate HSQLDB modeler preferences to Java preferences API

Modified:

cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java

Modified:
cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
URL:
http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java?rev=918465&r1=918464&r2=918465&view=diff

==============================================================================
---
cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
(original)
+++
cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
Wed Mar 3 13:26:27 2010
@@ -82,7 +82,7 @@
FSPath path = (FSPath) application
.getCayenneProjectPreferences()
.getProjectDetailObject(
- DataMapDefaults.class,
+ FSPath.class,
getViewPreferences().node("lastEOMDir"));

if (path.getPath() == null) {


--
Andrey

Search Discussions

  • Ольга Ткачева at Mar 3, 2010 at 9:24 pm
    Thanks, I will look it tomorrow morning.

    2010/3/3 Andrey Razumovsky <razumovsky.andrey@gmail.com>
    Hi Olga,

    I'm afraid "open project" menu item doesn't work anymore:
    java.lang.NullPointerException
    at

    org.apache.cayenne.modeler.Application.getMainPreferenceForProject(Application.java:263)
    at

    org.apache.cayenne.modeler.util.CayenneController.getViewPreferences(CayenneController.java:109)
    at

    org.apache.cayenne.modeler.util.CayenneController.getLastDirectory(CayenneController.java:92)
    at

    org.apache.cayenne.modeler.action.ProjectOpener.getDefaultStartDir(ProjectOpener.java:158)
    at

    org.apache.cayenne.modeler.action.ProjectOpener.openProjectFile(ProjectOpener.java:132)
    at

    org.apache.cayenne.modeler.action.OpenProjectAction.performAction(OpenProjectAction.java:96)

    2010/3/3 <oltka@apache.org>
    Author: oltka
    Date: Wed Mar 3 13:26:27 2010
    New Revision: 918465

    URL: http://svn.apache.org/viewvc?rev=918465&view=rev
    Log:
    CAY-1327 Migrate HSQLDB modeler preferences to Java preferences API

    Modified:

    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
    Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
    URL:
    http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java?rev=918465&r1=918464&r2=918465&view=diff
    ==============================================================================
    ---
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
    (original)
    +++
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/CayenneModelerController.java
    Wed Mar 3 13:26:27 2010
    @@ -82,7 +82,7 @@
    FSPath path = (FSPath) application
    .getCayenneProjectPreferences()
    .getProjectDetailObject(
    - DataMapDefaults.class,
    + FSPath.class,
    getViewPreferences().node("lastEOMDir"));

    if (path.getPath() == null) {


    --
    Andrey


    --
    Olga Tkacheva

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedMar 3, '10 at 6:30p
activeMar 3, '10 at 9:24p
posts2
users2
websitecayenne.apache.org

People

Translate

site design / logo © 2022 Grokbase