Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Where the View Configartions shell get the list of properties file nattable style
Where the View Configartions shell get the list of properties file nattable style [message #1371957] Wed, 21 May 2014 16:08 Go to next message
Mohamed SADI is currently offline Mohamed SADIFriend
Messages: 38
Registered: December 2013
Member
Hello, currently i store the properties file nattable style in a given folder (like c:\..), i would like to list all user defined properties file nattable style in the View Configurations shell.

How can i do it ?

Thank's in advance

[Updated on: Wed, 21 May 2014 16:24]

Report message to a moderator

Re: Where the View Configartions shell get the list of properties file nattable style [message #1373544 is a reply to message #1371957] Thu, 22 May 2014 08:01 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Quote:
i would like to list all user defined properties file nattable style in the View Configurations shell


I don't understand that question.

If you save the properties in a file, you can load it prior creating the PersistenceDialog and set the Properties object as parameter.
Re: Where the View Configartions shell get the list of properties file nattable style [message #1373740 is a reply to message #1373544] Thu, 22 May 2014 09:54 Go to previous messageGo to next message
Mohamed SADI is currently offline Mohamed SADIFriend
Messages: 38
Registered: December 2013
Member
Hello, when the persistanceDialog is opened, is there a way to specify a list of propertties files (nattable state configuration) to be loaded in the "Available state configurations" list ?
Re: Where the View Configartions shell get the list of properties file nattable style [message #1373786 is a reply to message #1373740] Thu, 22 May 2014 10:16 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
No, just a single properties file that contains all configurations via setProperties() which is technically enough as every configuration has its own prefix which is used as the configuration name in the dialog.
Re: Where the View Configartions shell get the list of properties file nattable style [message #1374121 is a reply to message #1373786] Thu, 22 May 2014 13:31 Go to previous messageGo to next message
Mohamed SADI is currently offline Mohamed SADIFriend
Messages: 38
Registered: December 2013
Member
So, if i want to handle multiples states for on nattable, i should save the state configuration in the same properties file but with different key ? like this :


FileInputStream fileInputStream = new FileInputStream(new File(
					getDefaultConfigfileName()));
properties.load(fileInputStream);
natTable.loadState("state1", properties);	
		

Re: Where the View Configartions shell get the list of properties file nattable style [message #1374239 is a reply to message #1374121] Thu, 22 May 2014 14:42 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Exactly!
Re: Where the View Configartions shell get the list of properties file nattable style [message #1374458 is a reply to message #1374239] Thu, 22 May 2014 16:54 Go to previous message
Mohamed SADI is currently offline Mohamed SADIFriend
Messages: 38
Registered: December 2013
Member
Many Thanks Wink
Previous Topic:How fix "OutOfMemoryError" when Nattable contain huge data
Next Topic:Exceptions
Goto Forum:
  


Current Time: Thu Apr 25 05:20:30 GMT 2024

Powered by FUDForum. Page generated in 0.03745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top