Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Proposals for enhancement to ContentAssist

Hi Tom,

I can have a chat with you. 

I assume that you are talking about this proposal:

{
  "styleClass" : "public-method",
  "segments" : [
     { "value" : "bla() : void" },
     { "value" : " - Test",
          "style" : {
             "bold" : "false",
             "italic" : "false",
             "color" : "AAA"
          }
     }
  ]
}

A few questions about this:

1. Who will provide the styleClasses?  Are they hard coded by orioin or provided by plugins?  If the former, that follows the same limitation that we have regarding styling.  If the latter, then we get into security concerns.
2. Perhaps instead of a styleClass, you simply provide an icon (just a url to an icon that you want to use).  And delegate the rest of the styling to the segments.  Or is there something more fundamental that you would like the styleClass to handle?
3. I like the idea of segments.  For a little nit picking, I would recommend using something like "foreground" and "background" instead of just color, or fore-color and back-color, or something to distinguish the two kinds of coloring that we might want to do.


On Tue, Nov 13, 2012 at 6:18 AM, Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx> wrote:
Anyone interested in working with me or providing feedback what you'd
like me to change?

Tom

Am 16.10.12 16:09, schrieb Tom Schindl:
> Hi John,
>
> I filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=392070 and
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=392073 and referenced
> there my current work and reasons.
>
> Tom
>
> Am 15.10.12 21:59, schrieb John Arthorne:
>> Hi Tom,
>>
>> Thanks for introducing yourself here for those you might not know you.
>> Consuming the Orion editor without the server is quite a common case and
>> one I think we support fairly well.
>>
>> Both of your content assist suggestions are very reasonable requests,
>> and I think we can easily add them immediately after 1.0 is out. We can
>> cherry-pick a change from GitHub but we still need a bug report to
>> track. For a) we would need to do some sanity check of the HTML to
>> ensure it is not inserting malicous HTML or scripts. We actually had
>> code much like this early on, but we restricted it because of security
>> concerns. However we could open this up to accept img and formatting
>> tags at least to allow it to be made prettier. Please enter bug reports
>> for both of these enhancements and include a pointer to the commit on
>> github. Contributions are most welcome!
>>
>> John
>>
>>
>>
>> *Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>*
>> Sent by: orion-dev-bounces@xxxxxxxxxxx
>>
>> 10/15/2012 03:28 PM
>> Please respond to
>> Orion developer discussions <orion-dev@xxxxxxxxxxx>
>>
>>
>>
>> To
>>      orion-dev@xxxxxxxxxxx
>> cc
>>
>> Subject
>>      [orion-dev] Proposals for enhancement to ContentAssist
>>
>>
>>
>>
>>
>>
>>
>>
>> Hi,
>>
>> Before filing bugs against Orion I'd like to introduce myself and give
>> some background informations on what I'm doing with Orions-Editor.
>>
>> I'm currently working on a proof of concept Desktop-(Java)-IDE using
>> JavaFX as the widget toolkit because JavaFX does not yet have a rich
>> text widget I'm simply embedding Orions editor component through the so
>> called WebView and use the _javascript_ <=> Java bridge provided by JavaFX
>> => I don't have an orion-server! [1,2]
>>
>> Now to my request I have 2 problems with the current content assist:
>> a) the proposals are not nice enough (compare them to the proposals
>>   provided by the Eclipse-IDE). I'd like to show an icon in front and
>>   meta informations like the package, owning class, ... in more light
>>   color
>>
>> b) I need not only insert informations after the prefix but replace the
>>   prefix instead.
>>   There are various reasons:
>>   * FQN class names need to be inserted (see attached screenshot)
>>   * Upper/lower case replacement e.g. imagine in write sett and popup
>>     the content assist which proposes setText()
>>
>> I've forked the client stuff to my github repo and implemented both
>> functions. [3,4,5]
>>
>> Is this something you want to integrate into your codebase after you
>> have shipped your release? How is your process? Are you using gerrit or
>> accept pull request on github. I'm committer on various eclipse projects
>> if that matters.
>>
>> Next thing I'll have to take a look is to automatically add imports on
>> content proposals but those 2 feature are the most important.
>>
>> Tom
>>
>> [1]https://github.com/tomsontom/fx-ide
>> [2]http://tomsondev.bestsolution.at/2012/10/04/eclipse-techs-on-steroids/
>> [3]https://github.com/tomsontom/orion.client/commits/master/
>> [4]https://github.com/tomsontom/orion.client/commit/368ecc215c159aa5513cd89adcdb9331bd74086e
>> [5]https://github.com/tomsontom/orion.client/commit/35ad2c842332a03fedd2658fd43a0e59347ed054
>>
>> --
>> B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
>> ------------------------------------------------------------------------
>> tom schindl                 geschäftsführer/CEO
>> ------------------------------------------------------------------------
>> eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
>> http://www.BestSolution.at <http://www.bestsolution.at/>
>>      phone    ++43 512 935834
>> _______________________________________________
>> orion-dev mailing list
>> orion-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/orion-dev
>>
>>
>>
>> _______________________________________________
>> orion-dev mailing list
>> orion-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/orion-dev
>>
>
>


--
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                 geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
http://www.BestSolution.at                      phone    ++43 512 935834
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top