Q7

Error removing a reference from supercontext to a context during context removal

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.20
  • Fix Version/s: 1.3.4
  • Component/s: Core, UI
  • Labels:
    None
  • Test Mode:
    Manual

Description

Steps to reproduce:

  1. Create workspace context c1
  2. Create workspace super context s1
  3. Add c1 to s1
  4. Delete c1 from Q7 Explorer, make sure that "Delete references" checkbox is set.

An error occurs:

java.lang.reflect.InvocationTargetException
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
	at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:331)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:605)
	at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:153)
	at com.xored.q7.ui.refactoring.delete.DeleteQ7ElementInputPage.performFinish(DeleteQ7ElementInputPage.java:184)
	at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:678)
	at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:455)
        ...
Caused by: java.lang.IllegalArgumentException
	at com.xored.q7.ui.refactoring.delete.AbstractDeleteContextReferenceChange.getContextsReferences(AbstractDeleteContextReferenceChange.java:78)
	at com.xored.q7.ui.refactoring.delete.DeleteContextReferenceChange.isValid(DeleteContextReferenceChange.java:92)
	at com.xored.q7.ui.refactoring.delete.DeleteContextReferenceChange.isValid(DeleteContextReferenceChange.java:77)
	at org.eclipse.ltk.core.refactoring.CompositeChange.isValid(CompositeChange.java:239)
	at org.eclipse.ltk.core.refactoring.CompositeChange.isValid(CompositeChange.java:239)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:247)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:306)
	at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:92)
	at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:218)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Activity

There are no comments yet on this issue.

People

  • Assignee:
    alexander.sheboltaev
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    10/Jun/13 7:54 PM
    Updated:
    11/Jun/13 11:32 AM
    Resolved:
    11/Jun/13 11:32 AM