The code of method getNodeVisualID(View, EObject) is exceeding the 65535 bytes limit [message #651290] |
Fri, 28 January 2011 18:06 |
Elhamlaoui Mahmoud Messages: 268 Registered: March 2010 |
Senior Member |
|
|
HI,
while generating gmf codes i got the flowing error in the ApplicationVisualIDRegistry, i tried to modify the template
instead of:
Quote: |
switch (containerVisualID) {
case HtmlGM.diagram.edit.parts.PageEditPart.VISUAL_ID:
if (HtmlGM.HtmlGMPackage.eINSTANCE.getHtml().isSuperTypeOf(
domainElement.eClass())) {
return HtmlGM.diagram.edit.parts.ApplicationEditPart.VISUAL_ID;
}
|
i try to have something like:
Quote: |
switch (containerVisualID) {
case HtmlGM.diagram.edit.parts.PageEditPart.VISUAL_ID:
return getViewChildrenForApplicationEditPart(domainElement);
}
|
and to have this method defined outside
Quote: |
private static int getViewChildrenForApplicationEditPart(EObject domainElement) {
if (HtmlGM.HtmlGMPackage.eINSTANCE.getHtml().isSuperTypeOf(
domainElement.eClass()))
return HtmlGM.diagram.edit.parts.ApplicationEditPart.VISUAL_ID;
return -1;
}
|
so i change the template :
Quote: |
«DEFINE genAllMethodNodeCase FOR gmfgen::GenDiagram»
«EXPAND caseMethod FOREACH getAllContainers()-»
«ENDDEFINE»
«DEFINE caseMethod FOR gmfgen::GenContainerBase-»
«EXPAND caseMethodNodeNode FOREACH getContainedSemanticNodes(self)-»
«ENDDEFINE»
«DEFINE caseMethodNodeNode FOR gmfgen::GenCommonBase»
private static int getViewChildrenFor«self.editPartClassName»«e»(org.eclips e.emf.ecore.EObject domainElement){
if («EXPAND checkSemanticElement»)return «EXPAND visualID»;
return -1;
}
«ENDDEFINE»
|
but it genarete several method with the same name giving the following error:
Quote: |
Duplicate method getViewChildrenApplicationEditPart(EObject) in type ApplicationVisualIDRegistry
|
any ideas how i could solve this problem
thanks
[Updated on: Fri, 28 January 2011 18:07] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03264 seconds