Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ve-dev] Adding JButton from canvas to JFrame

Hi Rich,
 
I did not override anything from jfc/awt. The problem occurs only on target workbench when debugging. I want to see the commands generated while adding and removing components to JFrame from and to canvas.
 
The problem does not happen when running VE directly in the IDE.
 
Thanks and regards,
 
Janak
-----Original Message-----
From: ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx]On Behalf Of Rich Kulp
Sent: Wednesday, November 15, 2006 8:22 PM
To: Discussions people developing code for the Visual Editor project
Subject: RE: [ve-dev] Adding JButton from canvas to JFrame


HI Janak,

Did you override any override files for jfc components? That should be working unless something overrode and modified the basic jfc/awt overrides or beaninfo.

Rich


"Janak Mulani" <janak.mulani@xxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx

11/15/2006 07:15 AM

Please respond to
Discussions people developing code for the Visual Editor project        <ve-dev@xxxxxxxxxxx>

To
"Discussions people developing code for the Visual Editor project" <ve-dev@xxxxxxxxxxx>
cc
Subject
RE: [ve-dev] Adding JButton from canvas to JFrame





Hi,

It happens when running VE in target platform in plugin development
environment.

In fact dropping a component directly into frame also does not work.

There is an exception:

!ENTRY org.eclipse.ui 4 0 2006-11-15 17:34:44.843
!MESSAGE The feature 'constraint' is not a valid changeable feature
!STACK 0
java.lang.IllegalArgumentException: The feature 'constraint' is not a valid
changeable feature
                at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eOpenSet(BasicEObjectImpl.java:7
26)
                at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:657)
                at
org.eclipse.ve.internal.jfc.core.LayoutPolicyHelper.getCreateChildCommand(La
youtPolicyHelper.java:72)
                at
org.eclipse.ve.internal.jfc.core.BorderLayoutPolicyHelper.getCreateChildComm
and(BorderLayoutPolicyHelper.java:269)
                at
org.eclipse.ve.internal.jfc.core.BorderLayoutEditPolicy.createCreateCommand(
BorderLayoutEditPolicy.java:145)
                at
org.eclipse.ve.internal.jfc.core.BorderLayoutEditPolicy.getCreateCommand(Bor
derLayoutEditPolicy.java:245)
                at
org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(LayoutEditPolicy.ja
va:199)
                at
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.getCommand(Constrai
nedLayoutEditPolicy.java:154)
                at
org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:
473)
                at org.eclipse.gef.tools.TargetingTool.getCommand(TargetingTool.java:122)
                at org.eclipse.gef.tools.CreationTool.handleMove(CreationTool.java:239)
                at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.java:1038)
                at org.eclipse.gef.EditDomain.mouseMove(EditDomain.java:248)
                at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEven
tDispatcher.java:359)
                at
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSyste
m.java:533)
                at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:145)
                at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
                at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
                at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
                at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
                at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
                at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
                at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.
java:78)
                at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
EclipseAppLauncher.java:92)
                at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAp
pLauncher.java:68)
                at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
                at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
                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.invokeFramework(Main.java:336)
                at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
                at org.eclipse.core.launcher.Main.run(Main.java:977)
                at org.eclipse.core.launcher.Main.main(Main.java:952)

>-----Original Message-----
>From: ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx]On
>Behalf Of Janak Mulani
>Sent: Wednesday, November 15, 2006 5:20 PM
>To: ve-Dev@Eclipse. Org
>Subject: [ve-dev] Adding JButton from canvas to JFrame
>
>
>Hi,
>
>In VE 1.2, if I have JButton on canvas and I drag it to JFrame on the
>canvas, it does not allow the drop to happen.
>
>This was not the case in VE 1.1.
>
>Is this intentional?
>
>Thanks and regards,
>
>Janak
>
>_______________________________________________
>ve-dev mailing list
>ve-dev@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/ve-dev

_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top