// ((GraphicalEditorImplementation)graphicalEditor).pge = pge;
// popupMenu.add(((GraphicalEditorImplementation)graphicalEditor).getPasteFeatureTreeAction());
popupMenu.add(((GraphicalEditorImplementation) graphicalEditor)
.getUsePatternAction_Base());
PatternExplorerImplementation pei = new PatternExplorerImplementation();
// --�������װ����װ��������Ľӿ�
pei
.getContext()
.putValue(
de.FeatureModellingTool.Pattern.ConstantDefinition.PATTERN_BASE,
pb);
// --UI����װ��������UI���ɵ����������
JScrollPane peiUI = new JScrollPane(pei.getExplorerComponent());
peiUI.setBorder(BorderFactory.createEmptyBorder());
peiUI.getViewport().setBackground(Color.white);
layout.addWindow(peiUI, "Pattern", icon,
ConstantDefinition.Position.LEF, false);
pei
.addPropertyChangeListener(
de.FeatureModellingTool.Pattern.ConstantDefinition.CURRENT_TEMPLATE,
pge.getCurrentTemplateChangeListener());
// gh pattern end