当前位置: 首页>>代码示例>>Java>>正文


Java PluginInformation类代码示例

本文整理汇总了Java中org.openstreetmap.josm.plugins.PluginInformation的典型用法代码示例。如果您正苦于以下问题:Java PluginInformation类的具体用法?Java PluginInformation怎么用?Java PluginInformation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PluginInformation类属于org.openstreetmap.josm.plugins包,在下文中一共展示了PluginInformation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: KaporPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public KaporPlugin(PluginInformation info) throws FactoryException,
		IOException {
	super(info);
	mwfUrl = Main.pref.get(FREEMAPKAPOR_MWFURL);
	if (mwfUrl == null || mwfUrl.length() == 0) {
		mwfUrl = "http://195.28.70.134/kapor2/maps/mapa.mwf";
		Main.pref.put(FREEMAPKAPOR_MWFURL, mwfUrl);
	}

	Projection.initCRS();
	Projection.initGrid();

	JMenuItem menuItem = new JMenuItem("Kapor");
	menuItem.addActionListener(new KaporMenuActionListener());
	Main.main.menu.add(menuItem);

	NavigatableComponent
			.addZoomChangeListener(new KaporZoomChangeListener());
}
 
开发者ID:MilanNobonn,项目名称:freemapKaPor,代码行数:20,代码来源:KaporPlugin.java

示例2: PescePlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public PescePlugin(final PluginInformation info) {
        super(info);
        //MainMenu.add(Main.main.menu.moreToolsMenu, new SimplifyAreaAction());
        
        if (instance == null) {
            instance = this;
        } else {
            throw new IllegalAccessError("Cannot instantiate plugin twice !");
        }
        
        FileImporter importer = new PesceImporter();
        FileExporter exporter = new PesceExporter();
        FileExporter geoJsonPolygons = new GeoJsonPolygonsExporter();
        
        ExtensionFileFilter.importers.add(importer);
        ExtensionFileFilter.exporters.add(exporter);
        ExtensionFileFilter.exporters.add(0,geoJsonPolygons);

//        new RemoteControl().addRequestHandler(
//                SetContextHandler.command,
//                SetContextHandler.class);
        
        new RemoteControl().addRequestHandler(
                IlocateImporter.command,
                IlocateImporter.class);
        
        //FilterIndoorLevel filter = new FilterIndoorLevel();
    }
 
开发者ID:STEMLab,项目名称:JOSM-IndoorEditor,代码行数:29,代码来源:PescePlugin.java

示例3: CustomizePublicTransportStopPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
/**
* Constructor of plug-in object
* @param info Plug-in properties
*/
  public CustomizePublicTransportStopPlugin(PluginInformation info) {
      super(info);
      stopAreaCreatorAction = CustomizeStopAction.createCustomizeStopAction();
      Main.main.menu.toolsMenu.add(stopAreaCreatorAction);
      System.out.println(getPluginDir());
  }
 
开发者ID:bwr57,项目名称:CustomizePublicTransportStop,代码行数:11,代码来源:CustomizePublicTransportStopPlugin.java

示例4: EasyRoutesPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public EasyRoutesPlugin(PluginInformation info) {
	super(info);
	setPrefOnInit(serverPref(), "easy-routes.server");
	setPrefOnInit(typicalPref(), "easy-routes.weights");
	setPrefOnInit(typicalPref(), "easy-routes.weights.bus");
	setPrefOnInit(railwayPref(), "easy-routes.weights.tram");
	JMenu jMenu = Main.main.menu.addMenu("easy-routes", KeyEvent.VK_COMMA, Main.main.menu.getDefaultMenuPos(), "help");
	jMenu.add(new JMenuItem(new ConnectNodesAction()));
	preferences = (EasyRoutesPreference) new EasyRoutesPreference.Factory()
			.createPreferenceSetting();
	jMenu.add(new JMenuItem(new LayNodesAction()));
	jMenu.add(new JMenuItem(new Con2NoAc()));
	jMenu.add(new JMenuItem(new ZtmToOsmAction()));
	jMenu.add(new JMenuItem(new PTAction()));
}
 
开发者ID:ztmtoosm,项目名称:easy-routes,代码行数:16,代码来源:EasyRoutesPlugin.java

示例5: ProjectionSwitchPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public ProjectionSwitchPlugin(PluginInformation info) {
    super(info);

    JMenu menu = Main.main.menu.viewMenu;
    int index;

    // find end of first group
    for (index = 0; index < menu.getItemCount(); index++) {
        if (menu.getItem(index) == null) {
            break;
        }
    }

    menu.insert(new ProjectionMenu(), index);
}
 
开发者ID:SammysHP,项目名称:josm-projectionswitch,代码行数:16,代码来源:ProjectionSwitchPlugin.java

示例6: pTerryPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
/**
 * Creates the plugin
 */
public pTerryPlugin(PluginInformation info) {
    super(info);
    UploadAction.registerUploadHook(new pTerryUploadHook());
}
 
开发者ID:rory,项目名称:josm-pTerry,代码行数:8,代码来源:pTerryPlugin.java

示例7: GeoJsonPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public GeoJsonPlugin(final PluginInformation info) {
    super(info);
    this.geoJsonFileImporter = new GeoJsonFileImporter();
    ExtensionFileFilter.addImporter(this.geoJsonFileImporter);
    ExtensionFileFilter.updateAllFormatsImporter();
}
 
开发者ID:JOSM,项目名称:geojson,代码行数:7,代码来源:GeoJsonPlugin.java

示例8: ImproveWayPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public ImproveWayPlugin(final PluginInformation info) {
    super(info);
}
 
开发者ID:kolesar-andras,项目名称:josm-plugin-improve-way,代码行数:4,代码来源:ImproveWayPlugin.java

示例9: TerracerPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public TerracerPlugin(PluginInformation info) {
    super(info);

    MainMenu.add(Main.main.menu.moreToolsMenu, new TerracerAction());
    MainMenu.add(Main.main.menu.moreToolsMenu, new ReverseTerraceAction());
}
 
开发者ID:derickr,项目名称:josm-plugin-uberterrace,代码行数:7,代码来源:TerracerPlugin.java

示例10: DxfImportPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public DxfImportPlugin(PluginInformation info) {
    super(info);
    ExtensionFileFilter.addImporter(new DxfImporter()); // adding the file importer to josm file filter
}
 
开发者ID:JOSM,项目名称:Dxf-Import,代码行数:5,代码来源:DxfImportPlugin.java

示例11: ColorPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public ColorPlugin(final PluginInformation info) {
    super(info);
    MainMenu.add(Main.main.menu.moreToolsMenu, new ColorAction());
}
 
开发者ID:andreimaneasa,项目名称:ColorPlugin,代码行数:5,代码来源:ColorPlugin.java

示例12: NotesPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public NotesPlugin(PluginInformation info) {
    super(info);
    initConfig();
}
 
开发者ID:iandees,项目名称:josm-notes,代码行数:5,代码来源:NotesPlugin.java

示例13: GeoJsonPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public GeoJsonPlugin(PluginInformation info)
{
    super(info);
    ExtensionFileFilter.importers.add(new GeoJsonFileImporter());
    ExtensionFileFilter.updateAllFormatsImporter();
}
 
开发者ID:iandees,项目名称:josm-geojson,代码行数:7,代码来源:GeoJsonPlugin.java

示例14: MbtilesPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public MbtilesPlugin(PluginInformation info)
{
    super(info);
    ExtensionFileFilter.addImporter(new MbtilesFileImporter());
    ExtensionFileFilter.updateAllFormatsImporter();
}
 
开发者ID:iandees,项目名称:josm-mbtiles,代码行数:7,代码来源:MbtilesPlugin.java

示例15: ScoutSignsPlugin

import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
/**
 * Builds a new {@code ScoutSignsPlugin} object. This constructor is automatically invoked by JOSM to bootstrap the
 * plugin.
 *
 * @param info the information about the plugin and its local installation
 */
public ScoutSignsPlugin(final PluginInformation info) {
    super(info);
    PrefManager.getInstance().saveSupressErrorFlag(false);
    searchFilter = PrefManager.getInstance().loadSearchFilter();
}
 
开发者ID:Telenav,项目名称:scoutsigns,代码行数:12,代码来源:ScoutSignsPlugin.java


注:本文中的org.openstreetmap.josm.plugins.PluginInformation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。