| /******************************************************************************* |
| * Copyright (c) 2010 BSI Business Systems Integration AG. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * BSI Business Systems Integration AG - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.scout.sdk.ui.internal.view.outline.pages.project.client.form.field; |
| |
| import org.eclipse.scout.sdk.ui.action.IScoutHandler; |
| import org.eclipse.scout.sdk.ui.action.delete.FormFieldDeleteAction; |
| import org.eclipse.scout.sdk.ui.internal.ScoutSdkUi; |
| import org.eclipse.scout.sdk.ui.internal.view.outline.pages.project.client.MenuTablePage; |
| import org.eclipse.scout.sdk.ui.view.outline.pages.IScoutPageConstants; |
| import org.eclipse.scout.sdk.ui.view.outline.pages.project.client.ui.form.field.AbstractFormFieldNodePage; |
| |
| public class BigIntegerFieldNodePage extends AbstractFormFieldNodePage { |
| |
| public BigIntegerFieldNodePage() { |
| setImageDescriptor(ScoutSdkUi.getImageDescriptor(ScoutSdkUi.BigIntegerField)); |
| } |
| |
| @Override |
| protected void loadChildrenImpl() { |
| new MenuTablePage(this, getType()); |
| } |
| |
| @Override |
| public String getPageId() { |
| return IScoutPageConstants.BIG_INTEGER_FIELD_NODE_PAGE; |
| } |
| |
| @Override |
| public void prepareMenuAction(IScoutHandler menu) { |
| super.prepareMenuAction(menu); |
| if (menu instanceof FormFieldDeleteAction) { |
| menu.setImage(ScoutSdkUi.getImageDescriptor(ScoutSdkUi.BigIntegerFieldRemove)); |
| } |
| } |
| } |