Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 183374 Details for
Bug 148402
[GMFGraph] Generated code should not create unlimited number of SWT Font and Color instances
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Suggested patch for XPand templates
bug148402txt (text/plain), 1.97 KB, created by
Mickael Istria
on 2010-11-18 06:34:45 EST
(
hide
)
Description:
Suggested patch for XPand templates
Filename:
MIME Type:
Creator:
Mickael Istria
Created:
2010-11-18 06:34:45 EST
Size:
1.97 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.graphdef.codegen >Index: templates/attr/Figure.xpt >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.gmp/org.eclipse.gmf.tooling/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt,v >retrieving revision 1.7 >diff -u -r1.7 Figure.xpt >--- templates/attr/Figure.xpt 9 Mar 2010 21:38:40 -0000 1.7 >+++ templates/attr/Figure.xpt 18 Nov 2010 11:32:25 -0000 >@@ -8,6 +8,7 @@ > * > * Contributors: > * Artem Tikhomirov (Borland) - initial API and implementation >+ * Mickael Istria (BonitaSoft S.A.) - Bug 148402 > */ > «IMPORT 'http://www.eclipse.org/gmf/2006/GraphicalDefinition'» > >@@ -70,7 +71,7 @@ > /** > * @generated > */ >-static final org.eclipse.swt.graphics.Color «variableName» = new org.eclipse.swt.graphics.Color(null, «red», «green», «blue»); >+static final org.eclipse.swt.graphics.Color «variableName» = org.eclipse.gmf.runtime.draw2d.ui.graphics.ColorRegistry.getInstance().getColor(new org.eclipse.swt.graphics.RGB(«red», «green», «blue»)); > «ENDFILE» > «ENDDEFINE» > >@@ -85,7 +86,7 @@ > /** > * @generated > */ >-static final org.eclipse.swt.graphics.Font «variableName» = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), «IF null = faceName or faceName.trim().size() = 0»org.eclipse.swt.widgets.Display.getDefault().getSystemFont().getFontData()[0].getName()«ELSE»"«faceName»"«ENDIF», «height», org.eclipse.swt.SWT.«style»); >+static final org.eclipse.swt.graphics.Font «variableName» = org.eclipse.gmf.runtime.draw2d.ui.internal.graphics.FontRegistry.getInstance().getFont(org.eclipse.swt.widgets.Display.getCurrent(), new org.eclipse.swt.graphics.FontData(«IF null = faceName or faceName.trim().size() = 0»org.eclipse.swt.widgets.Display.getDefault().getSystemFont().getFontData()[0].getName()«ELSE»"«faceName»"«ENDIF», «height», org.eclipse.swt.SWT.«style»)); > «ENDFILE» > «ENDLET» > «ENDDEFINE»
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148402
:
45186
|
45304
| 183374