1 11 12 16 17 package org.eclipse.ui.internal.cheatsheets.state; 18 19 import java.util.Properties ; 20 21 import org.eclipse.core.runtime.IStatus; 22 import org.eclipse.core.runtime.Status; 23 import org.eclipse.ui.internal.cheatsheets.registry.CheatSheetElement; 24 import org.eclipse.ui.internal.cheatsheets.views.CheatSheetManager; 25 26 30 31 public class NoSaveStateManager implements ICheatSheetStateManager { 32 33 private CheatSheetElement element; 34 public Properties getProperties() { 35 return null; 36 } 37 38 public CheatSheetManager getCheatSheetManager() { 39 CheatSheetManager result = new CheatSheetManager(element); 40 return result; 41 } 42 43 public void setElement(CheatSheetElement element) { 44 this.element = element; 45 } 46 47 public IStatus saveState(Properties properties, CheatSheetManager manager) { 48 return Status.OK_STATUS; 49 } 50 } 51 | Popular Tags |