From: SourceForge.net <no...@so...> - 2008-10-07 01:50:24
|
Bugs item #1766853, was opened at 2007-08-03 16:13 Message generated for change (Settings changed) made by shlomy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1766853&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: editor core Group: normal bug >Status: Closed >Resolution: Fixed Priority: 7 Private: No Submitted By: Ben Golding (bgolding) >Assigned to: Shlomy Reinstein (shlomy) Summary: View is not plain with -newplainview on first launch Initial Comment: jEdit 4.3pre10 --------------- Create a shortcut to "C:\Program Files\Java\jre1.6.0\bin\javaw.exe" -jar "C:\Program Files\jEdit 4.3\jedit.jar" -newplainview C:\oneclick.txt If jEdit is already running, it behaves as expected. If jEdit is not yet running, the view which appears is not "plain" (it shows Console, Sidekick etc which were open from the previous session). ---------------------------------------------------------------------- >Comment By: Shlomy Reinstein (shlomy) Date: 2008-10-07 03:50 Message: Fixed in SVN revision 13847. ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2007-09-10 16:49 Message: Logged In: YES user_id=1477607 Originator: NO I've sent an email to jedit-devel for now. ---------------------------------------------------------------------- Comment By: Ben Golding (bgolding) Date: 2007-09-10 12:44 Message: Logged In: YES user_id=1857456 Originator: YES 1. I wasn't aware of the perspective.xml and the implications of my suggestion. I guess you are right, the -newplainview would ignore this file on first launch. You also need to think about whether to disable saving the perspective.xml on exit, for the duration of the session. I guess it is tricky. 2. Yes, I expect it to open another new plain view, current behaviour is not changed. I agree this needs further discussion, please let me know which list you post to and I will subscribe. ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2007-09-10 12:05 Message: Logged In: YES user_id=1477607 Originator: NO Ok, this requires a little bit of discussion: 1. Currently, if this is not the first time you run jEdit, the number of views that are opened and their types (plain/normal) is determined by the perspective.xml file that was saved when you last exited jEdit, in effect restoring the state of jEdit as it was before you exited it the last time. What you're asking is, provide an option to ignore perspective.xml, and just open a plain view. Right? 2. I assume you want to always use the desktop shortcut that uses this option. With your suggestion, if you use the shortcut when jEdit is not running, it will open a plain view. But what if you click the shortcut when jEdit is already running? Do you expect it to open yet another plain view (like it does now), or not? You won't be able to combine '-newplainview' with '-reuseview' on the same command line in order to make it behave differently when jEdit is running or not. Maybe we should open a small discussion in jedit-users (or jedit-devel) about some clearer names for these options, and keep the current behavior of the existing options for backward compatibility (if at all needed)? ---------------------------------------------------------------------- Comment By: Ben Golding (bgolding) Date: 2007-09-10 11:51 Message: Logged In: YES user_id=1857456 Originator: YES Shlomy, I disagree this is a docs bug. Let me try to explain. In my scenario, I'm using -newplainview in a windows shortcut, to launch a "simple" version of the jEdit window, instead of using Notepad etc. This is for use by users who might not be familiar with jEdit. Generally jEdit will not be running at this point. The problem is, currently there is a lot of clutter such as HyperSearch docked windows etc. from the last use by a "power user" (me). This might confuse the inexperienced user. You say -newplainview is only meaningful when jEdit is already running. Okay, now let's give it a useful meaning when jEdit is NOT running :-) This won't change the semantics when jEdit is already running. Regarding -reuseview, this has the effect of NOT opening a new view, if there is already one which can be used. If you are launching jEdit for the first time, this switch has no effect. ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2007-09-08 23:21 Message: Logged In: YES user_id=1477607 Originator: NO The problem here is actually with the documentation, I think. "-newplainview" is only meaningful when jEdit is already running, it is meant to be the opposite of "-reuseview": Open a new plain view rather than reuse and "bring to top" the existing one. That's the way it was designed to be. If it's agreed that this is okay, let me know and I'll just update the docs. If not, we should change the implementation to make it effective also when jedit is not running (what is "-reuseview" then?). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1766853&group_id=588 |