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


#1

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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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


#3

Hi Yana,

don't worry about response time and thanks for your answer!
I had already a look at the plugin how-to, and I think this part is very clear since the description is very good.
What I'm not really sure for now is how to fill my tab with the messages transmitted. I assume using the ProtocolProviderService is the best way, sending all incoming and outgoing messages to my tab and to the messaging window of course (where I write and receive my messages normally). But how can I use the ProtocolProviderService to send each instant message also to my tab? Furthermore I have to know which service (msn, jabber,...) the message belongs to and its buddy. Only then I can create different tables within my tab for each messaging session.
Perhaps you are wondering about my questions, but at the moment the ProtocolProviderService seems like a blackbox to me :slight_smile:

Thanks for the help in the meantime,
Bernhard

Yana Stamcheva schrieb:

···

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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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

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


#4

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@sip-communicator.org]
Gesendet: Fr 09.11.2007 11:18
An: dev@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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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


#5

Hi Bernhard,

Bernhard Glatt wrote:

Hi Yana,

don't worry about response time and thanks for your answer!
I had already a look at the plugin how-to, and I think this part is very clear since the description is very good.

Nice to hear that.

What I'm not really sure for now is how to fill my tab with the messages transmitted. I assume using the ProtocolProviderService is the best way, sending all incoming and outgoing messages to my tab and to the messaging window of course (where I write and receive my messages normally). But how can I use the ProtocolProviderService to send each instant message also to my tab? Furthermore I have to know which service (msn, jabber,...) the message belongs to and its buddy. Only then I can create different tables within my tab for each messaging session.
Perhaps you are wondering about my questions, but at the moment the ProtocolProviderService seems like a blackbox to me :slight_smile:

You're on the right track. Actually it is the OperationSetBasicInstantMessaging, which will give you access to instant messages. OperationSet-s are meant to provide different services for a protocol provider and this is the service that deals with instant messaging.

The first thing you need to do is obtain all already registered protocol providers. You could have a how this is done in net.java.sip.communicator.impl.gui.main.login.LoginManager.java. It's in runLogin that all this happens. Then for each protocol provider you should get the OperationSetBasicInstantMessaging by calling the getOperationSet method. Afterwards you could add to it your MessageListener and you'll obtain all events you need. All the events will give you information about the involved contact, from which you could obtain also information about the protocol, etc.

You should also think to listen for newly added accounts (respectively protocol providers), have a look in the same LoginManager (ServiceListener.serviceChanged)

Hope this helps.

Cheers,
Yana

···

Thanks for the help in the meantime,
Bernhard

Yana Stamcheva schrieb:

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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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

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

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


#6

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@sip-communicator.org]
Gesendet: Fr 09.11.2007 11:18
An: dev@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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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

------------------------------------------------------------------------

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

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


#7

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@sip-communicator.org]
Gesendet: Mo 26.11.2007 13:46
An: dev@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@sip-communicator.org]
Gesendet: Fr 09.11.2007 11:18
An: dev@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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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

------------------------------------------------------------------------

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

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


#8

Hi Yana,
perhaps you could give me also a general hint about the osgi framework.
For testing purposes I would like to add a method call from one of SC's source packages to my plugin package. The coding works fine, but I have to register the called class also in the manifest file, right? Else I get the NoClassDefFoundError. But even after inserting my class in the Import-list, the bundle couldn't be loaded correctly, the error is: "Unresolved package in bundle...". I also tried to set the export path for my class in the plugins manifest file, but no success. Does the order matter or what could I do wrong?

Thanks again,
Bernhard

···

-----Ursprüngliche Nachricht-----
Von: Yana Stamcheva [mailto:yana@sip-communicator.org]
Gesendet: Mo 26.11.2007 13:46
An: dev@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@sip-communicator.org]
Gesendet: Fr 09.11.2007 11:18
An: dev@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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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

------------------------------------------------------------------------

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

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


#9

Hi Bernhard,

sorry for the late reply. More inline.

Glatt Bernhard (Student Com07) wrote:

Hi Yana,
perhaps you could give me also a general hint about the osgi framework.
For testing purposes I would like to add a method call from one of SC's source packages to my plugin package.
The coding works fine, but I have to register the called class also in the manifest file, right?

That's right.

Else I get the NoClassDefFoundError. But even after inserting my class in the Import-list, the bundle couldn't
be loaded correctly, the error is: "Unresolved package in bundle...". I also tried to set the export path for my class in the plugins manifest file, but no success. Does the order matter or what could I do wrong?

No the order doesn't matter. Are you sure that the package you try to import is exported from some other bundle ?

If this is not the problem, I could have a look if you send me the manifest file.

Cheers,
Yana

···

Thanks again,
Bernhard

-----Urspr�ngliche Nachricht-----
Von: Yana Stamcheva [mailto:yana@sip-communicator.org]
Gesendet: Mo 26.11.2007 13:46
An: dev@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@sip-communicator.org]
Gesendet: Fr 09.11.2007 11:18
An: dev@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@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

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

------------------------------------------------------------------------

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

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

------------------------------------------------------------------------

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

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