Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Displaying a file in tree view
Displaying a file in tree view [message #598129] Sat, 06 June 2009 14:34
Shrijeet is currently offline ShrijeetFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,
I have created a tree view. I want to add files into the parent node using
a pop-up menu. How do I add file using this menu.

private void initialize() {

// Parent initializations

}

private void makeActions() {
action1 = new Action() {
public void run() {
// some code here
// The child to the parents above should be
//added in this action
}
};

However I am not able to call the parent.addChild(child); method in
action1 as the parent is not available in he run() method.

The initialize() is function of ViewContentProvider class and makeAction
is not.
Previous Topic:[ds tooling] Add Provided Services shows non available classes 3.5 RC1
Next Topic:ClassNotFoundException when running Java application inside PDE project
Goto Forum:
  


Current Time: Tue Jun 22 21:31:43 GMT 2021

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

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

Back to the top