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 186908 Details for
Bug 327891
Feedback for creating connections incorrect when zoom is not 100%
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.
Modified ShapesEditorActionBarContributor.java to demonstrate problem.
ShapesEditorActionBarContributor.java (text/plain), 2.61 KB, created by
Marcel Romijn
on 2011-01-17 10:24:03 EST
(
hide
)
Description:
Modified ShapesEditorActionBarContributor.java to demonstrate problem.
Filename:
MIME Type:
Creator:
Marcel Romijn
Created:
2011-01-17 10:24:03 EST
Size:
2.61 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2004, 2005 Elias Volanakis and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: > * Elias Volanakis - initial API and implementation > *******************************************************************************/ >package org.eclipse.gef.examples.shapes; > >import org.eclipse.gef.editparts.ZoomManager; >import org.eclipse.gef.ui.actions.ActionBarContributor; >import org.eclipse.gef.ui.actions.DeleteRetargetAction; >import org.eclipse.gef.ui.actions.RedoRetargetAction; >import org.eclipse.gef.ui.actions.UndoRetargetAction; >import org.eclipse.gef.ui.actions.ZoomComboContributionItem; >import org.eclipse.gef.ui.actions.ZoomInRetargetAction; >import org.eclipse.gef.ui.actions.ZoomOutRetargetAction; >import org.eclipse.jface.action.IToolBarManager; >import org.eclipse.jface.action.Separator; >import org.eclipse.ui.actions.ActionFactory; > >/** > * Contributes actions to a toolbar. This class is tied to the editor in the > * definition of editor-extension (see plugin.xml). > * > * @author Elias Volanakis > */ >public class ShapesEditorActionBarContributor extends ActionBarContributor { > > /** > * Create actions managed by this contributor. > * > * @see org.eclipse.gef.ui.actions.ActionBarContributor#buildActions() > */ > protected void buildActions() { > addRetargetAction(new DeleteRetargetAction()); > addRetargetAction(new UndoRetargetAction()); > addRetargetAction(new RedoRetargetAction()); > > addRetargetAction(new ZoomInRetargetAction()); > addRetargetAction(new ZoomOutRetargetAction()); > } > > /** > * Add actions to the given toolbar. > * > * @see org.eclipse.ui.part.EditorActionBarContributor#contributeToToolBar(org.eclipse.jface.action.IToolBarManager) > */ > public void contributeToToolBar(IToolBarManager toolBarManager) { > toolBarManager.add(getAction(ActionFactory.UNDO.getId())); > toolBarManager.add(getAction(ActionFactory.REDO.getId())); > > toolBarManager.add(new Separator()); > String[] zoomStrings = new String[] { ZoomManager.FIT_ALL, > ZoomManager.FIT_HEIGHT, ZoomManager.FIT_WIDTH }; > toolBarManager.add(new ZoomComboContributionItem(getPage(), zoomStrings)); > } > > /* > * (non-Javadoc) > * > * @see > * org.eclipse.gef.ui.actions.ActionBarContributor#declareGlobalActionKeys() > */ > protected void declareGlobalActionKeys() { > // currently none > } > >}
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 327891
:
186907
| 186908 |
186909
|
186910
|
186939