Package net.alteiar.campaign.player.gui.centerViews.map.element

Examples of net.alteiar.campaign.player.gui.centerViews.map.element.PanelMapElementEditor


  public <E extends MapElement> JMenuItem buildEditElement(
      final MouseEvent event, final E mapElement) {
    JMenuItem menuItem = new JMenuItem("Editer");

    final PanelMapElementEditor pane = PluginSystem.getInstance()
        .getMapElementEditor(mapElement);

    menuItem.setEnabled(false);
    if (pane != null) {
      menuItem.addActionListener(new ActionListener() {
View Full Code Here


    return builders;
  }

  public <E extends MapElement> PanelMapElementEditor getMapElementEditor(
      E bean) {
    PanelMapElementEditor editor = null;
    MapElementPlugin plugin = getPlugin(bean);
    if (plugin != null) {
      editor = plugin.getEditor();
      if (editor != null) {
        editor.setMapElement(bean);
      }
    }

    return editor;
  }
View Full Code Here

TOP

Related Classes of net.alteiar.campaign.player.gui.centerViews.map.element.PanelMapElementEditor

Copyright © 2018 www.massapicom. 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.