Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Update label in element
Update label in element [message #1679254] Mon, 16 March 2015 14:39
step step is currently offline step stepFriend
Messages: 1
Registered: March 2015
Junior Member
CODE:
public class Handler extends AbstractHandler implements IElementUpdater {
@Override
public void updateElement(UIElement element, @SuppressWarnings("rawtypes") Map parameters) {
if(flag){
element.setText("TRUE");
}else{
element.setText("FALSE");
}
}

}
...........................
ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
if (service != null) {
service.refreshElements(COMMAND_ID, null);
}

.........................

element updated only when open another window. please tell me what to do to update immediately?
Previous Topic:no JavaScript auto complete in php Eclipse project
Next Topic:Scrapbook giving "source not found" error
Goto Forum:
  


Current Time: Fri Mar 05 05:17:04 GMT 2021

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

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

Back to the top