Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: Sirius
 Topic: Add new node on a diagram
Re: Add new node on a diagram [message #1645318 is a reply to message #1615690] Mon, 02 March 2015 12:52
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 165
Registered: July 2009
Senior Member
Le 14/02/2015 04:32, Elvis Dowson a écrit :
> A project like Sirius really needs a book to go along with it, like the
> EMF book (2nd Edition).

There's no plan for this right now, but Obeo provides training if you're
interested (including in English): see
http://www.obeo.fr/en/services/training for details.

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
 Topic: The last item of Combobox in Properties View is blank
The last item of Combobox in Properties View is blank [message #1645160] Mon, 02 March 2015 11:08
Sann Tran is currently offline Sann TranFriend
Messages: 5
Registered: November 2014
Junior Member
Hi,
In Properties View of runtime (or even the Properties View of .odesign file), when I click to a combobox to open items list, I found that the last item is blank (you can see in the attached image)

So how can I remove this unnecessary blank item?

Thanks.
Re: The last item of Combobox in Properties View is blank [message #1645334 is a reply to message #1645160] Mon, 02 March 2015 13:02
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 373
Registered: July 2009
Senior Member
Hi,

This is not a Sirius related question but a EMF one. The fact to have a
blank item comes from
org.eclipse.emf.edit.provider.ItemPropertyDescriptor.getComboBoxObjects().
To avoid that for your property, you could update your XXXItemProvider
to create a custom IItemPropertyDescriptor which override
ItemPropertyDescriptor.getChoiceOfValues() to remove the "null" value
from the collection. You can also ask your question on the EMF group
perhaps someone has a better solution.

Best Regards.

Le 02/03/2015 12:08, Sann Tran a écrit :
> Hi,
> In Properties View of runtime (or even the Properties View of .odesign file), when I click to a combobox to open items list, I found that the last item is blank (you can see in the attached image)
>
> So how can I remove this unnecessary blank item?
>
> Thanks.
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
 Topic: Element-Based Edges
Element-Based Edges [message #1645207] Mon, 02 March 2015 11:39
Studs Terkel is currently online Studs TerkelFriend
Messages: 21
Registered: July 2011
Junior Member
Hi,

in my model I have objects, that represents a relation, that I want to display as edge in my diagram. The object that represents the realtion (ActivityInputMapping) have a reference to certain eObjects: source and target.

https://dl.dropboxusercontent.com/u/4062763/elementBasedEdgeDef.png

By using the Source Finder Expression, i can identify the related semantic object: [self.input/]. The problem now: This semantic object has mulitple graphical representaions in the diagram. So, in the diagram, I get an edge (dashed) for all these graphical representations...

https://dl.dropboxusercontent.com/u/4062763/elementBasedEdgeOutcome.png

The two red nodes have the same semantic object, but only one node should really be the source of an edge. Is there a possiblity to limit/filter the graphical representations of a semantic object?
Re: Element-Based Edges [message #1645342 is a reply to message #1645207] Mon, 02 March 2015 13:08
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 373
Registered: July 2009
Senior Member
Hi Studs,

You limit graphical source/target by using the "Source Mapping" and
"Target Mapping" features of your Element Based Edge Mapping.

Best Regards.

Le 02/03/2015 12:39, Studs Terkel a écrit :
> Hi,
>
> in my model I have objects, that represents a relation, that I want to
> display as edge in my diagram. The object that represents the realtion
> (ActivityInputMapping) have a reference to certain eObjects: source and
> target.
>
>
> By using the Source Finder Expression, i can identify the related
> semantic object: [self.input/]. The problem now: This semantic object
> has mulitple graphical representaions in the diagram. So, in the
> diagram, I get an edge (dashed) for all these graphical representations...
>
>
>
> The two red nodes have the same semantic object, but only one node
> should really be the source of an edge. Is there a possiblity to
> limit/filter the graphical representations of a semantic object?



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Element-Based Edges [message #1645450 is a reply to message #1645342] Mon, 02 March 2015 14:18
Studs Terkel is currently online Studs TerkelFriend
Messages: 21
Registered: July 2011
Junior Member
Quote:
You limit graphical source/target by using the "Source Mapping" and
"Target Mapping" features of your Element Based Edge Mapping.


The sources are specified with one particular Bordered Node-Mapping using the Domain Class of the objects (WorkProduct). So every instance of a WorkProduct is displayed as red square. Using a single Mapping for every possible instance of a WorkProduct is not feasible in my case..
 Topic: Sirius and UML-Designer
Sirius and UML-Designer [message #1645492] Mon, 02 March 2015 14:43
Adrien Lefevre is currently offline Adrien LefevreFriend
Messages: 17
Registered: January 2015
Junior Member
Good afternoon,

I would like to extend UML language by my own DSL and also extend the design provided by UML-Designer from Sirius.

When I try to import the UML-Design project done on Sirius, (https://github.com/ObeoNetwork/UML-Designer/releases) nothing can work. I have only errors such as missing dependencies, functions which doesn't exist,...

What are the necessary plugins to make the UML-Designer project working? What do I have to do?

Thank you,

Adrien
Forum: Papyrus
 Topic: Activity and CallOperationAction question
Re: Activity and CallOperationAction question [message #1644583 is a reply to message #1614828] Mon, 02 March 2015 04:44
Abhijit Deshpande is currently offline Abhijit DeshpandeFriend
Messages: 11
Registered: December 2014
Junior Member
Hi Joost,

You can use "ReadSelfAction" to get a handle to "this" object.

1. Create "ReadSelfAction"
2. Create "OutputPin" for "ReadSelfAction"
3. Connect this "OutputPin" to "InputPin" of your "CallOperationAction" using "ObjectFlow"

Thanks,
Abhijit
 Topic: C code generation in Papyrus
C code generation in Papyrus [message #1644620] Mon, 02 March 2015 05:07
Abhijit Deshpande is currently offline Abhijit DeshpandeFriend
Messages: 11
Registered: December 2014
Junior Member
Hi,

Is there any code generator, which can generate C code from state machine, activity, BDD and IBD?

I tried "Block -> right click -> Code generation -> Generate C++ code" (I think this is Acceleo code generator) as well as Qompass code generator. But, in both cases only C++ class declarations (empty => i.e. without any behavior) are getting generated.

So, the question is whether there is any C/C++ code generator, which can generate code for model behavior described using state machine, activity diagram etc.?

BTW, for code generation exercise, I used counter example which is available at https://wiki.eclipse.org/Papyrus/UserGuide/ModelExecution. and, even though I could execute this model using "Moka", I could not generate C code for the same.

Thanks,
Abhijit
Re: C code generation in Papyrus [message #1645458 is a reply to message #1644620] Mon, 02 March 2015 14:21
Charles Rivet is currently offline Charles RivetFriend
Messages: 28
Registered: May 2014
Location: Ottawa, ON, Canada
Junior Member

Hi Abhijit,

Although not yet released, the code generator for the Papyrus for Real Time proposed project under Papyrus will (actually can right now with the development version...) generate C++ code from state machine. We do not, however, generate C code, although I suspect the content of the generated C++ classes could be extracted and run as part of a C program.

/Charles


/Charles Rivet
 Topic: SysML activity diagram output pins.
Re: SysML activity diagram output pins. [message #1644991 is a reply to message #1639718] Mon, 02 March 2015 09:20
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 571
Registered: February 2011
Senior Member
Hi Stephen,

The arrow is used to display the direction of the pin (InputPin and OutputPin are two different objects). When the Pin is connected to a flow, the arrow of the flow is redundant with the arrow on the pin, so the arrow of the pin is hidden. I see nothing in the UML Specification related to this, so it's probably specific to Papyrus (Or I missed it).

Also, Ports and Pins are two different concepts (Even if their notation is the same, they have different roles/semantics)

I think you shouldn't be able to connect two output pins with the same control flow. Papyrus is probably too permissive here (Especially if this doesn't result in a Validation Error).

The Activity Diagram in Papyrus is the standard UML one; it has nothing to do with SysML (I'm not sure how much SysML customizes/extends/restricts the UML Activity Diagram, but Papyrus doesn't provide any specific support for SysML Activities)

To hide the name Label for all control flows, you can use the following CSS rule:

ControlFlow > Label:name {
    visible: false;
}


If you want to hide only a few labels, you can right click on a Control Flow > Filter > Manage Connector Labels

Regards,
Camille


Camille Letavernier
Papyrus developer
Re: SysML activity diagram output pins. [message #1645467 is a reply to message #1644991] Mon, 02 March 2015 14:25
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 22
Registered: March 2014
Junior Member
Hi Camille,

Thanks for those answers and that all sound great.

There is just one problem.
There is no Input Pin available in the Pallet for the activity diagram!
I'm guessing that there is supposed to be one. Is it possible that I've managed to hide just that one node in the Palette?

FYI. I was able to connect to output pins with a control flow but then the model does not validate.

Thanks,
Steve
 Topic: Hide lements in a TreeSelectorDialog
Hide lements in a TreeSelectorDialog [message #1645484] Mon, 02 March 2015 14:37
Patrik Nandorf is currently offline Patrik NandorfFriend
Messages: 33
Registered: January 2013
Location: Sweden
Member
Hi,

Is it somehow possible to hide element in a org.eclipse.papyrus.infra.widgets.editors.TreeSelectorDialog?

I can control the if they are valid objects and thus selectable using the SemanticUMLContentProvider#isValidValue() method.

/Patrik
Re: Hide lements in a TreeSelectorDialog [message #1645493 is a reply to message #1645484] Mon, 02 March 2015 14:43
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 571
Registered: February 2011
Senior Member
Hi Patrik,

If isValidValue() returns false for an element + all its children, then the element shouldn't be displayed. If it returns false for an element, but true for at least one child, then the element should be displayed but not selectable.

If you want to add additional filters, you can use a JFace ViewerFilter (Which can be installed by the ContentProvider)

Camille


Camille Letavernier
Papyrus developer
Forum: scout
 Topic: Delete Row
Re: Delete Row [message #1644327 is a reply to message #1642473] Mon, 02 March 2015 01:44
Santo Mota is currently offline Santo MotaFriend
Messages: 38
Registered: July 2013
Member
That's what I need! thank you so much
 Topic: In 2016, Eclipse Scout will get a brand new HTML5 Renderer
Re: In 2016, Eclipse Scout will get a brand new HTML5 Renderer [message #1644554 is a reply to message #1636888] Mon, 02 March 2015 04:20
Marco Dorfliger is currently offline Marco DorfligerFriend
Messages: 6
Registered: January 2015
Junior Member
Some very exciting changes coming! It's really nice to see such transparent communication of this.

The decision to drop the desktop renderer comes as a surprise. As Matthias remarked, it gave Scout a certain flexibility. I also found the Swing deployment to be noticeably more responsive than RAP (mostly noticeable over slower connections), presumably due to network traffic containing 100% application data (all UI data is already on the client). A web-only release would I suppose also mean no offline mode (a great feature imo), and migration of existing desktop-based Scout projects to the 2016 release remains an open question. As a result, I imagine some adopters opting to remain with the Mars release (as you said some of your commercial projects have done). You may be inadvertently splitting the framework into two 'streams'.

Don't take the wrong message from all this though. It's really great to see BSI staying on top of the game, and I look forward to seeing how the next release manifests.
Re: In 2016, Eclipse Scout will get a brand new HTML5 Renderer [message #1645035 is a reply to message #1644554] Mon, 02 March 2015 09:49
Matthias Zimmermann is currently offline Matthias ZimmermannFriend
Messages: 92
Registered: February 2010
Member
@Marco

Marco Dorfliger wrote on Mon, 02 March 2015 04:20
... I also found the Swing deployment to be noticeably more responsive than RAP (mostly noticeable over slower connections)


This is exactly one of the focus points of the new HTML5 renderer. With the new renderer we are trying to keep as much state/processing in the browser (without breaking the Scout application model). This leads to immediate responses to user actions in many of the cases which makes the new web UI react to user input without first having to do a server round trip (over a possibly slow connection). Of course, this is not possible in cases where we need access to business rules etc. But with the new HTML5 UI we already see a much improved usability over the current web renderer.

Marco Dorfliger wrote on Mon, 02 March 2015 04:20
... A web-only release would I suppose also mean no offline mode


As of now, we think that we will be able to wait to address the offline topic. This means that we do not yet like to specify if and in which release train we will add the offline feature. So far, we were considering a hybrid desktop approach for the new HTML5 UI that would include a local web server for the client application. With this approach we would then be able to re-create the offline setup you mentioned above. This setup would also allow for integrating client side services such as CTI, bar code scanners, etc.

As we are driven by the business of our customers, Scout's answer to offline and client side intergration might come in the next month or in two years only.

Marco Dorfliger wrote on Mon, 02 March 2015 04:20
... and migration of existing desktop-based Scout projects to the 2016 release remains an open question


With the current RAP renderer, a migration of existing desktop applications to a web application is possible today. With this approach, it is straight forward to check for any features in your current application that might need to be adapted to a web based scenario.

For Scout applications that do need offline capability or other client side integration of devices/services the hybrid desktop approach mentioned above should allow for a good migration path.

For the case when the UI technology of your Scout application must remain on a desktop UI technology, the new HTML5 UI does not fit. This question seems to be simiar to the one posed by Kai Dohmann. Please see this message for our comments

Thanks for your valuable questions, Marco
 Topic: Different ways to authenticate within the application
Different ways to authenticate within the application [message #1645501] Mon, 02 March 2015 14:49
Peter Pfeifer is currently offline Peter PfeiferFriend
Messages: 56
Registered: November 2014
Member

Hello there,

right now I have the requirement to provide 2 differents kinds of login for my app.



  1. a regular form based login: this a topic of another thread. But if I know more, I'll post the solution here as well.
  2. a call from an external web application: a user from an external application is already authenticated there and will see a link to my application. eg. http://my.server.com/externallogin?userhash=.....
    What do I have to do, that first of all the /externallogin will be handled own its own? A specific servlet filter? How do I have to register this servlet filter? In the RAP bundle or in the server bundle? And how can I then redirect to my app without being transfered to the form based login?


Thanks in advance.

Peter
Forum: Standard Widget Toolkit (SWT)
 Topic: CTabItems in Mars
CTabItems in Mars [message #1645459] Mon, 02 March 2015 14:22
Joaquin Morcate is currently offline Joaquin MorcateFriend
Messages: 50
Registered: March 2010
Member
Hi,

I have a view with a CTabFolder and when I change tab the content is not displayed, I need to re-size the view for the widgets in the tab to be drawn. I environment is Ubuntu 14.10 (64 bits) and Eclipse Mars(id 20150203-1300). I have tried also with Eclipse Juno and it works fine. Any idea about what can be wrong?

Thank you



Joaquin Morcate
 Topic: Download PDF file
Download PDF file [message #1645509] Mon, 02 March 2015 14:53
Alex Pricimo is currently offline Alex PricimoFriend
Messages: 5
Registered: February 2015
Junior Member
Hello everybody

I have a browser in SWT. I load a page with a PDF file.
I would like to download this file.
How to download this file programmatically ?
I'm on Windows 7 with version IE (SWT).

Thanks.
Forum: TMF (Xtext)
 Topic: Supporting unquoted string with spaces
Re: Supporting unquoted string with spaces [message #1644862 is a reply to message #1644143] Mon, 02 March 2015 07:53
Ed Willink is currently offline Ed WillinkFriend
Messages: 4248
Registered: July 2009
Senior Member
Hi

Seems interesting. I nearly replied to your original message suggesting
that using Xtext for a lexing problem was crazy, but you seem to have a
new way of using Xtext that I do not understand.

Please elaborate on "you will need to split lexer and parser using the a
fragment because text by default use a lexer/parser in the same file".
I'm only aware of grammar splitting by the grammar...with... daisy
chain. I'm not sure which fragment you refer to: both of the existing
AntlrGeneratorFragments, your custom fragment or ...

Regards

Ed Willink


On 01/03/2015 23:35, Luis De Bello wrote:
> Hi guys,
>
> I am replying to my own answer ,maybe this can be useful to others. I
> was able to support unquoted string with spaces, using a custom lexer,
> I enclose my terminals in Xtext and the portion of code of my lexer
>
> Xtext file:
> terminal UNQUOTED_STRING:
> !NON_QUOTED_STRING_START !(NON_QUOTED_STRING_END)*;
>
> terminal fragment NON_QUOTED_STRING_START:
> '"'|"'"|'0'..'9'|'!'|'#'|'$'|'('|')'|'*'|'+'|','|'-'|'.'|'/'|':'|'<'|'='|'>'|'?'|'['|']'|'{'|'}'|'|'|'%'|'^'|'@'|'\r'|'\n'|'
> '|'\t';
>
> terminal fragment NON_QUOTED_STRING_END:
> ('!'|'#'|'$'|'('|')'|'*'|','|'.'|'/'|':'|'<'|'='|'>'|'?'|'['|']'|'{'|'}'|'|'|'%'|'^'|'\r'|'\n');
>
>
> Lexer grammar:
> RULE_UNQUOTED_STRING : {!isKeyword()}?=>
> ~(RULE_NON_QUOTED_STRING_START) ({!isIsolatedKeyword()}?=>
> ~(RULE_NON_QUOTED_STRING_END))*;
>
> The isKeyword and isIsolatedKeyword are two methods implement to check
> for keywords using lookahead functionality it will depend on each
> implementation.
>
> I hope this will be useful for others also ,you will need to split
> lexer and parser using the a fragment because text by default use a
> lexer/parser in the same file.
>
> Regards,
> Luis
 Topic: Why xtend does not support the array format of a parameter
Why xtend does not support the array format of a parameter [message #1644971] Mon, 02 March 2015 09:07
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 48
Registered: December 2010
Member
Hi,

Why xtend does not support the array format below:

def static void main(String args[]){
...
}


Thanks.

Re: Why xtend does not support the array format of a parameter [message #1645043 is a reply to message #1644971] Mon, 02 March 2015 09:50
Christian Dietrich is currently online Christian DietrichFriend
Messages: 6692
Registered: July 2009
Senior Member
i cannot answer the question but i have an opinion on that:
it is ugly c style and it was an error to support this in java in the first place. i think it is 1000 clearer if you separate parameter type and name and do not mix them up.
Re: Why xtend does not support the array format of a parameter [message #1645089 is a reply to message #1645043] Mon, 02 March 2015 10:22
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 48
Registered: December 2010
Member
Christian Dietrich wrote on Mon, 02 March 2015 04:50
i cannot answer the question but i have an opinion on that:
it is ugly c style and it was an error to support this in java in the first place. i think it is 1000 clearer if you separate parameter type and name and do not mix them up.


Yes, it makes sense....
 Topic: How to use Xtext internal.Stopwatch in measuring performance
icon5.gif  How to use Xtext internal.Stopwatch in measuring performance [message #1645273] Mon, 02 March 2015 12:24
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 18
Registered: August 2014
Junior Member
I would like to measure the performance of Xtext in parsing and for different features.
Can anyone tell me how to use "org.eclipse.xtext.util.internal.Stopwatches" in Xtext? and if there are other methods I can use to measure the performance.

Thanks,
 Topic: Flaky "Ambiguous feature call" error with Xtend 2.7.3
Flaky "Ambiguous feature call" error with Xtend 2.7.3 [message #1645333] Mon, 02 March 2015 13:05
Andreas Heiduk is currently offline Andreas HeidukFriend
Messages: 3
Registered: November 2014
Junior Member
I'm migrating from Xtext 2.6.x to 2.7.3 and I stumbled over a sporadic compile error in some Xtend code.

The minimal example requires two files:

package xxx

abstract class Base{
	
	Child childExtension
	
	def protected dispatch Boolean foo(Object it){
		null
	}
	
	def protected dispatch Boolean foo(Integer it){
		val Boolean x = childExtension.foo(it)  // required for bug
		x
	}
}


and the other file:

package xxx

class Child extends Base {
	
	def protected dispatch Boolean foo(String it){
		val x = foo(null)	// first occurrence always OK
		x
	}
	
	def protected dispatch Boolean foo(StringBuilder it){
		val x = foo(null)	// second and following occurrences fail, but are marked only sometimes 
		// Ambiguous feature call. The methods foo(Object) in Child and foo(Object) in Base both match. 
		x
	}
}


The strange parts are:


  • The compiler thinks that the two generated dispatch methods in Base and Child are in conflict. But only in this specific situation.
  • The delegation call in Base is required for the error.
  • The first call to the method is not marked as an error.
  • Touching the file (SAPCE-BACKSPACE-SAVE) removes the error from the editor but not from the Problems View. Closing and reopening the editor shows the error again.
  • Building with Maven sometimes show the error, sometimes not.


So my questions are:


  • Is there a workaround?
  • Should I file a bug?
  • Is there a chance that this is solved before 2.8? (i.e. will there be a version 2.7.4)


Regards,
Andreas
Re: Flaky "Ambiguous feature call" error with Xtend 2.7.3 [message #1645442 is a reply to message #1645333] Mon, 02 March 2015 14:13
Christian Dietrich is currently online Christian DietrichFriend
Messages: 6692
Registered: July 2009
Senior Member
Hi,

Xtext 2.8 will be released in March 2015 so there will be no 2.7.4 (https://twitter.com/xtext/status/560890014641704961)
Can you please file a bug for the problem

as a workround (in base)

	def protected dispatch Boolean foo(Integer it){
		val Boolean x = childExtension.foo2(it)  // required for bug
		x
	}
	
	def Boolean foo2(Object o) {
		foo(o)
	}
Re: Flaky "Ambiguous feature call" error with Xtend 2.7.3 [message #1645532 is a reply to message #1645333] Mon, 02 March 2015 15:05
Andreas Heiduk is currently offline Andreas HeidukFriend
Messages: 3
Registered: November 2014
Junior Member
Thank you Christian!
I'll file a bug in the evening.
Forum: Remote Application Platform (RAP)
 Topic: Capture a Picture via Webcam
Capture a Picture via Webcam [message #1645052] Mon, 02 March 2015 09:58
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 3
Registered: March 2010
Junior Member
Hello Guys,

I am not sure howto capture an Image from a webcam-device on an RAP-Application.

It should be possible that the user is able to start the camera/webcam on the browser and take a Picture.
This picture should be availible for the RAP-Application.
Following the picture should be saved on a DB.

I am looking for any solution or hint.

I found this solution, which isnt to bad.
htt ps://hacks.mozilla.org/2013/02/cross-browser-camera-capture-with-getusermediawebrtc/#ff-enabling

But how can i get the data to the application?
It should be possible via AJAX but how?

The application is an e4 RAP2.3 Application? And should work on many different browsers.

Thanks in advance!
Re: Capture a Picture via Webcam [message #1645403 is a reply to message #1645052] Mon, 02 March 2015 13:49
Aleksander   is currently offline Aleksander Friend
Messages: 22
Registered: May 2014
Location: France
Junior Member
Maybe you could use a JS library as a custom widget and combine it with the RAP file upload plug-in?
 Topic: Combo box in Window ActionBar
Re: Combo box in Window ActionBar [message #1645533 is a reply to message #1396560] Mon, 02 March 2015 15:09
Frank K is currently offline Frank KFriend
Messages: 4
Registered: January 2013
Junior Member
I just faced the same problem with Combobox in toolbars. Searched the web a little bit and found a solution using an action that has a menu (created with IMenuCreator).
The popup works fine this way and the flickering is gone.

The reason for my post is now that I am using an action instead of a real Combo, the size is automatically calculated based on the current text of the action. As the string content varies depending on the menu selection, it changes its size whenever another value was selected.

I guess the reason is that the toolbar layout is set to FlowLayout or something similar and I couldn't find a way to either set it to e.g. GridLayout or set the size or LayoutData of the Action.

Is there a way to work around this issue?

[Updated on: Mon, 02 March 2015 15:10]

Report message to a moderator

Forum: Subversive
 Topic: Lock-modify-unlock procedure implementation with Eclipse and Subversive
Re: Lock-modify-unlock procedure implementation with Eclipse and Subversive [message #1645524 is a reply to message #1635080] Mon, 02 March 2015 15:03
Alexander Gurov is currently offline Alexander GurovFriend
Messages: 102
Registered: July 2009
Senior Member
Hello,

When this property is set (to any value) on a file, whenever the file is checked out or updated, the local copy is made read-only unless that working copy holds a lock for the file. This acts as a warning that you should not edit that file unless you have first acquired the lock. There is a way to forcibly take over the lock, but in that case whoever uses this option clearly understands what he's doing. So, there should be no such problem as "I changed the file unknowingly".
 Topic: Subversive Compatibility versions?
Re: Subversive Compatibility versions? [message #1645541 is a reply to message #1622321] Mon, 02 March 2015 15:11
Alexander Gurov is currently offline Alexander GurovFriend
Messages: 102
Registered: July 2009
Senior Member
Hello,

I'm sorry for the late reply.
Firstly you should install only one SVN support: Subversive or Subclipse. Secondly, as of compatiblity, it is the best to use SVN 1.7 based connectors with the SVN 1.7 server and the SVN 1.8-based connectors with the SVN 1.8 server. Also there should be a backward compatibility guaranteed and so, you should be able to use SVN 1.8 connectors with the SVN 1.7 servers too. So, in your case the best way to go is to use an SVN 1.8 based connectors (while you can install both of them, iit wouldn't hurt). Also, you need to mind following: SVN Kit based connectors starting SVN 1.7 are a little buggy, while SVN Kit 1.7.x are really slow on big projects, SVN Kit 1.8.x has a lot of unresolved issues. So, it is probably best to give a chance to JavaHL-based connector.
 Topic: .settings folder
Re: .settings folder [message #1645549 is a reply to message #1580915] Mon, 02 March 2015 15:15
Alexander Gurov is currently offline Alexander GurovFriend
Messages: 102
Registered: July 2009
Senior Member
Hello,

As far as I remember, .settings folder content is not ignored by default. So, the possible reason for not committing the folder is that .settings folder is manually added to svn:ignore property and that's why I would like to recommend to check it.
Forum: Eclipse 4
 Topic: Create a context Menu for a tree
Create a context Menu for a tree [message #1644870] Mon, 02 March 2015 07:59
Praveen Banthia is currently offline Praveen BanthiaFriend
Messages: 28
Registered: September 2014
Junior Member
Hi,
I want to create a context menu when a user right clicks on a node in tree. The context menu should recognize which on which node the popup menu was opened and then act accordingly.

I have been able to detect right click on a node for a tree using this method

tree.addListener(SWT.MenuDetect, new Listener() {
		@Override
		public void handleEvent(Event event) {


however I have not been able to figure out how to create context menu and pass details of the node to it
Re: Create a context Menu for a tree [message #1644972 is a reply to message #1644870] Mon, 02 March 2015 09:08
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 389
Registered: December 2010
Location: Germany
Senior Member
There is a lot of information available by searching for "javafx context menu example". For example this tutorial:
http://docs.oracle.com/javafx/2/ui_controls/tree-view.htm
Re: Create a context Menu for a tree [message #1644980 is a reply to message #1644972] Mon, 02 March 2015 09:11
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 389
Registered: December 2010
Location: Germany
Senior Member
Sorry ... my last reply is BS of course ... thought I was in another forum. Of course you need to search for "swt context menu tree" (or such) and you will find things like this:
http://stackoverflow.com/questions/18403137/adding-right-click-menu-to-to-treeitem-in-swt-tree
and
http://stackoverflow.com/questions/6207772/context-menu-for-treeviewer-based-on-selected-node-swt
Re: Create a context Menu for a tree [message #1644982 is a reply to message #1644972] Mon, 02 March 2015 09:12
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5575
Registered: July 2009
Senior Member
He is not talking about JavaFX. To see how to create a context menu
based upon selection look at

http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet005TreeCustomMenu.java

Tom

On 02.03.15 10:08, Christoph Keimel wrote:
> There is a lot of information available by searching for "javafx context
> menu example". For example this tutorial:
> http://docs.oracle.com/javafx/2/ui_controls/tree-view.htm
>
 Topic: Develop Eclipse Plugins with e4
Develop Eclipse Plugins with e4 [message #1645550] Mon, 02 March 2015 15:16
Jack Kilian is currently offline Jack KilianFriend
Messages: 37
Registered: March 2012
Member
Hi,

we have the goal to develop new Eclipse plugins or extend existing perspectives or menus as it is possible since many years.
Is it now possible to do this based on a e4 plugin or is it possible to mix it up using the e3 extension approach and using e4 dependency injection in mixed mode?

best regards
Jack Kilian
Pages (2): [ «    1  2]


Current Time: Mon Mar 02 15:22:37 GMT 2015

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

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