Skip to main content



      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 10:34
Eclipse UserFriend
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: Thu Jul 03 05:23:43 EDT 2025

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

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

Back to the top