Plugins (1059)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 541
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
forest
Post subject: Howto acces plugin data from different plugin  PostPosted: Apr 10, 2008 - 07:27 AM



Joined: Apr 09, 2008
Posts: 1

H guys, I could really use some help.

Imagine this situation. I have my plugin (plugin A) with a widget and plugin B with label. B is standalone RCP application and A is connected to B.

In plugin A,
I cotributed new popup-menu using org.eclipse.ui.popupMenus extension point and created action File. This actions show new dialog window with label.
what must I do, if I want to set text, what is stored at label in plugin B (the other plugin) to label in dialog window

In a speech of Java
Code:

// some imports

public class MyDialog extends Dialog {

        private Shell shell;
        private Label lblMyLabel;

   public MyDialog (Shell parent) {
      super(parent);
      shell = parent.getShell();
        }

        Label lblDescription = new Label(shell, SWT.NONE);
        String s = getStringFromLabelInDifferentPlugin();
        lblDescrition.setText(s);

        private String getStringFromLabelInDifferentPlugin() {
             Label label;
             
             label = ?????
           
             return label.getText();
        }

// some code
}



I need to finish the getStringFromLabelInDifferentPlugin() method.
I have my ideas, it probly use the Activator class, but I dont know how.

thanks for all help and hints.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits