Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Creating own extension points ??
Creating own extension points ?? [message #272560] Thu, 23 September 2004 10:14
Eclipse UserFriend
Originally posted by: eclipse.ml.anegma.com

Hello,

I 've just started with programming plugins for the eclipse 3.0.
Now I've a problem which I can't get through.

I wrote a small plugin which add's antoher view to the eclipse
workbench. It creates a simple tree control which I want to
expand by another plugin.

I think I must add an extension point, or?? But how I 've to set up
the schema for that ?

Here ist the code of my view:

public class MyTreeView implements IPluginView
{
private Canvas canvas = null;
private Tree plugins = null;
private GridLayout layout = null;

public void createPartControl(Composite parent) {
canvas = new Canvas(parent, SWT.NONE);

canvas.setBackground(parent.getDisplay().getSystemColor(SWT. COLOR_WHITE));

layout = new GridLayout();
layout.numColumns = 1;
canvas.setLayout(layout);

plugins = new Tree(canvas, SWT.SINGLE | SWT.NO_BACKGROUND);
GridData gridData = new
GridData(GridData.HORIZONTAL_ALIGN_BEGINNING | GridData.FILL_HORIZONTAL |
GridData.FILL_VERTICAL);
gridData.grabExcessHorizontalSpace = true;
gridData.grabExcessVerticalSpace = true;
plugins.setLayoutData(gridData);
}

public void addTreeItem(String text) {
final TreeItem item = new TreeItem(plugins, SWT.NONE);
item.setText(text);
}
}

So, the question for me is - what I've to do to get from another plugin
acess to the last method in this view ??

I 'm very thankfull for any advice.
- Gunnar
Previous Topic:Is that a bug?
Next Topic:plugin's editor not getting instantiated
Goto Forum:
  


Current Time: Tue Nov 04 07:49:31 EST 2025

Powered by FUDForum. Page generated in 0.04476 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top