1 /*******************************************************************************
\r
2 * Copyright (c) 2012 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.document.ui;
\r
14 import java.util.Collections;
\r
16 import org.simantics.selectionview.StandardPropertyPage;
\r
17 import org.simantics.ui.workbench.IPropertyPage;
\r
18 import org.simantics.views.swt.ModelledEditor;
\r
21 * @author Antti Villberg
\r
23 public class DocumentEditor extends ModelledEditor {
\r
26 protected String configurationURI() {
\r
27 return DocumentUIResource.URIs.Editor;
\r
30 @SuppressWarnings("rawtypes")
\r
32 public Object getAdapter(Class adapter) {
\r
33 if (adapter == IPropertyPage.class)
\r
34 return new StandardPropertyPage(getSite(), Collections.<String>emptySet());
\r
35 return super.getAdapter(adapter);
\r