After adding a “pager” on a custom control I’m no longer able to edit the design. When I try to open my design-elements (both custom controls and corresponding xPage) I get the message: " Could not open the editor: Index does not exist ".There is also a detail button which gives a long list of eclipse/java errors. The first one is “java.lang.IndexOutOfBoundsException: Index does not exist”.
If I open the xPage in a browser it looks ok. So it seems to “be there”, but unable to open in designer.
I know this is an old post but I am having the same issue. After adding a pager to a tabbed panel I am getting the "Could not open the editor: Index does not exist " error. There are other tabbed panels that have a pager that are not causing the issue. I can compare the custom control to a blank one and remove the pager and the error is gone. Are there any written rules on using pagers and issues they may cause?
I don’t know how to fix the “corrupt” design elements, but I found a way to re-create them.
From the outline-entry ‘Custom controls’ in the designer I could right-click on my corrupt element and select ‘Compare with’ - ‘Local history’. By selecting an entry the source-code was displayed. I copied the text, created a new custom control and removed my pager before I saved it.
I had this problem yesterday, don’t really know why, but another way to solve this is to open the Java perspective and from there you’ll have access to the socurce of your control. Remove the pager part, save the control, and in theory you’ll be able to open it in the Designer perspective again (you’ll have to add the pager again).
I use the XML editor to edit the source code. To do this: Window->Show Eclipse Views->Other…->Java->Package Explorer, find the XPage/Custom Control and double click it.