JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

"Open" file dialog request

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
chileboy



Joined: 26 Aug 2020
Posts: 83
Location: NJ

                    
PostPosted: Mon Oct 12, 2020 4:10 pm    Post subject: "Open" file dialog request Reply with quote

I tend to accumulate a lot of configuration files (why, I'm not quite sure....)

Every time I go to Open -> File in RMIR, the first thing I always do is click the "View" icon at the upper right and change it from "List" to "Details". Then I click the "Date modified" - twice - to bring the latest config files to the top.

A minor thing I know, but is there any way to make that stick between sessions?
_________________
- Mark
Back to top
View user's profile Send private message
mathdon
Expert


Joined: 22 Jul 2008
Posts: 4515
Location: Cambridge, UK

                    
PostPosted: Tue Oct 13, 2020 7:44 am    Post subject: Reply with quote

chileboy wrote:
A minor thing I know, but is there any way to make that stick between sessions?

As far as I am aware, the answer is no, that cannot be done. I too would like to change this, so if anyone knows how, please let us know.
_________________
Graham
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Tue Oct 13, 2020 8:52 am    Post subject: Reply with quote

The open dialogue in RMIR is effectively the Java Swing JFileChooser. As can be seen from the linked documentation, there appears to be no API call to select for example sorting files according to age. (Possibly it sits somewhere in the Look-n-Feel?). (I only checked Java 8, but I severely doubt that later versions are different.)

So it appears that the only way would be to use serialization, basically saving the different file selectors to disk (for example in the preferences file) between invocations. (See fileselectordirs in IrScrutinizer for an example.)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chileboy



Joined: 26 Aug 2020
Posts: 83
Location: NJ

                    
PostPosted: Tue Oct 13, 2020 7:03 pm    Post subject: Reply with quote

I know nothing about Java, but isn't there some way to interface with the Windows API?

I was going to even take it a step further - now that I've started using icons, when you browse those available, it would be really nice to be able to access the image thumbnails, etc., as you can in the View dropdown in File Explorer...
_________________
- Mark
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Wed Oct 14, 2020 1:10 am    Post subject: Reply with quote

@chileboy: Have you discovered the File -> Recent entry? It eliminates most use of Open.

chileboy wrote:
I know nothing about Java, but isn't there some way to interface with the Windows API?


RMIR is a Java program that runs on "everything that has a JVM", so you are not allowed to call OS specific APIs. Besides, I doubt that a Windows API allows you to do that.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chileboy



Joined: 26 Aug 2020
Posts: 83
Location: NJ

                    
PostPosted: Wed Oct 14, 2020 4:52 pm    Post subject: Reply with quote

Barf wrote:
@chileboy: Have you discovered the File -> Recent entry? It eliminates most use of Open.

That does help, but right now I'm bouncing between 3 different remotes,with a few working configs for each, and by the time I peruse the paths and filenames (since they're all comingled), it's just quicker to use File -> Open.

Quote:
RMIR is a Java program that runs on "everything that has a JVM", so you are not allowed to call OS specific APIs. Besides, I doubt that a Windows API allows you to do that.

Ok, that makes sense - as I said, "I know nothing". Excel, for instance, seems to remember those settings between sessions. So probably using a registry key or .ini entry or something.

File Explorer itself stores the current view in each folder's "desktop.ini" I believe - maybe that could be used somehow? Just a thought.

Again, it's just a minor inconvenience, so not really a big deal.

Thanks.
_________________
- Mark
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control