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 58320 Details for
Bug 171498
Property View does not display properties well when multiple select
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]
Blanking not equal property values
multipleSelectGEFPatch.txt (text/plain), 2.82 KB, created by
Krzysztof Daniel
on 2007-02-06 03:17:43 EST
(
hide
)
Description:
Blanking not equal property values
Filename:
MIME Type:
Creator:
Krzysztof Daniel
Created:
2007-02-06 03:17:43 EST
Size:
2.82 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gef >Index: src/org/eclipse/gef/ui/properties/UndoablePropertySheetEntry.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/src/org/eclipse/gef/ui/properties/UndoablePropertySheetEntry.java,v >retrieving revision 1.3 >diff -u -r1.3 UndoablePropertySheetEntry.java >--- src/org/eclipse/gef/ui/properties/UndoablePropertySheetEntry.java 27 May 2005 19:10:47 -0000 1.3 >+++ src/org/eclipse/gef/ui/properties/UndoablePropertySheetEntry.java 31 Jan 2007 08:29:14 -0000 >@@ -40,12 +40,37 @@ > > private UndoablePropertySheetEntry() { } > >+private UndoablePropertySheetEntry(boolean blankInconsistency){ >+ super(blankInconsistency); >+} >+ > /** > * Constructs the root entry using the given command stack. > * @param stack the command stack > * @since 3.1 > */ > public UndoablePropertySheetEntry(CommandStack stack) { >+ super(); >+ setCommandStack(stack); >+} >+/** >+ * Constructs the root entry using the given command stack and sets >+ * the entry behaviour when many selected properties doesn't have >+ * equal values. >+ * @param stack the command stack >+ * @param blankNotEqualPropertyValues >+ * parameter indicating, that property values should >+ * be blanked, if many selected objects have the same property and >+ * different values. >+ * <code>true</code> enables checking >+ * <code>false</code> does nothingng >+ * @see org.eclipse.ui.views.properties. >+ * PropertySheetEntry#PropertySheetEntry(boolean) >+ * @since 3.3 >+ */ >+public UndoablePropertySheetEntry(CommandStack stack, >+ boolean blankNotEqualPropertyValues){ >+ super(blankNotEqualPropertyValues); > setCommandStack(stack); > } > >@@ -53,7 +78,7 @@ > * @see org.eclipse.ui.views.properties.PropertySheetEntry#createChildEntry() > */ > protected PropertySheetEntry createChildEntry() { >- return new UndoablePropertySheetEntry(); >+ return new UndoablePropertySheetEntry(blankNotEqualPropertyValues); > } > > /** >Index: src/org/eclipse/gef/ui/parts/GraphicalEditor.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/src/org/eclipse/gef/ui/parts/GraphicalEditor.java,v >retrieving revision 1.28 >diff -u -r1.28 GraphicalEditor.java >--- src/org/eclipse/gef/ui/parts/GraphicalEditor.java 30 Nov 2005 16:23:28 -0000 1.28 >+++ src/org/eclipse/gef/ui/parts/GraphicalEditor.java 31 Jan 2007 08:29:14 -0000 >@@ -212,7 +212,7 @@ > public Object getAdapter(Class type) { > if (type == org.eclipse.ui.views.properties.IPropertySheetPage.class) { > PropertySheetPage page = new PropertySheetPage(); >- page.setRootEntry(new UndoablePropertySheetEntry(getCommandStack())); >+ page.setRootEntry(new UndoablePropertySheetEntry(getCommandStack(), true)); > return page; > } > if (type == GraphicalViewer.class)
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 171498
: 58320