Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Exception (org.eclipse.jem.internal.proxy.initParser.Static.evaluate)
Exception (org.eclipse.jem.internal.proxy.initParser.Static.evaluate) [message #607246] Tue, 26 April 2005 11:18
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello Rich,



I think is is better to start a new thread concerning the exception.
And I see that you are right concerning my exception. The cause for it is
possibly my init string of my custom MyJLabel.

I would be so glad to get an explanation how to avoid the exception :-).


Here is the .xmi for my component:




------------------------------------------------------------ ------------
<expression
xsi:type=" org.eclipse.jem.internal.instantiation:PTClassInstanceCreati on "
type="mycomponents.MyJLabel">


<arguments
xsi:type="org.eclipse.jem.internal.instantiation:PTStringLiteral "
literalValue = "Appl_de_DE"/>


<arguments
xsi:type="org.eclipse.jem.internal.instantiation:PTStringLiteral "
literalValue = "IDENTS_tt"/>
</expression>


------------------------------------------------------------ ----------------



Here is a code that will be generated:



------------------------------------------------------------ -----------------

private MyJLabel getMyJLabel() {
if (myJLabel == null) {

myJLabel = new MyJLabel ("Appl_de_DE", "IDENTS_tt");
}
return myJLabel;
}


------------------------------------------------------------ -----------------


The class MyJLabel:

------------------------------------------------------------ ---------------

public class MyJLabel extends OurJLabel
{


public MyJLabel() {
super();
}

public MyJLabel(String resourceName, String resourceKey) {

super();

setText(TextManager.getString(resourceName, resourceKey));
}

------------------------------------------------------------ -----------------
There will be only the font for the label set in the class OurJLabel.



And here is the exception:

------------------------------------------------------------ ----------------


!ENTRY org.eclipse.jem.proxy 2 0 Apr 26, 2005 12:47:54.860
!MESSAGE java.lang.RuntimeException
at
org.eclipse.jem.internal.proxy.initParser.Static.evaluate(St atic.java:123)
at
org.eclipse.jem.internal.proxy.initParser.InitializationStri ngParser.evaluate(InitializationStringParser.java:157)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionHandler.r un(ConnectionHandler.java:239)
at
org.eclipse.jem.internal.proxy.vm.remote.ConnectionThread.ru n(ConnectionThread.java:47)




!ENTRY org.eclipse.ve.java.core 2 0 Apr 26, 2005 12:47:54.870
!MESSAGE
+++ Warning +++: Tue Apr 26 12:47:54 CEST 2005 Unable to create
enumeration value for SwingConstants.TOP



!ENTRY org.eclipse.ve.java.core 2 0 Apr 26, 2005 12:47:54.870
!MESSAGE Exception thrown.
!STACK 0
java.lang.InstantiationException: IWAV0125E "SwingConstants.TOP" is too
complicated to be evaluated
at
org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFa ctory.createBeanProxy(REMStandardBeanProxyFactory.java:262)
at
org.eclipse.jem.internal.proxy.remote.REMAbstractBeanTypePro xy.newInstance(REMAbstractBeanTypeProxy.java:323)
at
org.eclipse.jem.internal.proxy.remote.REMIntegerTypeBeanType Proxy.newInstance(REMIntegerTypeBeanTypeProxy.java:103)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tEnumeratedValues(EnumeratedLabelProvider.java:51)
at
org.eclipse.ve.internal.java.core.EnumeratedLabelProvider.ge tText(EnumeratedLabelProvider.java:91)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.getValueAsString(AbstractPropertySheetEntry.java:722)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateEn try(PropertySheetViewer.java:1123)
at
org.eclipse.ui.views.properties.PropertySheetViewer.createIt em(PropertySheetViewer.java:346)
at
org.eclipse.ui.views.properties.PropertySheetViewer.updateCh ildrenOf(PropertySheetViewer.java:1078)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$2 (PropertySheetViewer.java:999)
at
org.eclipse.ui.views.properties.PropertySheetViewer$2.childE ntriesChanged(PropertySheetViewer.java:298)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.fireChildEntriesChanged(AbstractPropertySheetEntry.java :373)
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.refreshChildEntries(AbstractPropertySheetEntry.java:831 )
at
org.eclipse.ve.internal.propertysheet.AbstractPropertySheetE ntry.setValues(AbstractPropertySheetEntry.java:1013)
at
org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:805)
at
org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:370)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.superSelectionChanged(EToolsPropertySheetPage.java:254)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e.access$2(EToolsPropertySheetPage.java:247)
at
org.eclipse.ve.internal.propertysheet.EToolsPropertySheetPag e$1.run(EToolsPropertySheetPage.java:240)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:106)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:2749)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2434)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
------------------------------------------------------------ -----------------





Thank you in advance
Elena
Previous Topic:ve doesnt start
Next Topic:ve doesnt start
Goto Forum:
  


Current Time: Fri Apr 19 23:15:00 GMT 2024

Powered by FUDForum. Page generated in 0.03378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top