1 11 package org.eclipse.compare.internal; 12 13 import org.eclipse.ui.texteditor.IUpdate; 14 import org.eclipse.jface.action.Action; 15 16 17 public abstract class MergeViewerAction extends Action implements IUpdate { 18 19 private boolean fMutable; 20 private boolean fSelection; 21 private boolean fContent; 22 23 public MergeViewerAction(boolean mutable, boolean selection, boolean content) { 24 fMutable= mutable; 25 fSelection= selection; 26 fContent= content; 27 } 28 29 public boolean isSelectionDependent() { 30 return fSelection; 31 } 32 33 public boolean isContentDependent() { 34 return fContent; 35 } 36 37 public boolean isEditableDependent() { 38 return fMutable; 39 } 40 41 public void update() { 42 } 44 } 45 | Popular Tags |