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 28751 Details for
Bug 112855
Duplicate should be enabled on shape compartment editparts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for ContainerEditPolicy
ContainerEditPolicy.txt (text/plain), 2.61 KB, created by
Cherie Revells
on 2005-10-25 10:28:28 EDT
(
hide
)
Description:
Patch for ContainerEditPolicy
Filename:
MIME Type:
Creator:
Cherie Revells
Created:
2005-10-25 10:28:28 EDT
Size:
2.61 KB
patch
obsolete
>Index: ContainerEditPolicy.java >=================================================================== >RCS file: /home/technology/org.eclipse.gmf/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editpolicies/ContainerEditPolicy.java,v >retrieving revision 1.3 >diff -u -r1.3 ContainerEditPolicy.java >--- ContainerEditPolicy.java 12 Sep 2005 21:29:06 -0000 1.3 >+++ ContainerEditPolicy.java 25 Oct 2005 14:27:53 -0000 >@@ -29,7 +29,6 @@ > import org.eclipse.gef.commands.Command; > import org.eclipse.gef.requests.CreateRequest; > import org.eclipse.gef.requests.GroupRequest; >- > import org.eclipse.gmf.runtime.common.core.command.CommandResult; > import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; > import org.eclipse.gmf.runtime.common.core.util.ObjectAdapter; >@@ -45,9 +44,7 @@ > import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart; > import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart; > import org.eclipse.gmf.runtime.diagram.ui.editparts.ListItemCompartmentEditPart; >-import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart; > import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeEditPart; >-import org.eclipse.gmf.runtime.diagram.ui.editparts.TopGraphicEditPart; > import org.eclipse.gmf.runtime.diagram.ui.internal.commands.DuplicateViewsCommand; > import org.eclipse.gmf.runtime.diagram.ui.internal.commands.PasteCommand; > import org.eclipse.gmf.runtime.diagram.ui.internal.commands.RefreshEditPartCommand; >@@ -339,15 +336,6 @@ > if (ep instanceof ConnectionEditPart || ep instanceof ShapeEditPart > || ep instanceof ListItemCompartmentEditPart) { > >- // TODO: Remove when I've had a chance to test this on machine >- // diagrams. >- TopGraphicEditPart topEP = ((IGraphicalEditPart) ep) >- .getTopGraphicEditPart(); >- if (topEP != null >- && topEP.getParent() instanceof ShapeCompartmentEditPart) { >- return null; >- } >- > // More work needs to be done to duplicate connections whose > // source or target isn't also duplicated, so disable for now. > if (ep instanceof ConnectionEditPart) { >@@ -391,7 +379,8 @@ > new ArrayList(elementsToDuplicate)); > Command duplicateElementsCommand = getHost().getCommand( > new EditCommandRequestWrapper(duplicateElementsRequest)); >- if (duplicateElementsCommand != null) { >+ if (duplicateElementsCommand != null >+ && duplicateElementsCommand.canExecute()) { > CompositeCommand cc = new CompositeCommand( > PresentationResourceManager > .getI18NString("Commands.Duplicate.Label")); //$NON-NLS-1$
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 112855
: 28751