add a new page [message #221021] |
Thu, 12 July 2007 09:11 |
Eclipse User |
|
|
|
Originally posted by: karl.lindsten.com
I have a treeview with some elements in it. When I doubleclick one an
element I want a new page to open with some information about the element.
I have seen that the class IWizard have addPage() and I have looked at
some examples, but it feels like the wizard shouldn't be used when you
doubleclick on the element. Someone know about another way to do this?
|
|
|
Re: add a new page [message #221053 is a reply to message #221021] |
Thu, 12 July 2007 09:43 |
Eclipse User |
|
|
|
Originally posted by: jakub.jurkiewicz.gmail.com
Hi,
You can allow user to select some entries in the treeview and make him
click Next button wizard to go to the next page.
--
Jakub Jurkiewicz
http://eclipser-blog.blogspot.com/
aracruz wrote::
> I have a treeview with some elements in it. When I doubleclick one an
> element I want a new page to open with some information about the
> element. I have seen that the class IWizard have addPage() and I have
> looked at some examples, but it feels like the wizard shouldn't be used
> when you doubleclick on the element. Someone know about another way to
> do this?
>
|
|
|
Re: add a new page [message #221075 is a reply to message #221053] |
Thu, 12 July 2007 11:47 |
Eclipse User |
|
|
|
Originally posted by: karl.lindsten.com
Thanks Jakub...
The thing is that I don't want a wizard. The treeview is like the package
explorer and when you choose a file there, for example a javafile, an new
page with a javaeditor opens. That is what I want to do. But with some
other information in the file.
|
|
|
|
Re: add a new page [message #221089 is a reply to message #221082] |
Thu, 12 July 2007 12:17 |
Eclipse User |
|
|
|
Originally posted by: karl.lindsten.com
yeah maybe that... but I don't se how the step going to happen. Assume I
have a treeview with textfiles and when I doubleclick on an textfile I
want a texteditor .
/**
* Here is my my action for the doubleklick now I want a an text edit open
the
* text file.
*/
doubleClickAction = new Action() {
public void run() {
ISelection selection = viewer.getSelection();
Object obj =
((IStructuredSelection)selection).getFirstElement();
System.out.println("trying to make document");
...
|
|
|
|
Re: add a new page [message #221104 is a reply to message #221096] |
Thu, 12 July 2007 13:30 |
Eclipse User |
|
|
|
Originally posted by: karl.lindsten.com
Thanks a lot for the help.
For some reason I don't have org.eclipse.ui.part.FileEditorInput. Where
can I get it?
|
|
|
|
|
|
Re: add a new page [message #221132 is a reply to message #221125] |
Thu, 12 July 2007 13:59 |
Eclipse User |
|
|
|
Originally posted by: karl.lindsten.com
sorry. I'm writing in a javafile and trying to use FileEditorInput, but
got the errormessage cannot be resolved to a type. I have tried to import
org.eclipse.ui.part.FileEditorInput but then I get that that cant be
resolved. When I fellowed the link you send me I could open the type
FileEditorInput but my javafile cannot find it.
|
|
|
|
Powered by
FUDForum. Page generated in 0.09166 seconds