[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [wtp-jsf-dev] JSF JSP Editor
|
If you
will always be using the Web Page Editor and you are only concerned with a known
subset of components (i.e. only your own), then you can probably use the
elementEditFactory extension under
org.eclipse.jst.pagedesigner.pageDesignerExtension. You use this to register
your own sub-class of AbstractElementEditFactory which has a getSupportedURI()
method that you use to tell the framework which tag library uri it should be
used for. You then return a custom instance of AbstractElementEdit that
provides an API for most of the editing extensions. Of particular interest
to you will be the handleModelChange method which will be fired when a tag with
your uri is modified. You can also use the
getDropRequestorLocationStrategy, getDropCustomizer and getTagCreator methods to
customize control of how new tags are dropped and initialized from the
palette.
Note however, that the above is
only applicable to the Web Page Editor. If you are not planning to lock
down your implementation, the user still has the option to open a page using the
SSE (XML source) editor. If you need to support that use case, you should
post to the WTP newsgroup (not the dev mailing list). You will want to look at the IStructuredModel
and related interfaces to add your
model listeners.
For the property pages (and again, this is specific to the Web Page
Editor), have a look a the org.eclipse.jst.pagedesigner.propertySection
extension point with particular attention to the implementations that are in the
org.eclipse.jst.pagedesigner.jsf.ui plugin.
--Cam
Well, I guess the
best way to do the first would be to have our own custom componenets.
Basically what we want is that whenever a component is added to the page or
edited, there is some of our own code which needs to be called.
For the other thing I don't
exactly want the tag attributes to be dynamic but the properties view to be
dynamic. So suppose we have a custom tag which we add to the page and now when
we click on it we get a properties view. What I want to know is how we can
make the properties visible in this properties pane as dynamic. The tag
remains the same and the TLD has all the properties but a different subset of
these properties should be visible to the user at any time.
I s this possible?
Thanks a lot
Varun