AW: AW: [sip-comm-dev] Creating a message summary tab

Glatt Bernhard (Student Com07) Bernhard.Glatt at stud-inf.unibz.it
Wed Nov 28 16:55:01 CET 2007


Hi Yana,
great advises.
In fact I had an error in the felix file, but now it's resolved and I could add my panel to the gui.
I'll try the next days to retrieve messages from the protocol providers, perhaps I must turn back here for some other questions to you. Hope to stress you not to much!

Thanks a lot,
Bernhard


-----Ursprüngliche Nachricht-----
Von: Yana Stamcheva [mailto:yana at sip-communicator.org]
Gesendet: Mo 26.11.2007 13:46
An: dev at sip-communicator.dev.java.net
Betreff: Re: AW: [sip-comm-dev] Creating a message summary tab
 
Hi Bernhard,

there could be many reasons for which your tab doesn't appear. First, 
did you add your bundle to the felix.client.run.properties? Do you get 
any exception?

The tabbed pane container would expect that you add a Component to it, 
you could add for example a JPanel, which contains your form. For now 
the container will obtain the name of the tab from the name of the 
component you add, so don't forget to invoke setName.

Hope this helps!

Cheers,
Yana

Glatt Bernhard (Student Com07) wrote:
> Hi Yana,
> thanks for your last post. I have a question about the creation of a new tab:
> I've added a new package called messagetab under plugins, and the whole bundle is created when I run SC (messagetab.jar exists in sc-bundles containing at the moment the MessageTabActivator and MessageTabImpl class).
> But when I start the program, no additional tab is displayed. I tried it in several ways. Should my tab be a new instance of the jtabbedpane, therefore my Implementation class extends the jtabbedpane and I create a new one, or should it be only a single tab that is added to the MainTabbedPane of SC? If the latter is the case, how must I proceed to get the correct references and constructor calls?
> Thanks also for the MAINTABBEDPANE-Container, I think the activator works well!
> 
> Bernhard
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: Yana Stamcheva [mailto:yana at sip-communicator.org]
> Gesendet: Fr 09.11.2007 11:18
> An: dev at sip-communicator.dev.java.net
> Betreff: Re: [sip-comm-dev] Creating a message summary tab
>  
> Hi Bernhard,
> 
> first, sorry for the late reply.
> 
> If I understand well what you mean, you could use the GUI plugin 
> functionality in order to make your tab. You could have a look on the 
> following "how to": 
> http://www.sip-communicator.org/index.php/Documentation/HowToWriteGuiPlugins
> 
> And also, there's a simple example plugin in 
> net.java.sip.communicator.plugin package.
> 
> If you would like your tab to appear in the main tabbed pane, the 
> container, where you should add it is CONTAINER_MAIN_TABBED_PANE (it's 
> defined in the UIService). Make sure to make an update and take the last 
> version of SIP Communicator, as I have just added this container to the 
> supported plugin containers:)
> 
> Hope this helps,
> Yana
> 
> Glatt Bernhard (Student Com07) wrote:
>> Hi SC-community,
>> as a university exam project we would like to implement a new tab for the SC, visualizing the last few messages transmitted in all current open messaging sessions.
>>
>> More exactly, for each instant message session a new small window is open by default. When more such windows are open, one could loose the overview, specially to see what has been written lastly in one session. 
>> Our goal would be to create a new tab in the main window of sip-communicator, which displays a single table for each open messaging session, that contains the last few messages transmitted (sent and received) for that session. The tables are positioned one under the other, and should give a better overview about all your messaging. Of course each table shows also the type of service used (icon for msn, yahoo, etc) and the contact's name.
>>
>> I've read through the documentation of SC, and had a look at the source code.
>> As I understood a good approach would be developing a plugin containing all parts related to this project. So the tab and its content creation can be called there. Everything should be related to the protocol provider service, but it's not really clear to me yet, how we should use it exactly.
>> My question is if someone could give us advices or hints how to implement the tab functionality the best way!
>>
>> Thanks a lot in advance,
>> enjoy your work,
>> Bernhard Glatt
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe at sip-communicator.dev.java.net
>> For additional commands, e-mail: dev-help at sip-communicator.dev.java.net
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe at sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help at sip-communicator.dev.java.net
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe at sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help at sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: dev-help at sip-communicator.dev.java.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5182 bytes
Desc: not available
URL: <http://lists.jitsi.org/pipermail/dev/attachments/20071128/8961804d/attachment.bin>
-------------- next part --------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: dev-help at sip-communicator.dev.java.net


More information about the dev mailing list