[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: plans to provide key board/mouse shortcuts

From: Aaron Digulla <digulla_at_hepe.com>
Date: 2005-10-29 23:10:50 CEST

Denny Valliant wrote:

>> I think you can ask the workbench for the current editor and then query
>> the resouce beeing edited and then use that to get the current project.
>>
>> Is there a way to open the synchronize perspective with a hotkey?
> Yup, you can open the sync perspective with a hotkey out-of-the-box. Nice!
> **
> I found this snippit:
>
> IEditorPart part =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
>
> which should get me the active editor, but I don't know what to do to
> get it as a "resource" and add it to the "selectedResources" var.
> Getting rid of the NPE was easy enough, but "getting rid of" != "fixed".
> Although no errors are now thrown which *is* kinda nice. Just won't sync
> it up if it's not selected.

Go the Eclipse website and post a comment in the forum. They are very
helpful, there.

Maybe a quick search through the archives will dig up the info you seek,
even. Note that the archives can't be googled because of spam issues.

-- 
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.philmann-dark.de/
Received on Sun Oct 30 08:10:50 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.