Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 171498
Collapse All | Expand All

(-)src/org/eclipse/gef/ui/properties/UndoablePropertySheetEntry.java (-1 / +26 lines)
Lines 40-51 Link Here
40
40
41
private UndoablePropertySheetEntry() { }
41
private UndoablePropertySheetEntry() { }
42
42
43
private UndoablePropertySheetEntry(boolean blankInconsistency){
44
	super(blankInconsistency);
45
}
46
43
/**
47
/**
44
 * Constructs the root entry using the given command stack.
48
 * Constructs the root entry using the given command stack.
45
 * @param stack the command stack
49
 * @param stack the command stack
46
 * @since 3.1
50
 * @since 3.1
47
 */
51
 */
48
public UndoablePropertySheetEntry(CommandStack stack) {
52
public UndoablePropertySheetEntry(CommandStack stack) {
53
	super();
54
	setCommandStack(stack);
55
}
56
/**
57
 * Constructs the root entry using the given command stack and sets
58
 * the entry behaviour when many selected properties doesn't have 
59
 * equal values.
60
 * @param stack the command stack
61
 * @param blankNotEqualPropertyValues
62
 *  parameter indicating, that property values should
63
 *  be blanked, if many selected objects have the same property and 
64
 *  different values. 
65
 * 	<code>true</code> enables checking 
66
 *  <code>false</code> does nothingng
67
 * @see org.eclipse.ui.views.properties.
68
 * 				PropertySheetEntry#PropertySheetEntry(boolean)
69
 * @since 3.3
70
 */
71
public UndoablePropertySheetEntry(CommandStack stack, 
72
		boolean blankNotEqualPropertyValues){
73
	super(blankNotEqualPropertyValues);
49
	setCommandStack(stack);
74
	setCommandStack(stack);
50
}
75
}
51
76
Lines 53-59 Link Here
53
 * @see org.eclipse.ui.views.properties.PropertySheetEntry#createChildEntry()
78
 * @see org.eclipse.ui.views.properties.PropertySheetEntry#createChildEntry()
54
 */
79
 */
55
protected PropertySheetEntry createChildEntry() {
80
protected PropertySheetEntry createChildEntry() {
56
	return new UndoablePropertySheetEntry();
81
	return new UndoablePropertySheetEntry(blankNotEqualPropertyValues);
57
}
82
}
58
83
59
/**
84
/**
(-)src/org/eclipse/gef/ui/parts/GraphicalEditor.java (-1 / +1 lines)
Lines 212-218 Link Here
212
public Object getAdapter(Class type) {
212
public Object getAdapter(Class type) {
213
	if (type == org.eclipse.ui.views.properties.IPropertySheetPage.class) {
213
	if (type == org.eclipse.ui.views.properties.IPropertySheetPage.class) {
214
		PropertySheetPage page = new PropertySheetPage();
214
		PropertySheetPage page = new PropertySheetPage();
215
		page.setRootEntry(new UndoablePropertySheetEntry(getCommandStack()));
215
		page.setRootEntry(new UndoablePropertySheetEntry(getCommandStack(), true));
216
		return page;
216
		return page;
217
	}
217
	}
218
	if (type == GraphicalViewer.class)
218
	if (type == GraphicalViewer.class)

Return to bug 171498