Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix removed upstream functions #39

Merged
merged 5 commits into from Apr 10, 2017
Merged

Conversation

Maatts
Copy link
Collaborator

@Maatts Maatts commented Apr 9, 2017

Fixes dropped and deprecated upstream functions. Namely tags conflict resolution dialog, download OSM areas task and MapMode constructor.

Review and test please!

This is required to support source level 1.8 in some versions of NetBeans IDE.

See https://netbeans.org/bugzilla/show_bug.cgi?id=243330
…terScale()

This function was removed from upstream code, see
https://josm.openstreetmap.de/changeset/11774/josm

Use zoomAfterDownload parameter of DownloadTask()
constructor instead of it.
Old upstream code maintained one global instance of the dialog
using CombinePrimitiveResolverDialog.getInstance(). This method
was removed and launchIfNecessary() creates new unique instance
in every call now. So, do the same in CombineTagsResolver's copy
of this method.
All MapMode constructors containing mapFrame parameter are marked
as deprecated and this parameter is ignored in them. So, remove
mapFrame parameter in Tracer code too.
@@ -90,7 +86,7 @@
final Set<Relation> parentRelations = new HashSet<>();

// Build conflict resolution dialog
final CombinePrimitiveResolverDialog dialog = CombinePrimitiveResolverDialog.getInstance();
final CombinePrimitiveResolverDialog dialog = new CombinePrimitiveResolverDialog (Main.parent);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh. Tak přesně tohle jsem zkoušel, ale nefungovalo mi to, protože mi tam chyběl ten import josm.Main
Vůbec mi to nedošlo :-(

@mkyral mkyral merged commit 96fd62e into mkyral:development Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants