本文整理汇总了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());
}
示例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();
}
示例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());
}
示例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()));
}
示例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);
}
示例6: pTerryPlugin
import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
/**
* Creates the plugin
*/
public pTerryPlugin(PluginInformation info) {
super(info);
UploadAction.registerUploadHook(new pTerryUploadHook());
}
示例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();
}
示例8: ImproveWayPlugin
import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public ImproveWayPlugin(final PluginInformation info) {
super(info);
}
示例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());
}
示例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
}
示例11: ColorPlugin
import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public ColorPlugin(final PluginInformation info) {
super(info);
MainMenu.add(Main.main.menu.moreToolsMenu, new ColorAction());
}
示例12: NotesPlugin
import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public NotesPlugin(PluginInformation info) {
super(info);
initConfig();
}
示例13: GeoJsonPlugin
import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public GeoJsonPlugin(PluginInformation info)
{
super(info);
ExtensionFileFilter.importers.add(new GeoJsonFileImporter());
ExtensionFileFilter.updateAllFormatsImporter();
}
示例14: MbtilesPlugin
import org.openstreetmap.josm.plugins.PluginInformation; //导入依赖的package包/类
public MbtilesPlugin(PluginInformation info)
{
super(info);
ExtensionFileFilter.addImporter(new MbtilesFileImporter());
ExtensionFileFilter.updateAllFormatsImporter();
}
示例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();
}