Topic: SWT and Renderers?

Hey there!
I have a question about the representation of SWT-Widgets. I need a table and one column of the table should be represented as a tree.
In Swing, this is absolutely no problem. In the table model, I could return (maybe for column 3) nested data (instead of a string). Then, I implement a TableCellRenderer and return a filled tree as renderer component for column 3.
Is there any way to realize this in SWT?
Thanks for your help!

I believe so. well, as long as there is an Eclipse project, there will be SWT and JFace. whether 'java embraces these technologies' is dependent on what you mean by that. Will they ever be considered the de facto windowing libraries for Java? doubtful. Will their use become more widespread? possibly, but the libraries need to mature a bit first IMHO; at the moment, the entire SWT project is driven by the needs of Eclipse. Any bugs that impact Eclipse, and any features that Eclipse demands, take precedence over any other bugs and features in SWT/JFace, and it's certainly no fun trying to build a commercial product on top of libraries that are treated this way
As regards commercial importance, I've got SWT/JFace and the Eclipse RCP on my CV, and although I get a lot of calls from agents, only once has anyone rung me with a position that required knowledge of these libraries. That said, the market is suddenly more-and-more awash with so-called Rich Client Platforms ( Eclipse, NetBeans and Spring-RCP to name a few ) and if any one of them is destined to be a success, my money is on the Eclipse RCP, so it may just pay to have the skills
Also, since everywhere I work seems to be an Eclipse house these days, my SWT/JFace and Eclipse RCP knowledge comes in very handy for quickly knocking together any test tools, utilities or what-not, and giving them to the rest of the developers as a nice Eclipse plugin

Similar Messages

  • What is the difference between Topic Keywords and Index File Keywords?

    What is the difference between Topic Keywords and Index File Keywords? Any advantages to using one over the other? Do they appear differently in the generated index?
    RH9.0.2.271
    I'm using Webhelp

    Hi there
    When you create a RoboHelp project you end up with many different ancillary files that are used to store different bits of information. Many of these files bear the name you assigned to the project at the time you created it. The index file has the project name and it ends with a .HHK file extension. (HHK meaning HTML Help Keywords)
    Generally, unless you change RoboHelp's settings, you add keywords to this file and associate topics to the keywords via the Index pod. At the time you compile a CHM or generate other types of output, the file is consulted and the index is built.
    As I said earlier, the default is to add keywords to the Index file until you configure RoboHelp to add the keywords to the topics themselves. Once you change this, any keyword added will become a META tag in the topic code. If your keyword is BOFFO, the META tag would look like this:
    <meta name="MS-HKWD" content="BOFFO" />
    When the help is compiled or generated, the Index (.HHK) file is consulted as normal, but any topics containing keywords added in this manner are also added to the Index you end up with. From the appearance perspective, the end user woudn't know the difference or be able to tell. Heck, if all you ever did was interact with the Index pod, you, as an author wouldn't know either. Well, other than the fact that the icons appear differently.
    Operationally, keywords added to the topics themselves may hold an advantage in that if you were to import these topics into other projects, the Index keywords would already be present.
    Hopefully this helps... Rick

  • Is it OK to re-use 1 instance of editors and renderers?

    Hi,
    The simple version of the question, is can I make 1 instance of my custom cell editor and cell renderer classes and safely use it in all my JTable instances?
    For example, I have a DateRenderer class, and instantiate it in a static member, and use it in all Date columns and tables, many of which will be instatiated at one time. If a column needs a non-default format, then I guess I'd create a special instance for it, other wise it would use the default instance.
    It seems to be OK so far, but but my program hasn't received any serious usage yet.
    As to why, I'm thinking this way, I've been messing around with CellEditors and renderers and despite wanting to use default functionality whenver possible, I find that I'm using custom versions for every situation... so if possible, I'd like to keep the number of instances to a minimum.
    Regards
    Iain

    OK, I see what you mean.
    Stop cell editing on focus lost isn't the default behaviour, but I've had to use it anyway (it seems to make sense).
    The reason I asked is that, to get the behaviour that I want, it looks like I'll have to have my custom renderers and editors on every column of every table so I'd like to avoid unneccessary instantiation.
    I'm aiming for a system where:
    - 1 click selects the row (default behaviour),
    - 2 clicks starts editing the cell (also default),
    - but tabbing or pressing enter after editing a cell keeps you in editing mode.
    I don't suppose that many people here have had experience with this, but entering Japanese (and presumably other non ascii type character sets) using MS's IME doesn't work very well with the standard JTable behaviour. If you don't double click, the entered japanese text appears in a little IME window somewhere on the screen (no neccessarily near the editing cell) and just gets lost when you press enter. You have to double click every time, and I can't see the users accepting that.
    I'll be investigating this over tme, and hopefully will be able to get it working smoothly.
    Thanks,
    Iain

  • MDB topic listener and concurrent processing

    Hello to everybody.
    I ve prototyped simple db publisher ,which publishes changed data from database to JMS topic. Then I have my MDB which listens on JMS topic.
    I setup and implemented all correctly and it worked. There was 1 consumer = 1 mdb instance. Then I tried to do load testing , So I triggered 8000 changes from database. The db adapter did the job and published the 8000 messages on the JMS topic in a while. To mimic processing in MDB I put the sleep(10seconds) in MDB.
    MDB topic processing seems to me as not concurrent one. Why? I observed 10 message decrease with 5-10 seconds.
    What I expected was: concurrent processing of 8000 JMS messages by 1 MDB (so MDB is poolable component isnt it?).
    So for 500 instances of topic MDB and 8000 messages on the JMS topic, I expected at least 8000/500 X 10 = 160 seconds to process message load.
    I am using WLS 816.
    Can You give me some hits.
    Thanks
    Roman

    I did the same test on Weblogic 10 and it worked as expected. MDB durable subscriber consumed 8000 messages (each msg processing had 10 secs sleep inside.) within 2 minutes. So it is ok.
    But why it did not worked on WLS 8.1? Is this a bug ?

  • SWT and JFace

    Does SWT and JFace has a future ? I'm currently involved in working with these two.
    Will Java Embrace these two technologies ? Would it be worth putting a lot of hard work on it ?
    Thank You

    I believe so. well, as long as there is an Eclipse project, there will be SWT and JFace. whether 'java embraces these technologies' is dependent on what you mean by that. Will they ever be considered the de facto windowing libraries for Java? doubtful. Will their use become more widespread? possibly, but the libraries need to mature a bit first IMHO; at the moment, the entire SWT project is driven by the needs of Eclipse. Any bugs that impact Eclipse, and any features that Eclipse demands, take precedence over any other bugs and features in SWT/JFace, and it's certainly no fun trying to build a commercial product on top of libraries that are treated this way
    As regards commercial importance, I've got SWT/JFace and the Eclipse RCP on my CV, and although I get a lot of calls from agents, only once has anyone rung me with a position that required knowledge of these libraries. That said, the market is suddenly more-and-more awash with so-called Rich Client Platforms ( Eclipse, NetBeans and Spring-RCP to name a few ) and if any one of them is destined to be a success, my money is on the Eclipse RCP, so it may just pay to have the skills
    Also, since everywhere I work seems to be an Eclipse house these days, my SWT/JFace and Eclipse RCP knowledge comes in very handy for quickly knocking together any test tools, utilities or what-not, and giving them to the rest of the developers as a nice Eclipse plugin

  • Master Pages / Sync topic list and Project Manager

    Hi,
    Is there an easier way to see if I've applied my Master page to all my topics rather than right-clicking and checking Properties for each topic?  No indication of a Master page shows up in my topic list and there isn't a report I saw to identify this.  What I have in my Master page is code so it would not be apparent by looking at output.
    Also, is there a way to sync the highlighting within RH to the topic I'm working on.  For example, if I'm working in a topic and it's highlighted in my topic list, the same topic isn't highlighted in the Project Manager?
    Thanks very much,
    Sue

    Hi there
    If you look at the Topic List pod you should be able to see a column labeled Master Page.
    Click image below for larger view.
    If you don't see this column, you might need to scroll the scroll bar to the right. Note also that you may drag the column header to place it next to the Topic name if you like. Also, you may need to right-click the column headers in order to enable the Master Page.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • SWT and Eclipse Plugin

    im having trouble creating a plugin. i have created my code in JFC but unfortunately it wouldn't work in Eclipse plugin. it must be written in SWT..
    after searching tons of website on SWT and Eclipse Plugin, i came across the plugin wizard of Eclipse..
    i have created a sample SWT code and i was wondering how can i get it to work with an Eclipse plugin? i was editing the files under the src folder but to no avail, im still stuck..
    please help me.. thanx a lot.

    the wizards for generating eclipse plugins are quite useful if you use the right one. there's sample projects for more UI artifacts (editors, views etc). they'll do a lot of the legwork of setting up and configuring, say, a view, and give you a blank Composite to put your own work on
    you can also use the AWT_SWT bridge if you really want to use AWT or Swing components on your plugins, but it's a pain in the @rse to be honest
    also, you'd be far better off going to eclipse.org newsgroups for this sort of question. hardly anyone here uses SWT or writes plugins, that I know of

  • How to get a list of Topic Titles and coresspoding HTM names in RH 9?

    I need to generate a report containing the list of Topic Titles and the coressponding HTM names in a RH9 project. Any pointers on how this can be achieved?

    Use the Tools > Reports > Topic Properies menu item. If you use the Options button to deselect all the options you'll end up with exactly what you want. You can even export it to a TXT or RTF file.

  • Can commas within topic titles and *.htm filenames affect hyperlink jumps?

    I have two topics that I'm trying to jump to from other
    topics. The thing these two topics have in common is that I
    originally used commas and apostrophes in the topic titles and
    *.htm filenames. This seemed to screw things up, since my jumps to
    the topics never worked.
    I deleted the topics that were causing problems and re-added
    them without using the punctuation. I still can't jump to these
    topics. To test whether there was a restriction on the maximum
    number of jumps you can add in one project, I created a jump to an
    entirely different topic - the jump worked.
    So, I think something got corrupted with these topics. I
    could try deleting them and adding them "fresh" again, but I
    thought I'd post here to see if anyone has come across the problem
    before.
    thanks in advance,
    ChristyG

    I was able to fix the problem by re-creating (for a second
    time) the topic titles and files and not using any punctuation
    whatsover. I think the problem stemmed from the keywords that were
    used/unused/deleted/reused. I went to the Index tab, selected "See
    Also" from the drop list, and deleted any keywords that were
    bolded.
    regards,
    ChristyGTWE

  • Philosophy of tags, components and renderers

    I am having a rough time getting my head around JSF's separation of JSP tags, components and renderers. Specifically:
    1. Why are there so many HTML specific components? Clearly, there must be HTML renderers, and perhaps some components only make sense in a HTML world, but why is something like 'HtmlOutputText' not simply 'OutputText' with a HTML renderer?
    2. Why should you use application.createComponent("javax.faces.HtmlInputText") rather than 'new HtmlInputText()'? What does this extra level of indirection buy you?
    3. Why does the JSP tag nominate the renderer name that the renderkit looks up? Shouldn't the component be doing this? If I have a non-JSP framework, will it therefore have to specify renderer names for every single component too?
    Regards,
    Richard.

    Update:
    1. SOLVED: I now see that the HTML specific components are not HTML in terms of the platform they render to, only the attributes they need to accept (eg. styleClass). This is, of course, fine.
    2. Any ideas, anyone?
    3. It seems you can safely return null from the JSP tag's getRenderer, and just use the Component's getRendererType instead. In that case, what is the JSP tag's method for?

  • Models and Renderers

    Hello All
    I am workin on a project in swing and need to know why to create your own model and renderers. I have read quite a few documents on the net but they seem to be too complex. Could anyone direct me to an easier site Please.
    I need your help urgently
    Thanks in advance
    Maria

    Why create own Models :
    Because if we need some extra functionality like if we want that when we add Boolean in JTable this will appear as a CheckBox so we just make our own TableModel, overwrite its getClass method .
    Why create own Renderer :
    just like models, if we need some extra functionality through renderer like if we want to change default icons if JTree's node , so we define our own renderer for our JTree.
    Conclusion is , where we need some extra , or customized solution we write our own Models and Renderers

  • Differrent CELL Editors and Renderers in a Column

    Is it possible to have different cell editors and renderers within a single column? I would like to have text, CheckBox and ComboBox on different rows and within the same column.
    If yes, pls point me to somthing that describes this process.

    One thing that is often overlooked,due to a poor naming choice by Sun, is that a Renderer is not forced to return this as the component that will ultimately paint the cell: the only job of a cell renderer (as per the interface TableCellRenderer ) is to provide a component to do the painting. It is free to re-used the same component as much as possible (as a memory optimization), but it can also return either JComponent out of a set of 3.
    For example:
    public class MyRenderer implements TableCellRenderer {
        private JLabel componentThatRendersFoos;
        private JLabel componentThatRendersBars;
        public void getTableCellRendererComponent(...) {
            if (whatever criterion that identifies the cell as a foo) {
                componentThatRendersFoos.setBackground(...);
                return componentThatRendersFoos;
            else if (whatever criterion that identifies the cell as a bar) {
                componentThatRendersBars.setBackground(...);
                return componentThatRendersBars;
        }And similarly for editors.
    This has the advantage to enable to configure the renderer without havingto subclass JTable.
    Edited by: jduprez on Jan 20, 2011 10:51 PM
    Here is a reference to a discussion about the mixed concepts in renderers: {message:id=9161690}

  • Missing Index topics, links and .htm files

    I hope someone can help with this, as I am very frustrated
    right now. I normally use RoboHelpX5, but have also tried this in
    RoboHelp7.
    If I generate a Winhelp2000 version of our help system,
    everything appears normal. All of the specified index keywords are
    there, all of the links are there, etc.
    But if I generate either HTML or WebHelp versions using the
    same source, as I'm supposed to be able to, for some reason:
    1. Index entries for certain topics disappear from the list.
    If I manually add the topic to the index again and save, then
    regenerate the help files, the topic is still missing from the
    index.
    2. The hyperlinks for the missing items in #1 above do not
    appear. The original text is there, but there is no hyperlink. If I
    try to add a hyperlink again, the topic appears in the list, but
    once I regenerate the help files, the link disappears again.
    3. The individual .htm file for the missing items in #1 above
    are not being generated.
    Is there some reason why these topics are being dropped from
    the html and webhelp versions of the help system? Is there some
    sort of topic formatting or setting I am missing? I have tried to
    compare working topics vs. missing topics, and cannot find anything
    different in my Word document formatting.
    I have tried creating a completely different help system,
    using clean documents with no RoboHelp formatting, and consistently
    have problems with the same topics. I even tried on another
    computer that had never had RoboHelp on it before. That didn't make
    any difference. The topics were still missing from the index, the
    hyperlinks to those topics were still missing, and the individual
    .htm files were not generated.
    Any help would be appreciated.
    Stephanie
    (ow_mas)

    Hi,
    I ran into the same problem today with some top level Index
    entries not showing up in WebHelp. I discovered how to fix it by
    comparing the entries that did show up with those that didn't. If
    an entry had a topic associated with it, it showed up; if it has a
    cross-reference, it doesn't.
    Double click an Index entry in the Index pane (or right click
    and choose Properties), then clear the Cross-reference checkbox.
    Repeat for each entry that has a cross-reference instead of a
    topic. There may be a global way to fix them all, but I haven't
    found it yet. Then recompile your help, Voila!
    Hope this helps....
    Zie3D

  • Need help for two thing:: JFace/SWT and Drawing an updating graph! plz help

    Hey all,
    This is my first post on this forum and I was wondering if you guys can help me with two problems that im currently having and I would be really grateful.
    1. When ever i try to use the SWT/JFace tools and run it as a java app. I get this error:
    java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
    Exception in thread "main"
    any suggestions??
    2. Now this is my main question:: How should I go about programming a graph that updates based on numbers in an array? Basically set of numbers in an array ( unsorted ), and as it is getting sorted I want a graph displaying how it is getting sorted. The graph is just a basic XY chart.
    Thank you.

        @n2medallas,
    Let's get your phone working right!
    You mentioned your getting a message that the phone is rooted. Where are you seeing this message? What is the current bilud and software version on your phone? Have you taken the phone into a VZW store to check the message you are seeing?
    JohnB_VZW
    Follow us on Twitter @VZWSupport

  • RoboHelp HTML 10 is taking one of my topic files and copying it multiple times.

    I am using RoboHelp HTML 10 to update a reference project with about 1,500 topics in it. Today, I created a new topic with several internal bookmark links. I have edited this topic file several times and saved it without any problems but late today, when I wanted to save the file and close the project, RH gave me an error message about the file name being too long and the TOC reference was too long. This error message repeated over and over so I used Task Manager to kill RH and I rebooted my PC.  When I got RH running again, I discovered 40 copies of the topic file listed in the Project Manager window.  Each file name is a unique creation made up of the original topic file name and one or more of the internal links. Here is a sample of the names:
    Ultimate_Data_Display.htm (topic file with several bookmarks)
    Ultimate_Data_Display.htm#View_Data (no .htm suffix - when I open one of these files using NotePad, the file contains an exact copy of the original html code)
    Ultimate_Data_Display.htm#View_Data#Detailed_View
    Ultimate_Data_Display.htm#View_Data#Detailed_View#Summary_View
    The file names get longer and longer until the 260-? character limit is reached.
    RH appears to be parsing the topic file, pulling out the bookmark code, concatenating various bits together and then saving copies of the original file under these new names. Perhaps this is occuring because of some interaction between RH and the version control system we are using.  However, I don't know what version control system we have. I have a "source folder" on my local desktop and RH is doing some type of checking in and checking out of all the files that I work on.
    Any suggestions on how to stop this problem would be great, as I have several new topic files to create over the next few work-days.

    This is a new one on me.
    Have you tried deleting the CPD file and then working on the project?
    Where is the project located?
    Does your working environment have a backup tool running all the time, such as Memeo?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • How can I configure to use a HP Laserjet 4000 network printer on Solaris 8?

    Hi, I have to configure a Solaris 8 machines to print some doc on a network HP Laserjet printer. However, I have no idea how to configure it. Do anyone have some suggestion how to do it? Do I need JetDirect to do so? If yes, how can I get it? Thx a l

  • TS4002 iPad shut down duet low battery after recharge email is now missing, any way to retrieve it?

    I was in the middle of composing or replying to an important email,gmail, battery shut down and now I cannot retreive the very lengthy important email. I have tried contacting google and troubleshooting by looking in archives, deleted spam, all mail

  • Aborting new object creation

    I want to test the input parameters to a constructor and determine if an invalid parameter has been supplied. If I use: Thingy myThingy = new Thingy("invalid value"); is it up to the programmer of the above to catch the error, either through exceptio

  • After printing, Pages asks if I want to save changes.

    When I print a document from Pages and then close the document, Pages always asks if I want to save changes. I can save the document, print it, and immediately try to close it and I still get the warning message. Is there a reason that Pages doesn't

  • Automator "Watch me do"

    Hi all, I'm trying to create a workflow with automator with a lot of "watch me do" actions. This workflow will help me to simulate FCP actions. My workflow works fine but if I put it in a loop, sometimes the mouse go and click in the wrong window and