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 186506 Details for
Bug 333985
Accessibility: Document how to enable F2 for direct editing
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.
Source snippet for enabling F2 in tutorial (quick and dirty)
enableF2ForDirectEditingForTutorial.txt (text/plain), 1.03 KB, created by
Michael Wenz
on 2011-01-11 09:54:45 EST
(
hide
)
Description:
Source snippet for enabling F2 in tutorial (quick and dirty)
Filename:
MIME Type:
Creator:
Michael Wenz
Created:
2011-01-11 09:54:45 EST
Size:
1.03 KB
patch
obsolete
> public ILocationInfo getLocationInfo(PictogramElement pe, ILocationInfo locationInfo) { > PictogramElement[] selectedPictogramElements = getDiagramTypeProvider().getDiagramEditor().getSelectedPictogramElements(); > if (selectedPictogramElements != null && selectedPictogramElements.length > 0) { > // Use the first selected pictogram element for direct editing > PictogramElement pictogramElement = selectedPictogramElements[0]; > if (pictogramElement instanceof ContainerShape) { > Object bo = getFeatureProvider().getBusinessObjectForPictogramElement(pictogramElement); > if (bo instanceof EClass) { > ContainerShape shape = (ContainerShape) pictogramElement; > // Found the root container shape of a class > Shape classNameShape = (shape).getChildren().get(1); > GraphicsAlgorithm classNameGA = classNameShape.getGraphicsAlgorithm(); > if (classNameGA instanceof Text) { > return new LocationInfo(classNameShape, classNameGA); > } > > } > } > } > return super.getLocationInfo(pe, locationInfo); > }
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 Raw
Actions:
View
Attachments on
bug 333985
: 186506