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

Add stylesheet support for the viewer // 2.0 fork #72

Closed
wants to merge 20 commits into from
Closed

Add stylesheet support for the viewer // 2.0 fork #72

wants to merge 20 commits into from

Conversation

grosenberg
Copy link

@grosenberg grosenberg commented Nov 22, 2016

Viewer updated to recognize stylesheets.

Preferences added to select a default stylesheet from between multiple builtins and a custom stylesheet located on the filesystem. See MarkdownPreview#getMdStyles for the prioritized selection logic.

Also enabled viewer updates to occur without changing the vertical position of the viewer document.

Updated to Java 1.8 and did a bunch of minor cleanups.

@paulvi
Copy link
Collaborator

paulvi commented Nov 23, 2016

Hoping to hear from Daniel @winterstein before merging

@paulvi
Copy link
Collaborator

paulvi commented Nov 23, 2016

Updated to Java 1.8 and did a bunch of minor cleanups.

well this make this not so clean PR

@grosenberg
Copy link
Author

Why is this a problem?

@paulvi
Copy link
Collaborator

paulvi commented Nov 24, 2016

Just try to read https://github.com/winterstein/Eclipse-Markdown-Editor-Plugin/pull/72/files as if you were other guy

@grosenberg
Copy link
Author

What other guy?

@winterstein
Copy link
Owner

winterstein commented Nov 24, 2016 via email

@grosenberg
Copy link
Author

Travis is compiling the code, despite all attempts to the contrary, against JDK1.7. The code itself is likely to be 1.6 compatible; certainly no essential bits require more. I am compiling for 1.8, as that is my default.

Note, Eclipse Neon itself requires JDK 1.8. My understanding is that Eclipse generally considers running itself at any lesser level as a bug and security risk. Inferentially, this should extend to plugins.

Not aware of any current Eclipse or other major branded Eclipse platform that is not at the 1.8 level.

I publish a variety of plugins used on Eclipse and other branded platforms, all now requiring 1.8, and have yet to receive any report of an issue.

Are there any known -- as opposed to merely perceived -- platform compatibility problems with a 1.8 requirement?

Bottom line, I strongly advocate for a 1.8 requirement, but will be flexible, particularly if there is an actual platform compatibility issue.

@paulvi
Copy link
Collaborator

paulvi commented Nov 25, 2016

@grosenberg It is simple: with Java 8 requirements this plugin will work in only Eclipse Neon+
While currently it works in any Eclipse.

If you are so opinionated about how to do all things, adding features, changing versions an binaries at the same time, why you just talk over this project as both me and Daniel don't have much time to move it forward.

Just do however you want, and publish. Eclipse users may choose which one to install.
The worst that can be, is when it is not enough better than current one, and users will be divided which one to install.

Currently if we are to merge this PR, we signing to handle possible head-ache to fix possible bugs.

What do you think?

@grosenberg
Copy link
Author

grosenberg commented Nov 25, 2016

Java 8 was first released on March 18, 2014 -- almost 3 years ago. Neon, released more than a year ago, Kepler and Mars all run just fine with Java 8.

This PR does not require you or Daniel to do anything. Feel free to completely ignore it if you wish.

@grosenberg
Copy link
Author

grosenberg commented Nov 27, 2016

markdown.editor.site-1.3.0-SNAPSHOT.zip

Archived P2 site for v1.3 alpha. Largely feature complete. Runs cleanly (so far).

Intended to provide a convenient basis for review, testing and discussion.


Features:


  • adds preference selectable stylesheets
  • includes 7 builtin styesheets
  • also allows user selection of a custom stylesheet from the filesystem
  • issue custom css file #70


  • adds spell checking that can be specified/enabled for the Markdown Editor independent of the platform preference specified spell checker

  • moved the Markdown Editor preference page to the top level
  • added spelling, stylesheet and syntax coloring sub-pages

@paulvi
Copy link
Collaborator

paulvi commented Nov 28, 2016

Java 8 was first released on March 18, 2014 -- almost 3 years ago. Neon, released more than a year ago, Kepler and Mars all run just fine with Java 8.

If a plugin requires Java 8 and is installed in Kepler/Luna/Mars running on Java 7.
What kind of behaviors do you expect?

#72 (comment) Summary is good.

@grosenberg
Copy link
Author

Eclipse provides no explicit mechanism for an installed plugin to require a specific Java version. The platform does a check for itself, e.g., Neon will refuse to run with < 1.8.

Given that Travis is using 1.7, the plugin will run equivalently on any platform running on >= 1.7.

That said, the plugin.xml does now specify a 1.8 minimum requirement for developers to build, debug, and publish the plugin.

@paulvi
Copy link
Collaborator

paulvi commented Dec 3, 2016

@grosenberg

f a plugin requires Java 8 and is installed in Kepler/Luna/Mars running on Java 7.
What kind of behaviors do you expect?

Java 7 JRE will through an Exception unable to read Java 8 binary

http://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0

@grosenberg grosenberg closed this Dec 4, 2016
@grosenberg grosenberg deleted the master branch December 4, 2016 06:46
@paulvi paulvi changed the title Add stylesheet support for the viewer Add stylesheet support for the viewer // 2.0 fork Dec 7, 2016
@paulvi
Copy link
Collaborator

paulvi commented Dec 11, 2016

Now https://github.com/grosenberg/MarkdownEditor is not there

All the talks (and possibly work on code) are in vain

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.

3 participants