Tamas,
With regards to your question : I do not know
about wizard extensions, is there any?
I have extended the “org.eclipse.ve.java.core.newStyleComponent”
to add my custom Category, and Items. Here is the snippet from my plugin.xml
<!-- Contributions to the New Style
Component Wizard -->
<extension
point="org.eclipse.ve.java.core.newStyleComponent">
<category
defaultExpand="true"
id="com.sbsa.coe.plugin.category"
name="COE"
priority="200">
</category>
<!-- BCFrame -->
<visualElement
category="com.sbsa.coe.plugin.category"
contributor="com.sbsa.coe.plugin.codegen.wizards.contributors.COEBCFrameSourceContributor"
icon="icons/containers/frame.gif"
name="BCFrame"
type="com.sbsa.csf.core.BCFrame">
</visualElement>
<!-- BCPanel -->
<visualElement
category="com.sbsa.coe.plugin.category"
contributor="com.sbsa.coe.plugin.codegen.wizards.contributors.COEBCPanelSourceContributor"
icon="icons/containers/panel.gif"
name="BCPanel"
type="com.sbsa.csf.core.BCPanel">
</visualElement>
</extension>
I have also Contributed to the Visual
Editor Preferences Page : Here is the snippet from my plugin.xml
<!-- Contributions to the Visual
Editor Preferences Page -->
<extension
point="org.eclipse.ui.preferencePages">
<page
category="org.eclipse.ve.internal.java.vce.VCEPreferencePage"
class="com.sbsa.coe.plugin.preferences.COEPreferencePage"
id="com.sbsa.coe.plugin.preferences.COEPreferencePage"
name="COE">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="com.sbsa.coe.plugin.preferences.PreferenceInitializer">
</initializer>
</extension>
I have, for the sake of completeness included
the classes and resources I used to achieve this as an attachment.
In addition to that I have added the
ClassPath Library.
I also added a Drawer with custom
components as per your previous guidelines (Thanks for that).
All in all it seems that VE is HIGHLY extensible!
Kind Regards
Marius Snyman
+27123257133
Marius.Snyman@xxxxxxxxxxxxxxxxxx
Snuifies@xxxxxxxxx
From:
ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx] On Behalf Of Tamas
Kis
Sent: 29 September 2009 10:42 AM
To: ve-dev@xxxxxxxxxxx
Subject: [ve-dev] AW: ve-dev Digest, Vol 52, Issue 4
Hello,
some descriptions, and documents you find on the VE
page (VE wiki, ULC document, and so on).
1.
Ensure the VE works fine with all other plug-ins for my customer's environment
on Galileo.
2.
To enable the extension of the VE Wizards to allow the addition of "New
Visual Class à In-House-Frame and In-House-Panel" instead changing the
extends clause after adding a normal Swing JFrame.
I do not know about wizard extensions, is there any?
3.
Add custom Extensions to the VE to allow for our in-house > components on
the palette.
It should work fine using some override files.
Consider following extension point:
<!--
visual editor palette contributions -->
<extension point="org.eclipse.ve.java.core.contributors">
<contributor
class="ch.ivyteam.yourpackage.visualeditor.YourRichDialogVisualEditorContributor"
container="IVY_CONTAINER"/>
<palette
container="IVY_CONTAINER"
loc="first"
categories="palette/yourWidgetsToPalette.xmi"
plugin="ch.your.plugin.id"/>
</extension>
And use following format for your yourWidgetsToPalette.xmi:
<?xml
version="1.0" encoding="UTF-8"?>
<xmi:XMI
xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:org.eclipse.ve.internal.cde.palette="http:///org/eclipse/ve/internal/cde/palette.ecore"
xmlns:org.eclipse.ve.internal.cde.utility="http:///org/eclipse/ve/internal/cde/utility.ecore">
<org.eclipse.ve.internal.cde.palette:Drawer>
<entryLabel
xsi:type="org.eclipse.ve.internal.cde.utility:ConstantString"
string="Containers"/>
<entryShortDescription xsi:type="org.eclipse.ve.internal.cde.utility:ConstantString"
string="User interface objects to group other
objects."/>
<children xsi:type="org.eclipse.ve.internal.cde.palette:EMFCreationToolEntry"
icon16Name="platform:/plugin/ch.your.plugin.id/icons/icon_of_custom_widget_obj.gif"
creationClassURI="java:/ch.your.plugin.id#RYourCustomWidget">
<entryLabel xsi:type="org.eclipse.ve.internal.cde.utility:ConstantString"
string="RLabel_for_your_widget"/>
<entryShortDescription xsi:type="org.eclipse.ve.internal.cde.utility:ConstantString"
string="A border layout pane is a container which arranges its components
using a Border Layout. Essentially, a border layout consists of 5 areas: North,
East, South and West which are arranged around the
Center."/>
<keyedValues xsi:type="ecore:EStringToStringMapEntry" key="org.eclipse.ve.internal.cde.core.nameincomposition"
value="DefaultNewWidgetNameToSetHere"/>
</children>
</org.eclipse.ve.internal.cde.palette:Drawer>
</xmi:XMI>
I was also wondering if I can get some
guidelines somewhere on the web as to how to start-up such a checked out
project.
no idea.
Already it seems there are some
deprecated methods which cause errors.
Time did not permit me to carry on.
Shall do so soon.
I wish you good luck!
Best regards
Tamas
Tamas
Kis
M.Sc.,
Software Entwickler
ivyTeam
AG
Alpenstrasse 9
6300 Zug
Telefon:
+41 (0)58 666 34 87
Zentrale: +41 (0)58 666 34 34
Fax: +41
(0)58 666 34 00
email: tamas.kis@xxxxxxxxx
Web: www.soreco.ch
soreco swiss business software since 1988
P Sie
drucken dieses E-Mail nicht aus? Die Umwelt dankt!