[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Inactive Retarget Action
|
A RetargetAction is added to the Toolbar, but leaves inactive when
connection to an editor action.
ApplicationActionBarAdvisor.java:
protected void makeActions(final IWorkbenchWindow window) {
...
editorSave = new RetargetAction("cashflow.editorSave","Speichern");
register(editorSave);
...
}
protected void fillCoolBar(ICoolBarManager coolBar) {
...
toolbar.add( editorSave );
toolbar.add( editorCancel );
...
}
EditorPart.java:
public void createPartControl(Composite parent) {
{
IAction nextAction = new Action("Speichern"){
...
};
getEditorSite().getActionBars().setGlobalActionHandler("cashflow.editorSave",
nextAction);
What's wrong with this code? I am using eclipse 3.3.
Ceeper