Skip to main content



      Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » PreferencePages
PreferencePages [message #18309] Fri, 30 November 2007 04:36 Go to next message
Eclipse UserFriend
Originally posted by: special1.gmx.de

Hi,

I'm actually trying to programm some preference pages that define the editor
colors und font style, but I'm
not able to update the new changes without restarting eclipse itself. I want
to update the editor style and e.g. change
some symbol colors by pushing the "Ok" button, is this possible ?

My Ok button code in the preference page looks at the moment like this, but
it want work

public boolean performOk() {

try {

preferences.save();

EditorsUI.useAnnotationsPreferencePage(preferences);
EditorsUI.useQuickDiffPreferencePage(preferences);
TMPreferenceConstants.initializeDefaultValues(preferences);

} catch ( Exception e ) {
e.printStackTrace();
}

return super.performOk();
}


Thanks for help !
Sebastian
Re: PreferencePages [message #18326 is a reply to message #18309] Fri, 30 November 2007 17:18 Go to previous messageGo to next message
Eclipse UserFriend
you shouldn't have to override 'performOk' in order to get this to work.

take a look at any of the individual language toolkit
implementatations of the AbstractConfigurationBlockPreferencePage and
AbstractScriptEditorColoringConfigurationBlock classes.

also, since you're asking dev type questions, you might be better off
posting these to the dltk mailing list: dltk-dev@eclipse.org

On 2007-11-30 04:36:28 -0500, "Sebastian Biedermann" <special1@gmx.de> said:

> Hi,
>
> I'm actually trying to programm some preference pages that define the
> editor colors und font style, but I'm
> not able to update the new changes without restarting eclipse itself. I
> want to update the editor style and e.g. change
> some symbol colors by pushing the "Ok" button, is this possible ?
>
> My Ok button code in the preference page looks at the moment like this,
> but it want work
>
> public boolean performOk() {
>
> try {
>
> preferences.save();
>
> EditorsUI.useAnnotationsPreferencePage(preferences);
> EditorsUI.useQuickDiffPreferencePage(preferences);
> TMPreferenceConstants.initializeDefaultValues(preferences);
>
> } catch ( Exception e ) {
> e.printStackTrace();
> }
>
> return super.performOk();
> }
>
>
> Thanks for help !
> Sebastian



--
-jae
Newsgroup vs. Mailing List (was Re: PreferencePages) [message #19522 is a reply to message #18326] Wed, 02 January 2008 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brunodomedeiros+spam.com.gmail

Jae Gangemi wrote:
>
> also, since you're asking dev type questions, you might be better off
> posting these to the dltk mailing list: dltk-dev@eclipse.org
>

Hum, now that you mention it, I was wondering about that: What are
"dev-type questions"? Should questions of developers that are making
their own DLTK-based IDE be placed here in the newsgroup, or in the
mailing list?
The newsgroup is the one that seems to be used more often, and I
personally think it's a better medium than a mailing list, but what is
the official stance (if any) ?

--
Bruno Medeiros
DLTK-based D IDE: http://www.dsource.org/projects/descent/wiki/Mmrnmhrm
Re: Newsgroup vs. Mailing List (was Re: PreferencePages) [message #19567 is a reply to message #19522] Wed, 02 January 2008 20:32 Go to previous messageGo to next message
Eclipse UserFriend
On 2008-01-02 16:42:07 -0500, Bruno Medeiros
<brunodomedeiros+spam@com.gmail> said:

> Jae Gangemi wrote:
>>
>> also, since you're asking dev type questions, you might be better off
>> posting these to the dltk mailing list: dltk-dev@eclipse.org
>>
>
> Hum, now that you mention it, I was wondering about that: What are
> "dev-type questions"? Should questions of developers that are making
> their own DLTK-based IDE be placed here in the newsgroup, or in the
> mailing list?
> The newsgroup is the one that seems to be used more often, and I
> personally think it's a better medium than a mailing list, but what is
> the official stance (if any) ?

i actually think you'll get better responses on the mailing list then
here. (and i personally don't check this group as often as i do my
mail).

you should definately subscribe if you're developing a plugin - i try
to post there when i add some new piece of functionality, especially
one that could disrupt others using the core framework.

for instance, the ability to have a project specific debugging engine
is now possible in the head. at the moment i'm splitting my time
between allowing 'general' debugging options to be configured on a per
language/project basis instead of globally and making workspace/context
menu improvements so there is a more consistent feel between all the
dltk languages and the jdt.

--
-jae
Re: Newsgroup vs. Mailing List (was Re: PreferencePages) [message #19924 is a reply to message #19567] Wed, 09 January 2008 17:36 Go to previous message
Eclipse UserFriend
Originally posted by: brunodomedeiros+spam.com.gmail

Jae Gangemi wrote:
> On 2008-01-02 16:42:07 -0500, Bruno Medeiros
> <brunodomedeiros+spam@com.gmail> said:
>
>> Jae Gangemi wrote:
>>>
>>> also, since you're asking dev type questions, you might be better
>>> off posting these to the dltk mailing list: dltk-dev@eclipse.org
>>>
>>
>> Hum, now that you mention it, I was wondering about that: What are
>> "dev-type questions"? Should questions of developers that are making
>> their own DLTK-based IDE be placed here in the newsgroup, or in the
>> mailing list?
>> The newsgroup is the one that seems to be used more often, and I
>> personally think it's a better medium than a mailing list, but what is
>> the official stance (if any) ?
>
> i actually think you'll get better responses on the mailing list then
> here. (and i personally don't check this group as often as i do my mail).
>
> you should definately subscribe if you're developing a plugin - i try
> to post there when i add some new piece of functionality, especially one
> that could disrupt others using the core framework.
>

I am already subscribed (so I don't miss out anything :P ), but I would
prefer for the NG to be used. It would also be similar the other Eclipse
projects, but it's not a big issue anyways.

--
Bruno Medeiros - MSc in CS/E student
Previous Topic:Execute required files in Ruby?
Next Topic:vertical line numbers
Goto Forum:
  


Current Time: Tue May 13 23:53:19 EDT 2025

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

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

Back to the top