Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Preferences page
Preferences page [message #736717] Fri, 14 October 2011 09:10 Go to next message
etudes-developpements is currently offline etudes-developpementsFriend
Messages: 8
Registered: July 2011
Junior Member
We are currently working on an E4 application which must include a Preferences page. We have seen that the EPreferences project has been developed to provide an API for managing the preferences but it seems that no existing project aims at managing the graphical part.

We would like to integrate the Eclipse community and contribute to the Eclipse e4 project by developing a generic Preferences page, similar to the Eclipse 3.x one. If it isn't possible, we will have to develop our own graphical page, which could be moved if a standard one is developed in the future. Our main idea is to base on the EPreferences project and to extend the EMF model to provide a Preferences object which could be use by any application.

As we aren't very familiar with the notion of community, we aren't sure to be on the right way. We invite everyone to bring comments on this. We hope to begin a discussion that will enable us to clarify the functionality that would be beneficial to the Eclipse e4 project.
Re: Preferences page [message #736898 is a reply to message #736717] Fri, 14 October 2011 12:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Please send a mail with the stuff you'd like to work on to the e4-dev
mailing list so that we can discuss there how this work should be
structured.

My current believe is that we could hopefully refactor the old
preference page system in a way that we can directly use it in e4
applications.

Tom

Am 14.10.11 11:11, schrieb etudes-developpements:
> We are currently working on an E4 application which must include a
> Preferences page. We have seen that the EPreferences project has been
> developed to provide an API for managing the preferences but it seems
> that no existing project aims at managing the graphical part.
> We would like to integrate the Eclipse community and contribute to the
> Eclipse e4 project by developing a generic Preferences page, similar to
> the Eclipse 3.x one. If it isn't possible, we will have to develop our
> own graphical page, which could be moved if a standard one is developed
> in the future. Our main idea is to base on the EPreferences project and
> to extend the EMF model to provide a Preferences object which could be
> use by any application.
> As we aren't very familiar with the notion of community, we aren't sure
> to be on the right way. We invite everyone to bring comments on this. We
> hope to begin a discussion that will enable us to clarify the
> functionality that would be beneficial to the Eclipse e4 project.
Re: Preferences page [message #737719 is a reply to message #736898] Sat, 15 October 2011 10:56 Go to previous messageGo to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Hello Tom,
Why is Preference not seem to be very important to be included in the first two releases of e4? Will preference support be included in e4 release next June/July?
Re: Preferences page [message #737851 is a reply to message #737719] Sat, 15 October 2011 14:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
[This is my personal view and other team members might disagree]

Well everything is important but the most important thing is that the
compat layer is enterprise ready and this where currently all resources
from IBM get dedicated to.

So I don't expect that you get preference editing support for free in
the Eclipse 4.2 Application Platform unless someone from the community
steps up and contributes it.

My 4.2 focus is on 3 things:
----------------------------
* Tooling: Improve the Model-Editor (e.g. integrate search,
refactoring, ...)

* Alternate Rendering: I've a quite good working JavaFX-Renderer
including a declarative DSL
=> JavaFX is the thing most of my current
OSS-Time is spent
* Improve the e4 bridge
* Support for e4 Handlers in 3.x
* Broker-Services e.g. openViews,

On my wish list:
----------------
* Tooling for my @Translation injection and pushing it in to the
Eclipse Application Platform

* Native Editor-Support in the Eclipse 4.2 Application Model

* Refactor existing Platform-code parts to run without the Compat layer
on the Eclipse 4.2 Application Platform
* Dialog including Preference Dialogs
* Views like ConsoleView, ...


So while I agree the points on my wish list are important like e.g.
preference editing it's quite unlikely that I'll have the time to
implement (nor I guess the rest of the team will have) them but if I
read the initial post correct this guy/girl is going to implement such a
system and contribute it back

Tom

Am 15.10.11 12:56, schrieb St Clair Clarke:
> Hello Tom,
> Why is Preference not seem to be very important to be included in the
> first two releases of e4? Will preference support be included in e4
> release next June/July?
Re: Preferences page [message #739453 is a reply to message #736717] Mon, 17 October 2011 13:51 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
It's relatively easy to populate and popup a preference dialog. I've attached the code I use in Kizby. This uses the more simple JFace preference dialog as the filterable dialog is defined in org.eclipse.ui.

We do need to figure out how to simplify the transition from E3.x to E4.x. We're tracking the issue in bug 350251.

Brian.
Re: Preferences page [message #742162 is a reply to message #739453] Thu, 20 October 2011 08:33 Go to previous messageGo to next message
etudes-developpements is currently offline etudes-developpementsFriend
Messages: 8
Registered: July 2011
Junior Member
As we haven't received any response concerning this issue by the mailing list (except the one of Brian, thanks for it), we have started to work on it on our side.
We are going to start the specification phase and we would like to submit the result of it to the e4 community but we don't have any idea about the process to follow. So we have some questions:
- Is there any existing format for the specifications?
- Where can we find any information on the validation process?
- Is there any documentation on the different steps for contributing to an e4 feature?
It would also be very interesting for us to have some information about the committers team.

Anthony

[Updated on: Thu, 20 October 2011 08:33]

Report message to a moderator

Re: Preferences page [message #742462 is a reply to message #742162] Thu, 20 October 2011 14:13 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
As Tom said, the best thing to do is to send an email to the e4-dev mailing list. Or join the weekly e4 call. See the calendar on the e4 wiki page for details:

http://wiki.eclipse.org/E4

This might be a bit late as we're on the call right now, but if you're availble right now...

Brian.
Re: Preferences page [message #742987 is a reply to message #739453] Fri, 21 October 2011 02:49 Go to previous messageGo to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Hello Bryan,

Thanks a million for the tip.

Questions:
1. Do I populate this page with eclipse 3.x-type preference pages?
2. Do you know if I can use this mechanism to create all preferences for all plugins in single plugin say, admin, and then access these preferences from other plugins as indicated at http://www.vogella.de/articles/EclipsePreferences/article.html#preferences_pluginaccess

Thanks again.
Re: Preferences page [message #742989 is a reply to message #737851] Fri, 21 October 2011 02:52 Go to previous messageGo to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Thanks Tom.
Re: Preferences page [message #743531 is a reply to message #742987] Fri, 21 October 2011 15:01 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Most of the preferences work is actually split across Equinox and JFace. Platform UI only contributes the filterable dialog and (unfortunately) the ScopedPreferenceStore which provides a bridge between Equinox-style (e.g., InstanceScope, DefaultScope) preferences and JFace-style preferences. The scopes can access any particular plugins' settings.

I'd recommend that, for now, you make a copy of ScopedPreferenceStore. We're looking into how to expose these E3.x and E4.x utility classes in more friendly ways. But it won't be until M4.

Brian.
Re: Preferences page [message #744910 is a reply to message #743531] Sat, 22 October 2011 12:36 Go to previous messageGo to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Hello Brian,
Could you please demonstrate the following for me:
1. Create a simple preference page (e4 compatible)
2. Add this preference page to your dialogue.

Thanks a million.
Re: Preferences page [message #745184 is a reply to message #744910] Sat, 22 October 2011 16:52 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
St Clair Clarke wrote on Sat, 22 October 2011 08:36
Hello Brian,
Could you please demonstrate the following for me:
1. Create a simple preference page (e4 compatible)
2. Add this preference page to your dialogue.


The code I posted is fully compatible with the E3.x style of preference page. You should be able to follow the Preference Page part of Lars' tutorial:

http://www.vogella.de/articles/EclipsePreferences/article.html#preferencepage

Brian.
Re: Preferences page [message #745223 is a reply to message #745184] Sat, 22 October 2011 17:27 Go to previous messageGo to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Thanks Brian,

But I am trying to learn how to display Preference pages in eclipse 4.x.

If you have any info I would appreciate it.

Thanks a million.

NB: I popup the dialog you posted in e4 - question is how do I now get it to display preference pages. Doing e3.x way will NOT work as e4 is different.

Re: Preferences page [message #749070 is a reply to message #745223] Tue, 25 October 2011 02:47 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
St Clair Clarke wrote on Sat, 22 October 2011 13:27

But I am trying to learn how to display Preference pages in eclipse 4.x.
[...]
NB: I popup the dialog you posted in e4 - question is how do I now get it to display preference pages. Doing e3.x way will NOT work as e4 is different.


I'm not sure why you think the E3.x way won't work -- Eclipse 4.x doesn't throw everything out from Eclipse 3.x. E4.x started to try to simplify the E3.x APIs that were seen as being inflexible or complicated. And no-one proposed redoing how preferences are presented to the user (yet). You can still use JFace and SWT with an E4.x app; the preferences UI are almost entirely defined in JFace.

"etudes-developpements" is proposing to start defining a modelled preferences approach for Eclipse 4.x. What do you think such a model should look like? What do you find hard about the JFace/E3.x approach to presenting preferences?
Re: Preferences page [message #750139 is a reply to message #749070] Tue, 25 October 2011 16:49 Go to previous messageGo to next message
St Clair Clarke is currently offline St Clair ClarkeFriend
Messages: 118
Registered: March 2010
Senior Member
Thanks for the info.

My preference pages are now being displayed.

I use Google's WindowBuilder Pro (WBP) for development of Preference Pages. WBP has a custom FieldLayoutPreferencePage that allows the use of both Standard SWT/JFace widgets as well as FieldEditors. It also allows a GridLayout which is more flexible. Please consider giving us this option during your preference development.


Re: Preferences page [message #1023903 is a reply to message #739453] Mon, 25 March 2013 12:33 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 194
Registered: January 2012
Senior Member

I was asked about the licensing of the code that I posted above -- for those countries that do not have a concept of 'public domain', please consider the code as being licensed under the UnLicense (unlicense.org).

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:core experssion not evaluated for wisibleWhen
Next Topic:Shortcut problems in 2nd editor
Goto Forum:
  


Current Time: Sat Dec 20 00:56:23 GMT 2014

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

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