Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Colour Preferences
Colour Preferences [message #895682] Sat, 14 July 2012 21:23 Go to next message
Wojtek  is currently offline Wojtek Friend
Messages: 47
Registered: August 2011
Member
Is there a way to export (then import) just the Java editor colour
preferences?

I have tried to edit the preferences export file, but the import states
that I cannot import partial settings.

Settings like:
/instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.bold=true


If there is no way to export/import, then what settings (in the
preferences file) do I need to make the importer import the colours?

--
Wojtek :-)
Re: Colour Preferences [message #895694 is a reply to message #895682] Sun, 15 July 2012 05:18 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Wojtek,

No, I don't think so, but you could copy your exported preference file
and delete all the but the color settings from it so you end up with a
preference file for just the colors.


On 14/07/2012 11:23 PM, Wojtek wrote:
> Is there a way to export (then import) just the Java editor colour
> preferences?
>
> I have tried to edit the preferences export file, but the import
> states that I cannot import partial settings.
>
> Settings like:
> /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.bold=true
>
>
>
> If there is no way to export/import, then what settings (in the
> preferences file) do I need to make the importer import the colours?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Colour Preferences [message #895696 is a reply to message #895682] Sun, 15 July 2012 05:18 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Wojtek,

No, I don't think so, but you could copy your exported preference file
and delete all the but the color settings from it so you end up with a
preference file for just the colors.


On 14/07/2012 11:23 PM, Wojtek wrote:
> Is there a way to export (then import) just the Java editor colour
> preferences?
>
> I have tried to edit the preferences export file, but the import
> states that I cannot import partial settings.
>
> Settings like:
> /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.bold=true
>
>
>
> If there is no way to export/import, then what settings (in the
> preferences file) do I need to make the importer import the colours?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Colour Preferences [message #895698 is a reply to message #895682] Sun, 15 July 2012 05:18 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Wojtek,

No, I don't think so, but you could copy your exported preference file
and delete all the but the color settings from it so you end up with a
preference file for just the colors.


On 14/07/2012 11:23 PM, Wojtek wrote:
> Is there a way to export (then import) just the Java editor colour
> preferences?
>
> I have tried to edit the preferences export file, but the import
> states that I cannot import partial settings.
>
> Settings like:
> /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.bold=true
>
>
>
> If there is no way to export/import, then what settings (in the
> preferences file) do I need to make the importer import the colours?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Colour Preferences [message #895703 is a reply to message #895694] Sun, 15 July 2012 07:14 Go to previous messageGo to next message
Wojtek  is currently offline Wojtek Friend
Messages: 47
Registered: August 2011
Member
Ed Merks wrote :
> Wojtek,
>
> No, I don't think so, but you could copy your exported preference file and
> delete all the but the color settings from it so you end up with a
> preference file for just the colors.

Yes I tried doing that. I did a search for "semanticHighlighting" and
saved those. But the importer still complained about incomplete
settings.

So I either missed one or more, there are some which use a different
key, or there is some special flag which is required.

I really don't want to import the entire preferences as there are
skeletons from previous version and plugins I would like to go away.

Maybe kind of trivial, but I spent a lot of time tweaking the colours,
and my brain "sees" different syntax as required.

>
> On 14/07/2012 11:23 PM, Wojtek wrote:
>> Is there a way to export (then import) just the Java editor colour
>> preferences?
>>
>> I have tried to edit the preferences export file, but the import states
>> that I cannot import partial settings.
>>
>> Settings like:
>> /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.bold=true
>>
>>
>>
>> If there is no way to export/import, then what settings (in the preferences
>> file) do I need to make the importer import the colours?

--
Wojtek :-)
Re: Colour Preferences [message #895713 is a reply to message #895703] Sun, 15 July 2012 08:46 Go to previous messageGo to next message
Ed Merks is currently online Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Have you tried in a clean workspace to change a single setting to see
how exporting that looks?

On 15/07/2012 9:14 AM, Wojtek wrote:
> Ed Merks wrote :
>> Wojtek,
>>
>> No, I don't think so, but you could copy your exported preference
>> file and delete all the but the color settings from it so you end up
>> with a preference file for just the colors.
>
> Yes I tried doing that. I did a search for "semanticHighlighting" and
> saved those. But the importer still complained about incomplete settings.
>
> So I either missed one or more, there are some which use a different
> key, or there is some special flag which is required.
>
> I really don't want to import the entire preferences as there are
> skeletons from previous version and plugins I would like to go away.
>
> Maybe kind of trivial, but I spent a lot of time tweaking the colours,
> and my brain "sees" different syntax as required.
>
>>
>> On 14/07/2012 11:23 PM, Wojtek wrote:
>>> Is there a way to export (then import) just the Java editor colour
>>> preferences?
>>>
>>> I have tried to edit the preferences export file, but the import
>>> states that I cannot import partial settings.
>>>
>>> Settings like:
>>> /instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.bold=true
>>>
>>>
>>>
>>>
>>> If there is no way to export/import, then what settings (in the
>>> preferences file) do I need to make the importer import the colours?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Colour Preferences [message #895720 is a reply to message #895713] Sun, 15 July 2012 10:39 Go to previous messageGo to next message
Wojtek  is currently offline Wojtek Friend
Messages: 47
Registered: August 2011
Member
Ed Merks wrote :
> Have you tried in a clean workspace to change a single setting to see how
> exporting that looks?

Now that's interesting. The only colour information is the one change I
made. However there are a lot of keys such as:

@org.eclipse.mylyn.monitor.ui=3.8.0.v20120612-0600

Plus the settings are all mixed up. It is almost like Eclipse fires off
a bunch of threads, probably one for every major preference type, then
writes out the settings as each one arrives from a thread.

There is also a header with a datetime stamp.

.....

Well I tried various combinations of keys, single keys, all the keys,
and the colours will not import.

There must be a setting I am missing which validates the rest of the
settings for syntax colours.

--
Wojtek :-)
Re: Colour Preferences [message #895729 is a reply to message #895720] Sun, 15 July 2012 12:21 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
This works for example.(confirmed on 4.2.0)
>/instance/org.eclipse.jdt.ui/semanticHighlighting.staticField.italic=false
>file_export_version=3.0
Re: Colour Preferences [message #895757 is a reply to message #895729] Sun, 15 July 2012 19:29 Go to previous messageGo to next message
Wojtek  is currently offline Wojtek Friend
Messages: 47
Registered: August 2011
Member
Toshihiro Izumi wrote :
> This works for example.(confirmed on 4.2.0)
>>/instance/org.eclipse.jdt.ui/semanticHighlighting.staticField.italic=false
>>file_export_version=3.0

Here is the entire file I am trying to use as an import. I added the
file version at the end, but it still does not import.

----------------------------------------------
#Sun Jul 15 03:01:14 PDT 2012
/instance/org.eclipse.jdt.ui/pf_coloring_argument=0,0,255
/instance/org.eclipse.jdt.ui/pf_coloring_assignment_bold=true
/instance/org.eclipse.jdt.ui/pf_coloring_assignment=255,0,0
/instance/org.eclipse.jdt.ui/pf_coloring_comment=128,128,128
/instance/org.eclipse.jdt.ui/pf_coloring_key=128,0,0
/instance/org.eclipse.jdt.ui/pf_coloring_value=0,0,0
/instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.color=0,0,160
/instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.abstractMethodInvocation.underline=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.annotation.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.annotation.color=255,128,0
/instance/org.eclipse.jdt.ui/semanticHighlighting.annotationElementReference.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.autoboxing.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.autoboxing.color=255,0,0
/instance/org.eclipse.jdt.ui/semanticHighlighting.autoboxing.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.autoboxing.strikethrough=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.autoboxing.underline=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.class.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.class.color=128,0,64
/instance/org.eclipse.jdt.ui/semanticHighlighting.class.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.enum.color=128,0,255
/instance/org.eclipse.jdt.ui/semanticHighlighting.enum.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedMethodInvocation.color=0,0,128
/instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedMethodInvocation.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.inheritedMethodInvocation.underline=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.interface.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.interface.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.localVariable.color=0,128,128
/instance/org.eclipse.jdt.ui/semanticHighlighting.localVariable.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.localVariableDeclaration.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.localVariableDeclaration.color=0,128,128
/instance/org.eclipse.jdt.ui/semanticHighlighting.localVariableDeclaration.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.method.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.methodDeclarationName.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.parameterVariable.color=128,0,0
/instance/org.eclipse.jdt.ui/semanticHighlighting.parameterVariable.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.staticFinalField.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.staticFinalField.color=0,0,255
/instance/org.eclipse.jdt.ui/semanticHighlighting.staticFinalField.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.staticFinalField.italic=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.staticMethodInvocation.color=0,128,255
/instance/org.eclipse.jdt.ui/semanticHighlighting.typeArgument.bold=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.typeArgument.enabled=true
/instance/org.eclipse.jdt.ui/semanticHighlighting.typeParameter.enabled=true
/instance/org.eclipse.jdt.ui/sourceHoverBackgroundColor=255,255,225
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Background=250,255,250
/instance/org.eclipse.ui.editors/currentLineColor=253,253,253
/instance/org.eclipse.ui.editors/errorIndicationColor=255,0,0
/instance/org.eclipse.ui.editors/infoIndicationColor=0,255,0
/instance/org.eclipse.ui.editors/lineNumberRuler=true
/instance/org.eclipse.ui.editors/occurrenceIndicationColor=255,255,0
/instance/org.eclipse.ui.editors/occurrenceIndicationInVerticalRuler=true
/instance/org.eclipse.ui.editors/warningIndicationColor=255,128,0
file_export_version=3.0
----------------------------------------------

--
Wojtek :-)
Re: Colour Preferences [message #895785 is a reply to message #895757] Mon, 16 July 2012 02:59 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
Your file can be imported. It works for me Smile
(confirmed on eclipse for some of syntax coloring settings and matched against re-exported preferences)(with new installation)
I wouldn't say you did nothing.
Re: Colour Preferences [message #895788 is a reply to message #895785] Mon, 16 July 2012 04:08 Go to previous message
Wojtek  is currently offline Wojtek Friend
Messages: 47
Registered: August 2011
Member
Toshihiro Izumi wrote :
> Your file can be imported. It works for me :)
> (confirmed on eclipse for some of syntax coloring settings and matched
> against re-exported preferences)(with new installation)
> I wouldn't say you did nothing.

I must have missed some settings in the "clean" file. You are right it
does import, but the changes I was looking for did not appear.

Thanks

--
Wojtek :-)
Previous Topic:Need help with eclipse for PHP ramp up
Next Topic:Eclipse Plugin Development Environment
Goto Forum:
  


Current Time: Fri Apr 19 09:17:05 GMT 2024

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

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

Back to the top