Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Trouble with synchronize extension(I try to remove one element from the synchronize view)
Trouble with synchronize extension [message #1052731] Tue, 30 April 2013 13:10 Go to next message
Mhtagada    is currently offline Mhtagada
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 #1053051 is a reply to message #1052731] Thu, 02 May 2013 08:22 Go to previous messageGo to next message
Mhtagada    is currently offline Mhtagada
Messages: 5
Registered: April 2013
Junior Member
if nobody can help me on this point, someone can say me where I can found somebody that can ?
Re: Trouble with synchronize extension [message #1062162 is a reply to message #1053051] Thu, 06 June 2013 10:17 Go to previous message
Mhtagada    is currently offline Mhtagada
Messages: 5
Registered: April 2013
Junior Member
I can't believe that nobody can help me with this
Previous Topic:Content.xml Generation
Next Topic:Missing required plug-in com.ibm.pvc.tools.portlet_0.0.0.
Goto Forum:
  


Current Time: Tue Oct 21 07:23:16 GMT 2014

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

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