1 11 package org.eclipse.ui.internal.part.services; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.jface.action.IContributionItem; 15 import org.eclipse.jface.action.IContributionManager; 16 import org.eclipse.jface.action.IContributionManagerOverrides; 17 18 21 public class NullContributionManager implements IContributionManager { 22 23 private IContributionManagerOverrides overrides = new NullContributionManagerOverrides(); 24 25 28 public void add(IAction action) { 29 30 } 31 32 35 public void add(IContributionItem item) { 36 37 } 38 39 42 public void appendToGroup(String groupName, IAction action) { 43 44 } 45 46 49 public void appendToGroup(String groupName, IContributionItem item) { 50 51 } 52 53 56 public IContributionItem find(String id) { 57 return null; 58 } 59 60 63 public IContributionItem[] getItems() { 64 return new IContributionItem[0]; 65 } 66 67 70 public IContributionManagerOverrides getOverrides() { 71 return overrides; 72 } 73 74 77 public void insertAfter(String id, IAction action) { 78 } 79 80 83 public void insertAfter(String id, IContributionItem item) { 84 85 } 86 87 90 public void insertBefore(String id, IAction action) { 91 92 } 93 94 97 public void insertBefore(String id, IContributionItem item) { 98 99 } 100 101 104 public boolean isDirty() { 105 return false; 106 } 107 108 111 public boolean isEmpty() { 112 return true; 113 } 114 115 118 public void markDirty() { 119 120 } 121 122 125 public void prependToGroup(String groupName, IAction action) { 126 127 } 128 129 132 public void prependToGroup(String groupName, IContributionItem item) { 133 134 } 135 136 139 public IContributionItem remove(String id) { 140 return null; 141 } 142 143 146 public IContributionItem remove(IContributionItem item) { 147 return null; 148 } 149 150 153 public void removeAll() { 154 155 } 156 157 160 public void update(boolean force) { 161 162 } 163 164 } 165 | Popular Tags |