Override In Platform

190 views
Skip to first unread message

Akintayo Abiona Olusegun (Don)

unread,
May 15, 2012, 11:40:09 AM5/15/12
to codenameone...@googlegroups.com
The Override in platform feature seems to be broken. When I override in platform, it doesn't create the ovr in the override directory.

Thanks.


--
pǝʇɐʇs ǝsıʍɹǝɥʇo ssǝʃun ˙unƃǝsnʃO ˙∀ oʎɐʇuıʞ∀

Shai Almog

unread,
May 15, 2012, 2:39:40 PM5/15/12
to codenameone...@googlegroups.com
Did you save? The ovr is only created when saving.

Its possible you are experiencing this issue:
http://code.google.com/p/codenameone/issues/detail?id=3

Its remarkably hard to reproduce (doesn't happen on my machine). It happens to Chen occasionally but not when debugging which makes tracking this really difficult. 

Akintayo Abiona Olusegun (Don)

unread,
May 15, 2012, 6:47:56 PM5/15/12
to codenameone...@googlegroups.com
I did save, and I even un-installed the previous plugin, deleted the desinger.jar from my home directory/.codenameone and re-installed.

Same thing. When I save nothing happened.

Even for a project that it was working for earlier, it didn't work. When I selected the platform that I have the ovr for, nothing happened

It was working earlier.
--
You received this message because you are subscribed to the Google
Groups "CodenameOne Discussions" group.
 
For more information about Codename One please visit http://www.codenameone.com/
 
To post to this group, send email to
codenameone...@googlegroups.com
To unsubscribe from this group, send email to
codenameone-discu...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/codenameone-discussions?hl=en?hl=en

Shai Almog

unread,
May 16, 2012, 1:03:34 AM5/16/12
to codenameone...@googlegroups.com
Did you change your computer/OS/VM?
I'll look into this again and try to figure out what is going on.

Akintayo Abiona Olusegun (Don)

unread,
May 16, 2012, 4:45:57 AM5/16/12
to codenameone...@googlegroups.com
Nothing changed. I use a mac, the only thing I noticed was the last time I used the overrride, CN1 was in 1.4, now it's 1.6.


On Wednesday, May 16, 2012, Shai Almog wrote:
Did you change your computer/OS/VM?
I'll look into this again and try to figure out what is going on.

--
You received this message because you are subscribed to the Google
Groups "CodenameOne Discussions" group.
 
For more information about Codename One please visit http://www.codenameone.com/
 
To post to this group, send email to
codenameone...@googlegroups.com
To unsubscribe from this group, send email to
codenameone-discu...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/codenameone-discussions?hl=en?hl=en

Shai Almog

unread,
May 16, 2012, 8:23:08 AM5/16/12
to codenameone...@googlegroups.com
That's odd. I'm using a Mac myself. I tested it with both the standard VM and the 1.7 Oracle VM on my Air (Core i5) and couldn't reproduce this.

Are you seeing any exceptions if you use the generic JAR version?

Akintayo Abiona Olusegun (Don)

unread,
May 16, 2012, 9:40:30 AM5/16/12
to codenameone...@googlegroups.com
Didn't think of that earlier.

See the exception below.

Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1937)
        at com.codename1.designer.ResourceEditorView.getPlatformOverrideFile(ResourceEditorView.java:525)
        at com.codename1.designer.ResourceEditorView$10.actionPerformed(ResourceEditorView.java:435)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:567)
        at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:603)
        at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:831)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
        at java.awt.Component.processMouseEvent(Component.java:6375)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at com.apple.laf.AquaComboBoxPopup$1.processMouseEvent(AquaComboBoxPopup.java:132)
        at java.awt.Component.processEvent(Component.java:6140)
        at java.awt.Container.processEvent(Container.java:2083)
        at java.awt.Component.dispatchEventImpl(Component.java:4737)
        at java.awt.Container.dispatchEventImpl(Container.java:2141)
        at java.awt.Component.dispatchEvent(Component.java:4565)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
        at java.awt.Container.dispatchEventImpl(Container.java:2127)
        at java.awt.Window.dispatchEventImpl(Window.java:2482)
        at java.awt.Component.dispatchEvent(Component.java:4565)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
        at java.awt.EventQueue.access$000(EventQueue.java:85)
        at java.awt.EventQueue$1.run(EventQueue.java:643)
        at java.awt.EventQueue$1.run(EventQueue.java:641)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$2.run(EventQueue.java:657)
        at java.awt.EventQueue$2.run(EventQueue.java:655)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

On Wednesday, May 16, 2012, Shai Almog wrote:
That's odd. I'm using a Mac myself. I tested it with both the standard VM and the 1.7 Oracle VM on my Air (Core i5) and couldn't reproduce this.

Are you seeing any exceptions if you use the generic JAR version?

--
You received this message because you are subscribed to the Google
Groups "CodenameOne Discussions" group.
 
For more information about Codename One please visit http://www.codenameone.com/
 
To post to this group, send email to
codenameone...@googlegroups.com
To unsubscribe from this group, send email to
codenameone-discu...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/codenameone-discussions?hl=en?hl=en

Shai Almog

unread,
May 16, 2012, 10:07:36 AM5/16/12
to codenameone...@googlegroups.com
Ugh. That's one stupid bug!
Fixed.

I'm building and uploading a new release, should hopefully be online tonight.

Thanks!

Akintayo Abiona Olusegun (Don)

unread,
May 17, 2012, 12:11:16 PM5/17/12
to codenameone...@googlegroups.com
Is this fixed now?


On Wednesday, May 16, 2012, Shai Almog wrote:
--
You received this message because you are subscribed to the Google
Groups "CodenameOne Discussions" group.
 
For more information about Codename One please visit http://www.codenameone.com/
 
To post to this group, send email to
codenameone...@googlegroups.com
To unsubscribe from this group, send email to
codenameone-discu...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/codenameone-discussions?hl=en?hl=en

Shai Almog

unread,
May 17, 2012, 1:00:01 PM5/17/12
to codenameone...@googlegroups.com
It should be in the current version which I updated last night.

Mikhail Zemlyanukha

unread,
May 27, 2012, 6:22:51 AM5/27/12
to codenameone...@googlegroups.com
Seems that I even do not understand at all how this feature is
supposed to work - in resource editor I open my .res file, change
"override in platform" from "[base platform]" to "iOS", add a
resource, press 'save' and nothing is added to the 'override' folder.
If I restart the resource editor, "override in platform" resets to its
default value.

I checked stdout when run designer.jar from console, and I do not see
any errors there. Probably I'm doing something wrong?

Mike

On Thu, May 17, 2012 at 9:00 PM, Shai Almog <shai....@gmail.com> wrote:
> It should be in the current version which I updated last night.
>

Mikhail Zemlyanukha

unread,
May 27, 2012, 6:37:47 AM5/27/12
to codenameone...@googlegroups.com
I'm trying to follow video at
http://www.codenameone.com/themeing.html, but I can't switch the
editor to 'override' mode - when I select a platform to override, I do
not see the notice "base theme object. override to modify". How do you
do that?

Shai Almog

unread,
May 27, 2012, 8:30:27 AM5/27/12
to codenameone...@googlegroups.com
Its possible you are running into this issue:
http://code.google.com/p/codenameone/issues/detail?id=3

I still have no idea how to properly reproduce the issue. I think Chen is experiencing the issue differently so I'm not exactly sure if its the same issue.

Mikhail Zemlyanukha

unread,
May 27, 2012, 8:33:11 AM5/27/12
to codenameone...@googlegroups.com
I'm on Linux, not win7 as reported in that bug

Shai Almog

unread,
May 27, 2012, 8:35:21 AM5/27/12
to codenameone...@googlegroups.com
I doubt the bug is platform specific. I wasn't able to reproduce it on my Mac and it happens to Chen only sometimes. I'm guessing its a race condition somewhere but for the life of me I can't find it...

Mikhail Zemlyanukha

unread,
May 27, 2012, 9:00:21 AM5/27/12
to codenameone...@googlegroups.com
Some more info - I created a a new project with CN1 wizard and
selected 'GUI builder' project there. Resource editor _does_ work
correctly with 'override in platform' feature.

I if I create from 'hello world' template - it doesn't work.

Mike

Shai Almog

unread,
May 27, 2012, 9:25:43 AM5/27/12
to codenameone...@googlegroups.com
Interesting. I'll ask Chen to look in this thread and see if this is his issue...
Reply all
Reply to author
Forward
0 new messages