Bug 161042 - [GMFGraph]: Correct error mesage in case if Compartment has no figure
Summary: [GMFGraph]: Correct error mesage in case if Compartment has no figure
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Golubev CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-10-16 08:41 EDT by Michael Golubev CLA
Modified: 2010-07-19 22:21 EDT (History)
0 users

See Also:


Attachments
Fixes the subj (1.61 KB, patch)
2006-10-16 09:34 EDT, Michael Golubev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Golubev CLA 2006-10-16 08:41:25 EDT
Actually class CanvasProcessor contains following code: 

private void handleCompartments() throws InterruptedException {
  for (Iterator it = myInput.getCompartments().iterator(); it.hasNext();) {
    Compartment next = (Compartment) it.next();
    if (next.getFigure() instanceof Figure) {
      handleFigure((Figure) next.getFigure());
    } else {
      throw new IllegalStateException("Don't support accessors for compartments yet");
    }
  }
}

It throws exception with misleading message in case if Compartment#figure is not set. 

Originally posted in newsgroup at news://news.eclipse.org/egvel5$amc$1@utils.eclipse.org
Comment 1 Michael Golubev CLA 2006-10-16 09:34:12 EDT
Created attachment 52027 [details]
Fixes the subj
Comment 2 Alex Shatalin CLA 2006-10-16 11:00:28 EDT
patch reviewed and commited.
Comment 3 Eclipse Webmaster CLA 2010-07-19 22:21:49 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug