1 11 package org.eclipse.ui.internal.ide.model; 12 13 import org.eclipse.core.resources.ResourcesPlugin; 14 import org.eclipse.core.runtime.IAdaptable; 15 import org.eclipse.ui.IElementFactory; 16 import org.eclipse.ui.IMemento; 17 import org.eclipse.ui.IPersistableElement; 18 19 28 public class WorkspaceFactory implements IElementFactory, IPersistableElement { 29 private static final String FACTORY_ID = "org.eclipse.ui.internal.model.WorkspaceFactory"; 31 35 public WorkspaceFactory() { 36 } 37 38 41 public IAdaptable createElement(IMemento memento) { 42 return ResourcesPlugin.getWorkspace(); 43 } 44 45 48 public String getFactoryId() { 49 return FACTORY_ID; 50 } 51 52 55 public void saveState(IMemento memento) { 56 } 57 } 58 | Popular Tags |