~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to dsf/org.eclipse.cdt.tests.dsf/src/org/eclipse/cdt/tests/dsf/vm/TestPersistableFactory.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************
 
2
 * Copyright (c) 2011 Texas Instruments and others
 
3
 * All rights reserved. This program and the accompanying materials
 
4
 * are made available under the terms of the Eclipse Public License v1.0
 
5
 * which accompanies this distribution, and is available at
 
6
 * http://www.eclipse.org/legal/epl-v10.html
 
7
 *
 
8
 * Contributors:
 
9
 *     Winnie Lai (Texas Instruments) - Individual Element Number Format (Bug 202556)
 
10
 *****************************************************************/
 
11
package org.eclipse.cdt.tests.dsf.vm;
 
12
 
 
13
import org.eclipse.core.runtime.IAdaptable;
 
14
import org.eclipse.ui.IElementFactory;
 
15
import org.eclipse.ui.IMemento;
 
16
 
 
17
/**
 
18
 * Factory for TestPersitable
 
19
 */
 
20
public class TestPersistableFactory implements IElementFactory {
 
21
 
 
22
        static String factoryId = "org.eclipse.cdt.tests.dsf.vm.testPersistableFactory";
 
23
 
 
24
        public IAdaptable createElement(IMemento memento) {
 
25
                TestPersistable x = new TestPersistable();
 
26
                x.restore(memento);
 
27
                return x;
 
28
        }
 
29
 
 
30
}