Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311702

Summary: Refactoring Entity6 to ent6 in class diagram gives errors
Product: [Technology] Tigerstripe Reporter: Duncan Keysell <dkeysell>
Component: DiagramsAssignee: Jim Strawn <jistrawn>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jistrawn, nmehrega
Version: 0.5   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Duncan Keysell CLA 2010-05-05 07:32:32 EDT
I created a class diagram and added an artifact to it called Entity6. I then changed the name of that artifact in the class diagram to ent6. I got the following Error message in the eclipse error log:

eclipse.buildId=unknown
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.modeling.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product


Error
Wed May 05 12:33:13 BST 2010
Could not decorate element.

Java Model Exception: Java Model Status [Entity6.java [in com.mycompany [in src [in scenarios]]] does not exist]
	at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:502)
	at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246)
	at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:515)
	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:252)
	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:238)
	at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:193)
	at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:207)
	at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:920)
	at org.eclipse.emf.mint.internal.ui.source.GeneratedElementDecorator.decorate(GeneratedElementDecorator.java:69)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:269)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
	at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:371)
	at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:331)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Jim Strawn CLA 2010-08-17 14:14:32 EDT
Hey Duncan,

I am unable to reproduce this (at this point the name "ent6" isn't allowed by ts. Could you take a quick look at this and let me know if it's still an issue (and if so, maybe give me a shove in the right direction)?

Thanks,
Jim
Comment 2 Duncan Keysell CLA 2010-08-18 10:18:27 EDT
Hi,
I don't get the exception anymore. It is invalid though that the wizard disables the Finish button while only giving a warning about "ent6". Either ent6 should be an error and then the finish button can be disabled or ent6 is a warning and the finish button should be enabled. However that is a completely different issue to this bug.

Duncan
Comment 3 Navid Mehregani CLA 2010-08-18 10:47:31 EDT
(In reply to comment #2)
> Hi,
> I don't get the exception anymore. It is invalid though that the wizard
> disables the Finish button while only giving a warning about "ent6". Either
> ent6 should be an error and then the finish button can be disabled or ent6 is a
> warning and the finish button should be enabled. However that is a completely
> different issue to this bug.
> 
> Duncan

I think this defect should be marked as a duplicate of bug#311695.  Please see my last comment in that bug.
Comment 4 Duncan Keysell CLA 2010-08-18 10:51:11 EDT
Hi,

I think this one can be closed now. The warning disabling the finish button is handled in the other bugzilla fine.

Duncan
Comment 5 Jim Strawn CLA 2010-08-18 11:39:44 EDT
Looks like this has been fixed in another release along the way.