throw new IllegalArgumentException();
}
// @issue we are creating a NEW action just to pass to NewWizardDropDownAction
- IWorkbenchAction innerAction = ActionFactory.NEW.create(window);
+ /* Tizen */
+ // IWorkbenchAction innerAction = ActionFactory.NEW.create(window);
+ IWorkbenchAction innerAction = ActionFactory.TIZEN_NEW.create(window);
+ /* ===== */
NewWizardMenu newWizardMenu = new NewWizardMenu(window);
IWorkbenchAction action = new NewWizardDropDownAction(window,
innerAction, newWizardMenu);
* dialog. This action maintains its enablement state.
*/
public static final ActionFactory NEW = new ActionFactory("new", //$NON-NLS-1$
- /* Tizen */
- // IWorkbenchCommandConstants.FILE_NEW) {
- IWorkbenchCommandConstants.FILE_NEW_TIZEN) {
- /* ===== */
+ IWorkbenchCommandConstants.FILE_NEW) {
+ @Override
+ public IWorkbenchAction create(IWorkbenchWindow window) {
+ if (window == null) {
+ throw new IllegalArgumentException();
+ }
+ WorkbenchCommandAction action = new WorkbenchCommandAction(getCommandId(), window);
+ action.setId(getId());
+ ISharedImages images = window.getWorkbench().getSharedImages();
+ action.setImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_NEW_WIZARD));
+ action.setDisabledImageDescriptor(images.getImageDescriptor(ISharedImages.IMG_TOOL_NEW_WIZARD_DISABLED));
+ action.setText(WorkbenchMessages.NewWizardAction_text);
+ action.setToolTipText(WorkbenchMessages.NewWizardAction_toolTip);
+ window.getWorkbench().getHelpSystem().setHelp(action, IWorkbenchHelpContextIds.NEW_ACTION);
+ return action;
+ }
+ };
+ /* Tizen */
+ /**
+ * Workbench action (id: "tizenNew", commandId: "org.tizen.common.ui.command.projectwizard"):
+ * Opens the Tizen new wizard dialog. This action maintains its enablement state.
+ */
+ public static final ActionFactory TIZEN_NEW = new ActionFactory("tizenNew", //$NON-NLS-1$
+ IWorkbenchCommandConstants.FILE_NEW_TIZEN) {
@Override
public IWorkbenchAction create(IWorkbenchWindow window) {
if (window == null) {
return action;
}
};
+ /* ===== */
/**
* Workbench action (id: "newWizardDropDown"): Drop-down action which shows shows the new wizard