Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Content Outline context menu
Content Outline context menu [message #142427] Wed, 05 October 2005 00:57 Go to next message
Musachy Barroso is currently offline Musachy BarrosoFriend
Messages: 22
Registered: July 2009
Junior Member
Hi all

I'm using StructuredTextEditorXML programatically, and setting an input
that is readonly, but in the Content Outline, the context menu still
shows with the options to add elements, DTD etc. It doesn't actually
modify the document, but it shows up. Is there any way avoid showing
this items in the context menu? Is it ok for them to be there even if
the document is readonly?

thanks

musachy
Ant filter tasks with WTP [message #142436 is a reply to message #142427] Wed, 05 October 2005 03:01 Go to previous messageGo to next message
Jonathan Barnes is currently offline Jonathan BarnesFriend
Messages: 10
Registered: July 2009
Junior Member
I have some projects that use Ant build tasks that copy files into a deploy
directory and while doing so, run some filters on the files. The value's of
these filters are defined in a build.properties file for a particular build
environment.

From what I understand of the WTP plug-in is that the server uses the code base
in the .deployables directory when it is run. Is there any way I can set up the
projects so that it can use the ant task I described above?

In other words, I need the filtering to be done prior to running the code on the
server. It is designed in such a way that certain things (like what db to
connect to) are parameterized based on the environment it is build for
(dev,test,prod etc).

Before using Web Tools I would have to build and deploy to my local tomcat, now
it seems that I can have Web Tools do that automagically for me, but I need to
add a step to do any required filtering for my dev environment.

I hope this was clear enough... I can't think of a better way to say it.

-Jonathan
Re: Content Outline context menu [message #142458 is a reply to message #142427] Wed, 05 October 2005 06:00 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Musachy Barroso wrote:
> I'm using StructuredTextEditorXML programatically, and setting an input
> that is readonly, but in the Content Outline, the context menu still
> shows with the options to add elements, DTD etc. It doesn't actually
> modify the document, but it shows up. Is there any way avoid showing
> this items in the context menu? Is it ok for them to be there even if
> the document is readonly?

The outline view context menu is far enough removed from the text
editor's document that it's unaware of anything to do with it being
read only. Where exactly is the input set as read only?

Also, beyond 0.7.x, StructuredTextEditorXML has been removed in
favor of configuring the base StructuredTextEditor class around the
input's content type. You can find more information about how this
works at
http://eclipse.org/webtools/wst/components/sse/designs/Edito rConfiguration.html.
Odds are you won't have to do much beyond updating the class name.

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Content Outline context menu [message #142516 is a reply to message #142458] Wed, 05 October 2005 23:39 Go to previous message
Musachy Barroso is currently offline Musachy BarrosoFriend
Messages: 22
Registered: July 2009
Junior Member
I'll try the new implementation and se what I can do.

thanks for the link
>Nitin Dahyabhai wrote:
> Musachy Barroso wrote:
>
>> I'm using StructuredTextEditorXML programatically, and setting an
>> input that is readonly, but in the Content Outline, the context menu
>> still shows with the options to add elements, DTD etc. It doesn't
>> actually modify the document, but it shows up. Is there any way avoid
>> showing this items in the context menu? Is it ok for them to be there
>> even if the document is readonly?
>
>
> The outline view context menu is far enough removed from the text
> editor's document that it's unaware of anything to do with it being read
> only. Where exactly is the input set as read only?
>
> Also, beyond 0.7.x, StructuredTextEditorXML has been removed in favor of
> configuring the base StructuredTextEditor class around the input's
> content type. You can find more information about how this works at
> http://eclipse.org/webtools/wst/components/sse/designs/Edito rConfiguration.html.
> Odds are you won't have to do much beyond updating the class name.
>
Previous Topic:Problem displaying tutorial snoop servlet in Tomcat
Next Topic:New to Eclipse, WTP
Goto Forum:
  


Current Time: Tue Apr 16 08:21:51 GMT 2024

Powered by FUDForum. Page generated in 0.31156 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top