Bug 140899 - gmfgraph.BasicFont should have reasonable default values for faceName, style and height properties
Summary: gmfgraph.BasicFont should have reasonable default values for faceName, style ...
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-05-09 15:15 EDT by Michael Golubev CLA
Modified: 2010-07-19 22:22 EDT (History)
1 user (show)

See Also:


Attachments
Fixes the subj (12.58 KB, patch)
2006-05-16 14:49 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-05-09 15:15:49 EDT
Actually it is not clear how to setup properties for BasicFont instance (see, e.g. see news:e3pu3l$var$1@utils.eclipse.org). Font instance with missed facename or height can not be used correctly by generator.
Expected: BasicFont instances should have reasonable defaults to allow users just change style for Italic without guessing other properties.
Comment 1 Artem Tikhomirov CLA 2006-05-15 07:54:02 EDT
Although default value for facename might be tricky given different font names for different platforms
Comment 2 Michael Golubev CLA 2006-05-16 14:49:55 EDT
Created attachment 41624 [details]
Fixes the subj

Default style and height are provided at the model level. 
Default font name requires SWT dependency and provided at the codegeneration level. 
Test added
Comment 3 Artem Tikhomirov CLA 2006-05-17 07:28:06 EDT
reviewed and committed
Comment 4 Eclipse Webmaster CLA 2010-07-19 22:22:59 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Models was the original product and component for this bug