Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Trouble with synchronize extension(I try to remove one element from the synchronize view)
Trouble with synchronize extension [message #1058871] Wed, 15 May 2013 13:39 Go to next message
Mhtagada    is currently offline Mhtagada Friend
Messages: 5
Registered: April 2013
Junior Member
Hi,

I have start a plugin and I try to remove one element from the team synchronize view
(like when right clic and choose => remove from view)

but with my code I only remove from the tree not from the entire view

someone can help

IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
IWorkbenchPart activPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart();
if(activPart instanceof SynchronizeView){
	SynchronizeView syncView = (SynchronizeView)activPart;
	TreeViewer tv = (TreeViewer) ((ISynchronizePage)syncView.getCurrentPage()).getViewer();
	tv.expandAll();

	SynchronizeViewWorkbenchPart synchPart = new SynchronizeViewWorkbenchPart(syncView.getParticipant(), syncView.getSite());

	tv.setSelection(new StructuredSelection(), true);
	tv.addFilter(new ViewerFilter() {
		
		@Override
		public boolean select(Viewer arg0, Object arg1, Object arg2) {
			String elem = arg2.toString();
			if(elem.endsWith(".classpath") || elem.endsWith(".project")){
			return false;
		}
		
		return true;
	}});
}

Re: Trouble with synchronize extension [message #1062161 is a reply to message #1058871] Thu, 06 June 2013 10:15 Go to previous message
Mhtagada    is currently offline Mhtagada Friend
Messages: 5
Registered: April 2013
Junior Member
really, nobody know how to help me ?
Previous Topic:I want my perspective button bar back
Next Topic:Help me downloading a correct deltapack
Goto Forum:
  


Current Time: Tue Mar 19 05:56:06 GMT 2024

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

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

Back to the top