/**
 *  Copyright (c) 2015-2016 Angelo ZERR.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *  Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
 */
package ts.eclipse.ide.internal.ui.preferences;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbenchPropertyPage;

import ts.eclipse.ide.ui.ImageResource;

/**
 * TypeScript Main page for global preferences.
 * 
 */
public class TypeScriptMainPreferencePage extends PreferencePage implements
		IWorkbenchPropertyPage {

	public static final String PROP_ID = "ts.eclipse.ide.ui.preference.TypeScriptMainPreferencePage";

	public TypeScriptMainPreferencePage() {
		setImageDescriptor(ImageResource
				.getImageDescriptor(ImageResource.IMG_LOGO));
	}

	protected Control createContents(Composite parent) {
		Composite composite = new Composite(parent, SWT.NONE);
		composite.setLayoutData(new GridData(4, 4, true, true));
		composite.setLayout(new GridLayout());
		return composite;
	}

	@Override
	public IAdaptable getElement() {
		return null;
	}

	@Override
	public void setElement(IAdaptable element) {
		
	}

}

@@ -439,52 +439,8 @@
 s;%0A%0A
-import org.eclipse.core.runtime.IAdaptable;%0A
 impo
@@ -487,16 +487,16 @@
 cePage;%0A
+
 import o
@@ -707,32 +707,68 @@
 i.IWorkbench
-Property
+;%0Aimport org.eclipse.ui.IWorkbenchPreference
 Page;%0A%0Aimpor
@@ -957,14 +957,16 @@
 chPr
-operty
+eference
 Page
@@ -1457,106 +1457,38 @@
 lic 
-IAdaptable getElement() %7B%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public void setElement(IAdaptable element
+void init(IWorkbench workbench
 ) %7B%0A

Fix display fo TypeScript main preferences page