• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CombinedTemplateCreationEntry类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.gef.palette.CombinedTemplateCreationEntry的典型用法代码示例。如果您正苦于以下问题:Java CombinedTemplateCreationEntry类的具体用法?Java CombinedTemplateCreationEntry怎么用?Java CombinedTemplateCreationEntry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CombinedTemplateCreationEntry类属于org.eclipse.gef.palette包,在下文中一共展示了CombinedTemplateCreationEntry类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: mouseHover

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
@Override
public void mouseHover(MouseEvent e) {
	final java.awt.Point mouseLocation1 = MouseInfo.getPointerInfo().getLocation();
	EditPart paletteInternalController = viewer.findObjectAt(new Point(
			e.x, e.y));

	if(paletteInternalController.getModel() instanceof CombinedTemplateCreationEntry){

		setGenericComponent(paletteInternalController);

		// Hide tooltip if already showing
		hidePaletteToolTip();
		
		showToolTipWithDelay(mouseLocation1);
	}
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:17,代码来源:PaletteContainerListener.java


示例2: setGenericComponent

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
/**
 * 
 * set genericComponent to selected/hovered component in palette
 * 
 * @param paletteInternalController
 * @return
 */
private CreateRequest setGenericComponent(EditPart paletteInternalController) {
	CombinedTemplateCreationEntry addedPaletteTool = (CombinedTemplateCreationEntry) paletteInternalController
			.getModel();

		CreateRequest componentRequest = new CreateRequest();
		componentRequest.setFactory(new SimpleFactory((Class) addedPaletteTool
				.getTemplate()));

	genericComponent = (Component) componentRequest
			.getNewObject();
	
	logger.debug("genericComponent - " + genericComponent.toString());
	
	return componentRequest;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:23,代码来源:PaletteContainerListener.java


示例3: checkSearchedComponentFoundInPalette

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private boolean checkSearchedComponentFoundInPalette(final ELTGraphicalEditor editor,
		final Map<String, PaletteDrawer> categoryPaletteContainer, final List<Component> componentsConfig,
		List<Component> matchingComponents, String searchedString) {
	boolean matchFound = false;
	for (Component componentConfig : componentsConfig) {
		String componentName = componentConfig.getNameInPalette().toUpperCase();
		if (Constants.UNKNOWN_COMPONENT.equalsIgnoreCase(componentConfig.getName()))
			continue;
		if (componentName.contains(searchedString.trim())) {
			CombinedTemplateCreationEntry component = getComponentToAddInContainer(editor, componentConfig);
			categoryPaletteContainer.get(componentConfig.getCategory().name()).add(component);
			matchingComponents.add(componentConfig);
			matchFound = true;
			if (label != null) {
				label.dispose();

			}
		}
	}
	return matchFound;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:22,代码来源:CustomPaletteViewer.java


示例4: createToolEntry

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private CreationToolEntry createToolEntry(final Class<?> nodeClass,final String name,String desc,final int width,final int height){
	SimpleFactory nodeFactory=new SimpleFactory(nodeClass){
		@Override
		public Object getNewObject() {
			AbstractNodeElement node=instanceNode(nodeClass,name,width,height);
			return node;
		}
	};
	String nodeName=instanceNode(nodeClass,name,width,height).nodeName();
	NodeImageConfig config=Activator.getPreference().getNodeImageConfigByName(nodeName);
	if(config==null){
		throw new RuntimeException("当前没有为名为"+nodeName+"的节点预定义配置信息!");
	}
	ImageDescriptor descriptor=ImageDescriptor.createFromImage(config.getSmallImage());
	return new CombinedTemplateCreationEntry(name,desc,nodeFactory,descriptor,descriptor);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:17,代码来源:GraphicalPalette.java


示例5: selectionChanged

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
/**
 * Sets the selected EditPart and refreshes the enabled state of this
 * action.
 * 
 * @see ISelectionChangedListener#selectionChanged(SelectionChangedEvent)
 */
public void selectionChanged(SelectionChangedEvent event) {
	ISelection s = event.getSelection();
	if (!(s instanceof IStructuredSelection))
		return;
	IStructuredSelection selection = (IStructuredSelection) s;
	template = null;
	if (selection != null && selection.size() == 1) {
		Object obj = selection.getFirstElement();
		if (obj instanceof EditPart) {
			Object model = ((EditPart) obj).getModel();
			if (model instanceof CombinedTemplateCreationEntry)
				template = ((CombinedTemplateCreationEntry) model)
						.getTemplate();
			else if (model instanceof PaletteTemplateEntry)
				template = ((PaletteTemplateEntry) model).getTemplate();
		}
	}
	refresh();
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:26,代码来源:CopyTemplateAction.java


示例6: createCombinedEntry

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private CombinedTemplateCreationEntry createCombinedEntry(
		Component compponent) {
	Class<?> clazz = null;
	try {
		clazz = Class.forName(compponent.getClazz());
	} catch (Exception e) {
		clazz = Simple.class;
	}
	if (clazz == null) return null;

	CombinedTemplateCreationEntry combined = new CombinedTemplateCreationEntry(
			compponent.getDisplayName(), compponent.getDescript(), clazz,
			new ModelCreationFactory(compponent, clazz),
			ImageDescriptor.createFromFile(TaskFigure.class,
					compponent.getIconSmall()),
			ImageDescriptor.createFromFile(TaskFigure.class,
					compponent.getIconLarge()));
	return combined;
}
 
开发者ID:snakerflow,项目名称:snaker-designer,代码行数:20,代码来源:PaletteFactory.java


示例7: createAutoText

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private static CombinedTemplateCreationEntry createAutoText( String label,
		String shortDesc, Object template )
{
	AbstractToolHandleExtends preHandle = BasePaletteFactory.getAbstractToolHandleExtendsFromPaletteName(template);
	
	ImageDescriptor icon = ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_AUTOTEXT );
	ImageDescriptor largeIcon = ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_AUTOTEXT_LARGE );
	
	CombinedTemplateCreationEntry entry = new ReportCombinedTemplateCreationEntry( label,
			shortDesc,
			template,
			new ReportElementFactory( template ),
			icon,
			largeIcon,
			preHandle );
	return entry;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:18,代码来源:MasterPagePaletteFactory.java


示例8: createQuickTools

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private static PaletteContainer createQuickTools( )
{

	PaletteCategory quickTools = new PaletteCategory( IPreferenceConstants.PALETTE_CONTENT,
			Messages.getString( "DesignerPaletteFactory.quicktool.title" ), //$NON-NLS-1$
			ReportPlatformUIImages.getImageDescriptor( ISharedImages.IMG_OBJ_FOLDER ) );
	ReportElementFactory factory = new ReportElementFactory( AGG_TEMPLATE );
	CombinedTemplateCreationEntry combined = new QuickToolsCombinedTemplateCreationEntry( Messages.getString( "DesignerPaletteFactory.quicktool.agg.title" ), //$NON-NLS-1$
			Messages.getString( "DesignerPaletteFactory.quicktool.agg.toolTip" ), //$NON-NLS-1$
			AGG_TEMPLATE, 
			factory,
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_AGGREGATION ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_AGGREGATION_LARGE ) ) ;
	quickTools.add( combined );
	
	factory = new ReportElementFactory( TIMEPERIOD_TEMPLATE );
	combined = new QuickToolsCombinedTemplateCreationEntry( Messages.getString( "DesignerPaletteFactory.quicktool.timeperiod.title" ), //$NON-NLS-1$
			Messages.getString( "DesignerPaletteFactory.quicktool.timeperiod.toolTip" ), //$NON-NLS-1$
			TIMEPERIOD_TEMPLATE, 
			factory,
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TIMEPERIOD ),
			ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TIMEPERIOD_LARGE ) ) ;
	quickTools.add( combined );
	return quickTools;
}
 
开发者ID:eclipse,项目名称:birt,代码行数:26,代码来源:DesignerPaletteFactory.java


示例9: getToolEntryForClass

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
/**
 * Try to find if the palette can create an element of a certain class. Because of current visibility restrictions, we can't actually look for factories or
 * try to create such an element. For now, we have to simply look for the template class used by the CombinedTemplateCreationEntry. Ideally, we should
 * search for the appropriate model creation factory.
 * 
 * @param c
 *            The template to find in one of UcmPaletteRoot's CombinedTemplateCreationEntry
 * @return the CreationTool that was found in the palette or null if none could be found
 */
private CreationTool getToolEntryForClass(Class c) {

    Stack s = new Stack();
    List l = getPaletteRoot().getChildren();
    for (int i = 0; i < l.size(); i++)
        s.push(l.get(i));

    while (s.size() > 0) {
        Object o = s.pop();
        if (o instanceof PaletteContainer) {
            l = ((PaletteContainer) o).getChildren();
            for (int i = 0; i < l.size(); i++)
                s.push(l.get(i));
        } else if (o instanceof CombinedTemplateCreationEntry) {
            Object template = ((CombinedTemplateCreationEntry) o).getTemplate();

            if (template == c) {
                return (CreationTool) ((CombinedTemplateCreationEntry) o).createTool();
            }
        }
    }
    return null;
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:33,代码来源:ProgressTests.java


示例10: getProposals

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
@Override
public IContentProposal[] getProposals(String contents, int position) {

	proposalList.clear();
	List<PaletteContainer> paletteEntry = paletteRoot.getChildren();
	for (PaletteContainer paletteContainer : paletteEntry) {
		List<PaletteEntry> paletteDrawersList = paletteContainer.getChildren();
		for (PaletteEntry paletteDrawer : paletteDrawersList) {

			if (StringUtils.containsIgnoreCase(
					paletteDrawer.getParent().getLabel() + " : " + paletteDrawer.getLabel(), contents)) {
				String componentName = ((Class) ((CombinedTemplateCreationEntry) paletteDrawer).getTemplate())
						.getSimpleName();
				componentDetails = new ComponentDetails();
				Component component = XMLConfigUtil.INSTANCE.getComponent(componentName);
				componentDetails.setName(componentName);
				componentDetails.setCategoryAndPalletteName(
						paletteDrawer.getParent().getLabel() + " : " + paletteDrawer.getLabel());
				componentDetails.setDescription(component.getDescription());
				componentDetails.setDescriptor(paletteDrawer.getSmallIcon());
				proposalList.add(new ComponentContentProposal(componentDetails));
			}
		}
	}

	componentDetails = new ComponentDetails();
	componentDetails.setName(COMMENT_BOX);
	componentDetails.setCategoryAndPalletteName(COMMENT_BOX);
	componentDetails.setDescription(COMMENT_BOX);
	componentDetails.setDescriptor(getCommentBoxImageDisDescriptor());
	proposalList.add(new ComponentContentProposal(componentDetails));
	return proposalList.toArray(new IContentProposal[0]);
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:34,代码来源:HydrographComponentProposalProvider.java


示例11: showAllContainers

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private void showAllContainers(final PaletteRoot paletteRoot, final ELTGraphicalEditor editor,
		final Map<String, PaletteDrawer> categoryPaletteContainer, final List<Component> componentsConfig) {
	for (Component componentConfig : componentsConfig) {
		if (Constants.UNKNOWN_COMPONENT.equalsIgnoreCase(componentConfig.getName()))
			continue;
		CombinedTemplateCreationEntry component = getComponentToAddInContainer(editor, componentConfig);
		
		categoryPaletteContainer.get(componentConfig.getCategory().name()).add(component);
		showClosedPaletteContainersWhenSearchTextBoxIsEmpty(paletteRoot.getChildren());
	}
	if (label != null) {
		label.dispose();
	}
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:15,代码来源:CustomPaletteViewer.java


示例12: getComponentToAddInContainer

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private CombinedTemplateCreationEntry getComponentToAddInContainer(ELTGraphicalEditor eLEtlGraphicalEditor,
		Component componentConfig) {
	Class<?> clazz = DynamicClassProcessor.INSTANCE.createClass(componentConfig);

	CombinedTemplateCreationEntry component = new CombinedTemplateCreationEntry(componentConfig.getNameInPalette(),
			null, clazz, new SimpleFactory(clazz),
			ImageDescriptor.createFromURL(eLEtlGraphicalEditor.prepareIconPathURL(componentConfig
					.getPaletteIconPath())), ImageDescriptor.createFromURL(eLEtlGraphicalEditor
					.prepareIconPathURL(componentConfig.getPaletteIconPath())));
	return component;
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:12,代码来源:CustomPaletteViewer.java


示例13: createShapesDrawer

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private void createShapesDrawer(PaletteRoot palette) throws RuntimeException, SAXException, IOException {
	Map<String, PaletteDrawer> categoryPaletteConatiner = new HashMap<>();
	for (CategoryType category : CategoryType.values()) {
		if(category.name().equalsIgnoreCase(Constants.UNKNOWN_COMPONENT_CATEGORY)){
			continue;
		}				
		PaletteDrawer p = createPaletteContainer(category.name());
		addContainerToPalette(palette, p);
		categoryPaletteConatiner.put(category.name(), p);
	}
	List<Component> componentsConfig = XMLConfigUtil.INSTANCE.getComponentConfig();
	
	//To show the components in sorted order in palette
	Collections.sort(componentsConfig, new Comparator<Component>() {
		public int compare(Component component1, Component component2) {
			return 	component1.getNameInPalette().compareToIgnoreCase(component2.getNameInPalette());			
		};
	});
			
	for (Component componentConfig : componentsConfig) {
		Class<?> clazz = DynamicClassProcessor.INSTANCE.createClass(componentConfig);

		if(componentConfig.getName().equalsIgnoreCase(Constants.UNKNOWN_COMPONENT)){
			continue;
		}

		CombinedTemplateCreationEntry component = new CombinedTemplateCreationEntry(
				componentConfig.getNameInPalette(), null, clazz,
				new SimpleFactory(clazz),
				ImageDescriptor.createFromURL(
						prepareIconPathURL(componentConfig.getPaletteIconPath())),
						ImageDescriptor.createFromURL(
								prepareIconPathURL(componentConfig.getPaletteIconPath())));
		categoryPaletteConatiner.get(componentConfig.getCategory().name()).add(component);
	}

}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:38,代码来源:ELTGraphicalEditor.java


示例14: createPaletteDrawer

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
private static PaletteDrawer createPaletteDrawer() {
	PaletteDrawer drawer = new PaletteDrawer("Elements");
	CombinedTemplateCreationEntry table = new CombinedTemplateCreationEntry("Table", "This is table tool", Table.class, new SimpleFactory(
			Table.class), Activator.getImageDescriptor(Activator.IMAGE_TABLE_16), Activator.getImageDescriptor(Activator.IMAGE_TABLE_24));
	drawer.add(table);
	CombinedTemplateCreationEntry column = new CombinedTemplateCreationEntry("Column", "This is column tool", Column.class, new SimpleFactory(
			Column.class), Activator.getImageDescriptor(Activator.IMAGE_COLUMN_16), Activator.getImageDescriptor(Activator.IMAGE_COLUMN_24));
	drawer.add(column);
	ConnectionCreationToolEntry connection = new ConnectionCreationToolEntry("Connection", "this is table connection", new SimpleFactory(
			Connection.class), Activator.getImageDescriptor(Activator.IMAGE_CONNECTION_16),
			Activator.getImageDescriptor(Activator.IMAGE_CONNECTION_24));
	drawer.add(connection);
	return drawer;

}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:16,代码来源:DbToolGefEditorPaletteFactory.java


示例15: getNewObject

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
@Override
public Object getNewObject() {
  TriqDiagramEditor activeEditor = EditorUtils.getSelectedDiagramEditor();
  if (activeEditor != null) {
    Shell shell = activeEditor.getSite().getShell();
    AddActorToUserLibraryDialog dialog = new AddActorToUserLibraryDialog(shell, handle);
    dialog.setBlockOnOpen(true);
    int dialogReturnCode = dialog.open();
    if (Dialog.OK == dialogReturnCode) {
      String modelName = dialog.modelName;
      String modelClass = dialog.modelClass;
      String libraryName = targetTreeNode.getFullTreePath('.');
      String elementType = "CompositeActor";

      Map<String, String> properties = new HashMap<>();
      properties.put("displayName", modelName);
      properties.put("class", modelClass);
      properties.put("type", elementType);
      properties.put("libraryName", libraryName);

      Event event = new Event(LibraryManager.ADD_EVENT_TOPIC, properties);
      try {
        TriqEditorPlugin.getDefault().getEventAdminService().postEvent(event);
      } catch (NullPointerException e) {
        StatusManager.getManager().handle(
            new Status(IStatus.ERROR, TriqEditorPlugin.getID(), "Event bus not available, impossible to trigger an addition event for the user library."),
            StatusManager.BLOCK);
      }
      TriqFeatureProvider featureProvider = (TriqFeatureProvider) activeEditor.getDiagramTypeProvider().getFeatureProvider();
      ICreateFeature createFeature = featureProvider.buildCreateFeature(null, null, modelName, modelClass, null, null,
          BoCategory.CompositeActor, null);
      TriqPaletteRoot.DefaultCreationFactory cf = new TriqPaletteRoot.DefaultCreationFactory(createFeature, ICreateFeature.class);

      CombinedTemplateCreationEntry pe = new CombinedTemplateCreationEntry(modelName, modelClass, cf, cf, null, null);
      pe.setToolClass(GFCreationTool.class);
      return pe;
    }
  }
  return null;
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:41,代码来源:UserLibraryTransferDropListener.java


示例16: getTemplate

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
/**
 * A helper method that returns <code>null</code> or the <i>template</i>
 * Object from the currently selected EditPart.
 * 
 * @return the template
 */
protected Object getTemplate() {
	List selection = getViewer().getSelectedEditParts();
	if (selection.size() == 1) {
		EditPart editpart = (EditPart) getViewer().getSelectedEditParts()
				.get(0);
		Object model = editpart.getModel();
		if (model instanceof PaletteTemplateEntry)
			return ((PaletteTemplateEntry) model).getTemplate();
		if (model instanceof CombinedTemplateCreationEntry)
			return ((CombinedTemplateCreationEntry) model).getTemplate();
	}
	return null;
}
 
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:20,代码来源:TemplateTransferDragSourceListener.java


示例17: getTemplate

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
protected Object getTemplate() {
    List selection = getViewer().getSelectedEditParts();
    if (selection.size() == 1) {
        EditPart editpart = (EditPart) getViewer().getSelectedEditParts().get(0);
        Object model = editpart.getModel();
        if (model instanceof PaletteTemplateEntry)
            return ((PaletteTemplateEntry) model).getTemplate();
        if (model instanceof CombinedTemplateCreationEntry)
            return ((CombinedTemplateCreationEntry) model).getToolProperty(CreationTool.PROPERTY_CREATION_FACTORY);
    }
    return null;
}
 
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:13,代码来源:UrnDragSourceListener.java


示例18: createShapesDrawer

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
/** Create the "Shapes" drawer. */
private static PaletteContainer createShapesDrawer() {
	PaletteDrawer componentsDrawer = new PaletteDrawer("Shapes");

	CombinedTemplateCreationEntry component = new CombinedTemplateCreationEntry("Rectangle",
		"Create a rectangular shape", RectangularShape.class, new SimpleFactory(RectangularShape.class),
		ImageDescriptor.createFromFile(ShapesPlugin.class, "icons/rectangle16.gif"),
		ImageDescriptor.createFromFile(ShapesPlugin.class, "icons/rectangle24.gif"));
	componentsDrawer.add(component);

	return componentsDrawer;
}
 
开发者ID:lunifera,项目名称:lunifera-sharky-m2m,代码行数:13,代码来源:ShapesEditorPaletteFactory.java


示例19: getObjectType

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
@Override
public Object getObjectType() {
  return CombinedTemplateCreationEntry.class;
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:5,代码来源:UserLibraryTransferDropListener.java


示例20: createAutoTextDrawer

import org.eclipse.gef.palette.CombinedTemplateCreationEntry; //导入依赖的package包/类
/**
	 * Creates BIRT Master Page specified categories and items.
	 * 
	 * @return PaletteContainer containing BIRT Master Page specified categories
	 */
	private static PaletteContainer createAutoTextDrawer( )
	{
		PaletteCategory category = new PaletteCategory( IPreferenceConstants.PALETTE_AUTOTEXT,
				AUTOTEXT_LABEL,
				ReportPlatformUIImages.getImageDescriptor( ISharedImages.IMG_OBJ_FOLDER ) );
		List entries = new ArrayList( );

		CombinedTemplateCreationEntry combined = null;

		combined = createAutoText( AUTOTEXT_PAGE,
				AUTOTEXT_TOOLTIP_PAGE,
				IReportElementConstants.AUTOTEXT_PAGE );
		entries.add( combined );
		
		combined = createAutoText( AUTOTEXT_TOTAL_PAGE_COUNT,
				AUTOTEXT_TOOLTIP_TOTAL_PAGE_COUNT,
				IReportElementConstants.AUTOTEXT_TOTAL_PAGE_COUNT );
		entries.add( combined );
		
		combined = createAutoText( AUTOTEXT_PAGE_X_OF_Y,
		AUTOTEXT_TOOLTIP_PAGE_X_OF_Y,
		IReportElementConstants.AUTOTEXT_PAGEXOFY );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_AUTHOR_PAGE_DATE,
				AUTOTEXT_TOOLTIP_AUTHOR_PAGE_DATE,
				IReportElementConstants.AUTOTEXT_AUTHOR_PAGE_DATE );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_CONFIDENTIAL_PAGE,
				AUTOTEXT_TOOLTIP_CONFIDENTIAL_PAGE,
				IReportElementConstants.AUTOTEXT_CONFIDENTIAL_PAGE );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_DATE,
				AUTOTEXT_TOOLTIP_DATE,
				IReportElementConstants.AUTOTEXT_DATE );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_CREATED_ON,
				AUTOTEXT_TOOLTIP_CREATED_ON,
				IReportElementConstants.AUTOTEXT_CREATEDON );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_CREATED_BY,
				AUTOTEXT_TOOLTIP_CREATED_BY,
				IReportElementConstants.AUTOTEXT_CREATEDBY );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_FILENAME,
				AUTOTEXT_TOOLTIP_FILENAME,
				IReportElementConstants.AUTOTEXT_FILENAME );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_LAST_PRINTED,
				AUTOTEXT_TOOLTIP_LAST_PRINTED,
				IReportElementConstants.AUTOTEXT_LASTPRINTED );
		entries.add( combined );

		combined = createAutoText( AUTOTEXT_VARIABLE,
				AUTOTEXT_TOOLTIP_VARIABLE,
				IReportElementConstants.AUTOTEXT_VARIABLE );
		entries.add( combined );

//	Remove unsupported function			
//		combined = createAutoText( AUTOTEXT_PAGE_X_OF_Y,
//				AUTOTEXT_TOOLTIP_PAGE_X_OF_Y,
//				IReportElementConstants.AUTOTEXT_PAGEXOFY );
//		entries.add( combined );

		category.addAll( entries );
		return category;
	}
 
开发者ID:eclipse,项目名称:birt,代码行数:79,代码来源:MasterPagePaletteFactory.java



注:本文中的org.eclipse.gef.palette.CombinedTemplateCreationEntry类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java InputListener类代码示例发布时间:2022-05-21
下一篇:
Java GetItemRequest类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap