[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Many newbie questions
|
Hi,
I guess you should post such questions to the eclipse.platform newsgroup.
This is the one designated for plugin development related questions.
Eclipse doesn't have a concept like "current project". In general, there are
lots of views/editors open at the same time and the contents/selections in
these aren't necessarily in the same project. (In fact, often are not.) This
question gets asked a lot, so it's a good idea to search the newsgroup for
past discussions. At some time past I siphoned the following snippet from
the newsgroup. (Unfortunately, I didn't record who posted it.) It may be
helpful.
>Listening for selection changes is a much lighter-weight issue than
listening
>for all resource changes in the workspace. However, in this case Jed's
>suggestion applies too. If you don't need to change state every time
something
>gets selected, you can ask the selection service for the current selection
at
>any time:
>
>IWorkbenchWindow.getSelectionService().getSelection();
>
>Or, you can ask the selection service for the current selection in a
particular
>view (for example in the navigator):
>
>IWorkbenchWindow.getSelectionService().getSelection("org.eclipse.ui.views.R
esourceNavigator");
Bob
"Danilo Luiz Rheinheimer" <nospamdanilo_lr@xxxxxxxxx> wrote in message
news:b7se8l$qn$1@xxxxxxxxxxxxxxxx
> Hi,
>
> I am starting to develop plugins to Eclipse.
> So I have many questions on the subject.
>
> I am not wanting answers to all question on this message, but if you can
> please point me on the right place to look or post the questin. Of cource
> answers are appreciated.
>
> I saw on the template "Plug in with a multi pager editor" example how to
> create a file using a wizard.
> But I need to create a .java file inside a package. So :
>
> - how I create a package ?
> - how I can create a .java file inside this package ?
> - the generated create file wizard of this sample ask the container when
> the file is to be created. How I can get it to create on the default
> container, the current project.
>
> Other questions :
>
> - how I can see if a given java file is created on the IDE ?
> - how to delete a file ?
> - how to read a file content ?
>
> It is a lot of questions, so if you can please help me.
> Thanks.
>
> Danilo.
>
>