1.2.3GA: "Edit Fame" in ScrolledComposite

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

1.2.3GA: "Edit Fame" in ScrolledComposite

Postby cebarne2 » Tue Feb 10, 2004 6:50 am

Nothing happens when I click "Edit Frame" in my scrolled composite. The following exception occurs in the log:

Code: Select all
!ENTRY com.swtdesigner 4 4 Feb 10, 2004 08:44:20.945
!MESSAGE Designer internal error: null
   at org.eclipse.ui.part.FileEditorInput.equals(FileEditorInput.java:46)
   at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:244)
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2006)
   at org.eclipse.ui.internal.WorkbenchPage.access$6(WorkbenchPage.java:2004)
   at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1991)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1986)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1919)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:1911)
   at com.swtdesigner.model.util.e.run(SourceFile:272)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
   at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
   at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
   at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
   at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
   at org.eclipse.core.launcher.Main.run(Main.java:747)
   at org.eclipse.core.launcher.Main.main(Main.java:583)

Here is a bit of code where I use my custom frames in the ScrolledComposites:

Code: Select all
            final TabItem tabBuildPaths = new TabItem(tabFolder, SWT.NONE);
            tabBuildPaths.setText("Build Paths");
               final ScrolledComposite scrolledComposite = new ScrolledComposite(tabFolder, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
                  pgBuildPaths = new buildPaths(scrolledComposite, SWT.NONE);
                  pgBuildPaths.setSize(735, 303);
            final TabItem tabPathsSymbols = new TabItem(tabFolder, SWT.NONE);
            tabPathsSymbols.setText("Paths && Symbols");
               final ScrolledComposite scrolledComposite = new ScrolledComposite(tabFolder, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
                  final PathsAndSymbols pathsAndSymbols = new PathsAndSymbols(scrolledComposite, SWT.NONE);
                  pathsAndSymbols.setSize(735, 303);

Something wrong on my end, or yours? :wink:

Posts: 67
Joined: Tue Sep 23, 2003 10:11 am
Location: Cedar Rapids, IA

Postby admin » Wed Feb 11, 2004 12:06 am

I can not reproduce this. Can you provide separate test case and/or may be describe more specific your environment?
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby cebarne2 » Wed Feb 11, 2004 5:54 am

Here's the low-down on my environment:

-Windows XP
-Eclipse 2.1.2
-Java 1.4.1_05
-SWT Designer 1.2.3 GA

And, here is a list of plug-ins:


I'll try to email the project directly to you.

Posts: 67
Joined: Tue Sep 23, 2003 10:11 am
Location: Cedar Rapids, IA

Postby cebarne2 » Thu Feb 12, 2004 5:34 am

Yes, we can reproduce it 2.1.2, we for 3.0 we don't have such
problem. We will try to fix it for 2.1.2, in mean time you could use
3.0, if this is possible in your project.

Best regards,

Our current installed-base is 2.1.x, so am very interested in a fix.

Thank you for your support on this issue.
Posts: 67
Joined: Tue Sep 23, 2003 10:11 am
Location: Cedar Rapids, IA

Postby Eric Clayberg » Thu Feb 12, 2004 11:56 am

cebarne2 wrote:Our current installed-base is 2.1.x, so am very interested in a fix.

With the sample code you sent, it seems to be working for me under both 2.1.2 and 3.0 (this may be due to another bug fix that we made recently). I will post a new build for you to try very soon. Watch this forum for the announcment.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest