Package com.onpositive.mapper.views

Source Code of com.onpositive.mapper.views.TilesetPage

package com.onpositive.mapper.views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.part.IPage;
import org.eclipse.ui.part.Page;

import tiled.mapeditor.widget.TabbedTilesetsPane;

import com.onpositive.mapper.editors.MapEditor;

public class TilesetPage extends Page implements IPage {

  protected final MapEditor mapEditor;
  protected Composite composite;

  public TilesetPage(MapEditor mapEditor) {
    this.mapEditor = mapEditor;
  }

  @Override
  public void createControl(Composite parent) {
    composite = new Composite(parent,SWT.NONE);
    composite.setLayout(new FillLayout());
    TabbedTilesetsPane pane = new TabbedTilesetsPane(getMapEditor(),composite);
    pane.setMap(getMapEditor().getMap());
  }

  @Override
  public Control getControl() {
    return composite;
  }

  @Override
  public void setFocus() {
    // TODO Auto-generated method stub

  }

  public MapEditor getMapEditor() {
    return mapEditor;
  }

}
TOP

Related Classes of com.onpositive.mapper.views.TilesetPage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.