Custom SWT list item - java

I am developing an application which basically just loads plugins inside a folder. It should list the loaded plugins in a SWT GUI. The items of the list should show more information than just one string. For example it should have one line which displays the plugins name, one line which displays a description and one for the version. How could I extend a SWT control or the JFace ListViewer so that it behaves like this? I did not find any information when searching for "custom swt list item" or similar terms. Is it actually possible?

Related

How to write dynamic about menu in eclipse

I need to add dynamic content inside about menu in eclipse application.
Any idea about the About menu plugin??
In the Branding tab inside product file i am adding static content in the About dialog. Now i need to add some dynamic content that will be decided in the run time of the application.
Is there any method to override to get the dynamic content inside the About menu???
Please can anyone help me.
The about dialog org.eclipse.ui.internal.dialogs.AboutDialog does not support any dynamic context.
The main text comes from the aboutText property defined in the org.eclipse.core.runtime.products product definition.
The images come from the installed bundle groups.
The data on the branding / feature dialog just comes from the feature and branding plugin and is also not dynamic.

Displaying GridValueLayer styles in Repast Simphony 2.3.1?

Repast Simphony 2.0-beta had a known issue with specifying value layer styles.
The option to display them did not show up in the GUI interface.
In the GUI, right-clicking on a display and selecting 'Edit', should open a window several tabs along the left side:
General
Agent Selection
Agent Style
Grid Style
Value Layer Details and
Schedule Details
With the bug, the "Value Layer Details" tab does not show up, so it is not possible to set the ValueLayer Style and see the state of the layer.
Is that bug fixed by default in version 2.3.1? I am having a similar problem. The tab does not show up.
My question is is this the same problem or something else and how do I fix it?
Solution to the original problem
The problem was fixed by downloading three .class files, Nick Collier attached to an email on the Repast mailing list, to the folder:
Repast-Simphony-2.0.0-beta/eclipse/plugins/repast.simphony.visualization_2.0.0/bin/repast/simphony/visualization/gui
An example where it works
Repast StupidModel, which was hosted on Google Code, has an example where the option shows up. That model was built with an earlier version of Repast. I have tried to replicate their implementation of the ValueLayer and style sheets.
The bug is fixed.
Adding this line to the file context.xml makes the option show up in the GUI:
<projection id="foodValueLayer" type="value layer" />

Eclipse Plugin Development: Extending default Java Editor/Text Hover

I've been trying develop my custom plugin for Eclipse, and basically I want to make is a "richer" version on the current TextHover. I don't know what widget(?) Eclipse uses to display the hovering text, but I want to use something different, like SWT Image or SWT Browser.
Most of the tutorials that I've read suggest that I have to implement my own Java Editor to do this, but I don't want the user to switch to my custom editor just for a simple feature (and I don't want to implement a whole editor).
Some Tests:
I've already created two Eclipse Plugin Projects. The first one is a extension for the JavaEditorTextHovers, and with this project I managed to show some custom Strings when hovering some random texts, but wasn't able to change the hover appearance. The second project was a editor plugin. With this last one I managed to get a Browser to appear when hovering a random text(this tutorial helped me), but again, this editor had nothing, no syntax coloring, no rules, etc., and for the previous reasons, I couldn't accept this has a solution.
Maybe if there was way to change the (or set a new) SourceViewerConfiguration of the current editor I could pass my custom SourceViewerConfiguration, but I'm not sure if this is possible.

How to create a view in eclipse which contains SWT components?

I am trying to create a view in eclipse. I want my view to contain a Textfield and a button. the action is triggered by clicking on the button and some processing will be done on the inserted query in the textfield. can anyone suggest me a link to a tutorial or example doing that?
Thanks
You can create two quick samples that together show you what you've asked for. You do that by using the new project wizard to create a plugin project. One of the last wizard pages has a list of templates to choose from. If you create a plugin using the "with a view" template, you'll see how to create a view. Go back and create a second plugin with the "multi-page editor" template and you'll see examples of buttons, their event handlers and text fields. It should be easy to see how to code up the buttons and texts in the view.

How do you add a button to the email message window toolbar in Lotus Notes 8.5+?

A coworker has been struggling with this problem.
The desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management system.
Finding documentation on doing this for Notes has been an uphill battle to say the least.
Writing the actual java to do the work isn't a problem, but figuring out how to extend Notes is.
So, is there a way to add a button/icon to the toolbar, or is it just a matter of adding a new toolbar? If we add a new toolbar then can we make it only visible (or just grey it out otherwise) when no email is open?
Both Lotus Notes 8+ and Lotus Symphony use the IBM Lotus Expeditor Toolkit.
If you get the Lotus Symphony SDK here.
Their are one or two examples dealing with adding button's to the symphony toolbar.
They should translate almost identically to Notes.
Good Luck,
Brian Gianforcaro
I had to do this once in Notes for a plugin I was developing. What I ended up doing was editing the Notes template in the designer, and then writing some LotusScript behind it that called a .NET class via a DLL. So when you clicked the button, it triggered the event in the LotusScript, and then called the DLL, and passed the item information to it.
I should also note that it was a freakin' bear to figure out because Notes documentation is terrible.
Depending on what access you have to the system the task can be fairly easy. Typically you customize your mail template to include a button in the inbox folder and the all documents view (for safety precautions see this entry). You customize ($Inbox) ($All) if you want to have the buttons only on the view level or additionaly the forms (there is a shared header subform you can use.
Give the button a meaningful label and add this code:
#Command([ToolsRunMacro];"(ExportDocumentsTo[yourSystemNameHere])")
The round brackets are actually important. Your code (Java I presume) the goes into an agent. You select "Create Agent" and Java as language. You specify "selected documents" to run against and agent list selection as trigger (this puts the () around your name). You can can get them from the Session class.
If your users are ok using a menu instead of a button you can simply select Action list as trigger and the agent will be listed in the action menu.
From your question I gather you want this for the Eclipse client. Please peruse Mikkel Heisterberg's site LekkimWorld.com
It contains tons of material. Start by reading his presentations and search the site. It has a lot of useful material.

Categories

Resources