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 71924 Details for
Bug 193178
Generated Code does not compile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
NavigatorLabelProvider.xpt
nlp-193178.patch (text/plain), 1.74 KB, created by
Artem Tikhomirov
on 2007-06-20 12:20:51 EDT
(
hide
)
Description:
NavigatorLabelProvider.xpt
Filename:
MIME Type:
Creator:
Artem Tikhomirov
Created:
2007-06-20 12:20:51 EDT
Size:
1.74 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gmf.codegen >Index: templates/xpt/navigator/NavigatorLabelProvider.xpt >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.gmf/plugins/org.eclipse.gmf.codegen/templates/xpt/navigator/NavigatorLabelProvider.xpt,v >retrieving revision 1.2 >diff -u -r1.2 NavigatorLabelProvider.xpt >--- templates/xpt/navigator/NavigatorLabelProvider.xpt 12 Jun 2007 10:58:05 -0000 1.2 >+++ templates/xpt/navigator/NavigatorLabelProvider.xpt 20 Jun 2007 15:40:23 -0000 >@@ -272,7 +272,21 @@ > «ERROR "Empty list of labels passed"-» > «ENDIF-» > «LET (gmfgen::GenLabel) labels.first() AS label-» >+ «REM»FIXME: Refactor. This is a fast copy of getDiagramLabelText template (below) to fix #193178. Need to reuse parts of TextAware.xpt«ENDREM» >+ «IF label.modelFacet == null-» >+ org.eclipse.core.runtime.IAdaptable hintAdapter = new «getDiagram().getParserProviderQualifiedClassName()».HintAdapter( >+ «getDiagram().getElementTypesQualifiedClassName()».«getUniqueIdentifier()», >+ (view.getElement() != null ? view.getElement() : view), >+ «EXPAND xpt::editor::VisualIDRegistry::getTypeMethodCall FOR label.getDiagram()»(«EXPAND xpt::editor::VisualIDRegistry::visualID FOR label»)); >+ org.eclipse.gmf.runtime.common.ui.services.parser.IParser parser = org.eclipse.gmf.runtime.common.ui.services.parser.ParserService.getInstance().getParser(hintAdapter); >+ if (parser != null) { >+ return parser.getPrintString(hintAdapter, org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions.NONE.intValue()); >+ } else { >+ «EXPAND returnEmptyString-» >+ } >+ «ELSE-» > «EXPAND getDiagramLabelText(this, label) FOR label.modelFacet-» >+ «ENDIF» > «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 193178
:
71728
| 71924