You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by Andrus Adamchik <an...@objectstyle.org> on 2009/10/01 14:13:56 UTC

Re: [jira] Updated: (CAY-1284) Update Cayenne Modeler to use the AWT file dialog on OS X.

Hi Michael,

> Update CM to conditionally check which OS and display the  
> appropriate dialog for OS X.


I mentioned that before in the discussion about OS X menus  
customizations, and let me bring it up again. If possible let's avoid  
OS checking in the core Modeler code, and implement any OS-specific  
extensions as overrides in the corresponding OS specific modules, in  
this case "org.apache.cayenne:cayenne-modeler-mac-ext". Let's keep our  
code clean.

Andrus


On Oct 1, 2009, at 3:05 PM, Michael Gentry (JIRA) wrote:

>
>     [ https://issues.apache.org/jira/browse/CAY-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>  ]
>
> Michael Gentry updated CAY-1284:
> --------------------------------
>
>       Assignee:     (was: Michael Gentry)
>    Description:
> On OS X, the AWT file dialog is mapped to the standard system dialog  
> by Apple.  The Swing file dialog is a much less usable (and foreign)  
> version.  Update CM to conditionally check which OS and display the  
> appropriate dialog for OS X.
>
>
>  was:
> The Ordering class currently takes booleans to indicate ascending/ 
> descending and case sensitive/insensitive.  When reading the code,  
> it is impossible to know what "true" and "false" actually mean  
> unless you are familiar with the API.  Update the class to use  
> descriptive enums instead of boolean flags.
>
>
>    Environment: OS X  (was: All.)
>        Summary: Update Cayenne Modeler to use the AWT file dialog on  
> OS X.  (was: Update Ordering to take enums instead of boolean flags.)
>
>> Update Cayenne Modeler to use the AWT file dialog on OS X.
>> ----------------------------------------------------------
>>
>>                Key: CAY-1284
>>                URL: https://issues.apache.org/jira/browse/CAY-1284
>>            Project: Cayenne
>>         Issue Type: Improvement
>>         Components: CayenneModeler GUI
>>   Affects Versions: 3.0M6
>>        Environment: OS X
>>           Reporter: Michael Gentry
>>           Priority: Minor
>>            Fix For: Short term future
>>
>>
>> On OS X, the AWT file dialog is mapped to the standard system  
>> dialog by Apple.  The Swing file dialog is a much less usable (and  
>> foreign) version.  Update CM to conditionally check which OS and  
>> display the appropriate dialog for OS X.
>
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


Re: [jira] Updated: (CAY-1284) Update Cayenne Modeler to use the AWT file dialog on OS X.

Posted by Michael Gentry <mg...@masslight.net>.
Hi Andrus,

If it can go into that project cleanly, I'm all for it.  I'm just
trying to document a few of the issues I'm noticing.  That was one of
the annoyances I discovered the other day when I had to rebuild my
preferences.  The AWT file dialog works much better on OS X since it
includes the Places/etc you have defined in the Finder.

mrg


On Thu, Oct 1, 2009 at 8:13 AM, Andrus Adamchik <an...@objectstyle.org> wrote:
> Hi Michael,
>
>> Update CM to conditionally check which OS and display the appropriate
>> dialog for OS X.
>
>
> I mentioned that before in the discussion about OS X menus customizations,
> and let me bring it up again. If possible let's avoid OS checking in the
> core Modeler code, and implement any OS-specific extensions as overrides in
> the corresponding OS specific modules, in this case
> "org.apache.cayenne:cayenne-modeler-mac-ext". Let's keep our code clean.
>
> Andrus
>
>
> On Oct 1, 2009, at 3:05 PM, Michael Gentry (JIRA) wrote:
>
>>
>>    [
>> https://issues.apache.org/jira/browse/CAY-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>>
>> Michael Gentry updated CAY-1284:
>> --------------------------------
>>
>>      Assignee:     (was: Michael Gentry)
>>   Description:
>> On OS X, the AWT file dialog is mapped to the standard system dialog by
>> Apple.  The Swing file dialog is a much less usable (and foreign) version.
>>  Update CM to conditionally check which OS and display the appropriate
>> dialog for OS X.
>>
>>
>>  was:
>> The Ordering class currently takes booleans to indicate
>> ascending/descending and case sensitive/insensitive.  When reading the code,
>> it is impossible to know what "true" and "false" actually mean unless you
>> are familiar with the API.  Update the class to use descriptive enums
>> instead of boolean flags.
>>
>>
>>   Environment: OS X  (was: All.)
>>       Summary: Update Cayenne Modeler to use the AWT file dialog on OS X.
>>  (was: Update Ordering to take enums instead of boolean flags.)
>>
>>> Update Cayenne Modeler to use the AWT file dialog on OS X.
>>> ----------------------------------------------------------
>>>
>>>               Key: CAY-1284
>>>               URL: https://issues.apache.org/jira/browse/CAY-1284
>>>           Project: Cayenne
>>>        Issue Type: Improvement
>>>        Components: CayenneModeler GUI
>>>  Affects Versions: 3.0M6
>>>       Environment: OS X
>>>          Reporter: Michael Gentry
>>>          Priority: Minor
>>>           Fix For: Short term future
>>>
>>>
>>> On OS X, the AWT file dialog is mapped to the standard system dialog by
>>> Apple.  The Swing file dialog is a much less usable (and foreign) version.
>>>  Update CM to conditionally check which OS and display the appropriate
>>> dialog for OS X.
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>
>