Examples of PanelMapElementEditor


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

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

    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
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.