September 23, 2011  
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30

[00:45:51] *** tschindl has quit IRC
[06:40:03] *** rcjsuen has quit IRC
[08:13:05] *** borisb6i has joined #eclipse-e4
[09:05:22] *** borisb6i has quit IRC
[09:14:54] *** tschindl has joined #eclipse-e4
[09:34:58] *** wks has joined #eclipse-e4
[11:12:05] *** tschindl has quit IRC
[12:32:15] *** wks has quit IRC
[13:49:59] *** tschindl has joined #eclipse-e4
[13:50:41] <tschindl> rcjsuen: is paul available?
[13:52:38] <rcjsuen_> tschindl: paulweb515_ is still on paternity leave. Until mid/late Oct or something like that
[13:53:00] <tschindl> hm - ok
[13:53:13] <rcjsuen_> tschindl: I guess you want that EGit bug fixed...or another bug?
[13:53:37] <tschindl> yes this is bugging me whenever i download a new build
[14:35:06] *** yarthorn has joined #eclipse-e4
[14:56:18] *** emoffatt has quit IRC
[15:14:23] *** emoffatt has joined #eclipse-e4
[15:52:31] *** rcjsuen_ is now known as rcjsuen
[16:17:45] *** McAlm has joined #eclipse-e4
[16:18:11] <McAlm> Hi@all
[16:18:30] <McAlm> I#ve got a problem with the command framework in an e4 application
[16:19:25] <McAlm> defined a core expression over extension point "org.eclipse.core.expressions.definitions"
[16:20:11] <McAlm> and uses that core expression in a visibleWhen attribute for a HandledToolItem
[16:20:24] <McAlm> but the ToolItem is never hidden
[16:21:04] <rcjsuen> Is that expression ever evaluated?
[16:21:11] <McAlm> When using the same core expression for a menu, then the menu is never shown.
[16:21:55] <McAlm> I do not know where there is a good entry pint for debugging
[16:25:31] <McAlm> I need a way to show toolbar items only if a specific perspective is active...
[16:26:00] <rcjsuen> Is that expression ever evaluated?
[16:26:19] <McAlm> I do not know that. How can I resolve?
[16:26:35] <McAlm> What is a good entry point for debugging that?
[16:27:18] <rcjsuen> Presumably some WithExpression is created.
[16:27:32] <rcjsuen> Then you can check when it gets evaluated.
[16:28:48] <McAlm>   <extension          point="org.eclipse.core.expressions.definitions">       <definition             id="de.billsafe.bill.merchants.toolbar.entry">          <!--with variable="activePartId">        		<equals value="de.billsafe.bill.merchants.details.ui.MerchantDetailsView20753" />          </with-->                    <with variable="activeWorkbenchWindow.activePerspective">          	<equals value="de.billsafe.bill.perspective.me
[16:29:40] <McAlm> Could you explain, how do I check if it gets evaluated, please?
[16:30:19] <rcjsuen> Did you use a breakpoint on WithExpression to see when your expression gets created?
[16:30:49] <McAlm> No.
[16:30:58] <McAlm> Where is WithExpression located?
[16:31:09] <rcjsuen> ~findclass
[16:31:09] <Arbalest> Looking for a particular class in the Eclipse APIs? http://wiki.eclipse.org/FAQ_How_do_I_find_a_particular_class_from_an_Eclipse_plug-in%3F
[16:31:36] <McAlm> Thx. I'll try.
[16:49:04] <McAlm> So, here is the result: A WithExpression is created, but when evaluating it the EvaluationResult isEvaluationResult.FALSE, because the context doesn't know about the variable I used ('activeWorkbenchWindow.activePerspective")
[16:49:27] <McAlm> So how can I evaluate against the activePerspective?
[16:50:51] <rcjsuen> ah I see the problem now
[16:51:04] <rcjsuen> or maybe not
[16:51:09] <rcjsuen> McAlm: Is this a pure Eclipse 4 application?
[16:51:21] <rcjsuen> Do you have references to org.eclipse.ui.workbench?
[16:51:26] <McAlm> Yes, it is pure e4
[16:51:48] <McAlm> No, I haven't
[16:51:48] <rcjsuen> McAlm: So for menus it actually works?
[16:51:56] <rcjsuen> I would expect both toolbars and mensu to  fail actually
[16:52:16] <McAlm> For menus it works in that kind, that the menus are ALWAYS hidden
[16:52:24] <McAlm> and never are shown,
[16:52:36] <rcjsuen> and the item is inverted, that it's always shown but never hidden?
[16:52:56] <McAlm> yes
[16:53:12] <McAlm> all tool items are always shown and never hidden
[16:53:50] <McAlm> I think the core expression does  not work  becaue it is pure e4?
[17:08:46] <rcjsuen> McAlm: Correct. That variable is inserted from org.eclipse.ui.workbench.
[17:09:33] <McAlm> As a workaround I could set that variable when opening the perspective?
[17:10:15] <McAlm> but I think it is not the best way
[17:10:19] <rcjsuen> Yes, that's one way of doing it.
[17:10:37] <McAlm> Do you have another idea?
[17:10:37] <rcjsuen> The perspective is in the context but it's the actual Java object.
[17:10:42] <rcjsuen> The string id is not in there right now.
[17:10:51] <rcjsuen> So your workaround is probably the easiest/simplest one.
[17:10:57] <McAlm> Hm , I understand
[17:11:10] <McAlm> ok, I will try that.
[17:13:56] *** pwater has joined #eclipse-e4
[17:14:06] <pwater> hello together
[17:14:11] <pwater> can somebody help me
[17:14:39] <pwater> i got an xwt exception by adding listener to a button
[17:14:58] <rcjsuen> We don't have any XWT people here. I suggest you open a bug or ask on the forums.
[17:15:45] <pwater> ok thx
[17:17:06] *** pwater has quit IRC
[17:31:42] <rcjsuen> McAlm: when the expression gets evaluated
[17:31:46] <rcjsuen> its evaluate method will be called
[17:32:09] <rcjsuen> it is hard to read your core expression
[17:32:11] <rcjsuen> can you use a pastebin
[17:32:28] <McAlm> How do I that??
[17:33:29] <rcjsuen> ~paste
[17:33:30] <Arbalest> Please paste the relevant information onto a pastebin. The submission will generate a URL which you can then copy/paste back into the channel - http://www.pastebin.ca/ - http://pastebin.com/ - http://pastebin.org - http://ideone.com/
[17:34:22] <McAlm> I did a breakpoint at WithExpression.evaluate(context), but that break point is never reached..
[17:35:59] <McAlm> pastebin: http://ideone.com/uqrrb
[17:36:52] <rcjsuen> maybe try making it simpler
[17:37:14] <rcjsuen> actually
[17:37:18] <rcjsuen> how did you put it in the MToolItem?
[17:43:21] <McAlm> this way: http://ideone.com/y87QG
[17:44:19] <McAlm> In a fragment.e4xmi I contribute all HandledToolItems to the maintoolbar
[17:46:57] <rcjsuen> Does a ReferenceExpression get called?
[17:46:57] <rcjsuen> hm
[17:46:58] <rcjsuen> org.eclipse.e4.ui.internal.workbench.ContributionsAnalyzer.collectInfo(ExpressionInfo, MExpression)
[17:48:01] <McAlm> I try to set a breakpoint there..
[17:48:26] <McAlm> No, I will set a breakpoint there, there's nothing to try ...;-)
[17:50:14] <McAlm> OOps, there is no method collectInfo...
[17:50:26] <susanmccourt> emoffatt: do you know if anything ever happened with http://dev.eclipse.org/mhonarc/lists/platform-ui-dev/msg04990.html
[17:50:55] <susanmccourt> rcjsuen: ^^^
[17:51:10] <susanmccourt> It doesn't look like any component areas or triage info on the wiki is new, so I'm just wondering
[17:51:55] <rcjsuen> susanmccourt: As far as I know it's "in effect". You can still be specific about component areas if you know the specifi component area
[17:51:59] <rcjsuen> susanmccourt: Or I might just put two things
[17:52:12] <rcjsuen> susanmccourt: like [Commands][ActionSets] XYZ
[17:52:53] <susanmccourt> rcjsuen: ok...and there were implied ownership changes in oleg's list (which is really the part I'm wondering about...)  at least for new bugs, I realize old ones didn't change
[17:53:35] <rcjsuen> Yes you're right, ownership has defaulted more to "empty".
[17:53:54] <susanmccourt> ;-(
[17:54:02] <susanmccourt> it is more realistic
[17:56:47] <rcjsuen> susanmccourt: Yes, so I'm more inclined to put people on it actually...even though the "lazy consensus" was to leave it empty ;o
[17:58:37] *** tschindl has quit IRC
[17:59:28] <rcjsuen> McAlm: strange, are you using 4.1?
[18:00:31] <McAlm> Yes, curently.
[18:00:48] <rcjsuen> hm that method should be in ContributionsAnalyzer
[18:00:50] <McAlm> Did already thought about change to 4.2
[18:01:17] <McAlm> Then I will first upgrade to 4.2.
[18:05:38] <emoffatt> susanmccourt: not really, I'm just using the GreaseMonkey script as it currently is (but don't even know if it's been updated :) )
[18:08:12] <McAlm> rcjsuen: Thank you for your time, I will retry on monday. Wish you a nice weekend!
[18:08:17] <rcjsuen> bye
[18:08:28] *** McAlm has quit IRC
[20:13:38] *** tschindl has joined #eclipse-e4
[20:16:31] *** paulweb515_ has quit IRC
[20:16:49] *** paulweb515_ has joined #eclipse-e4
[20:29:34] <emoffatt> rcjsuen: how do I check the commit status in a browser again ?
[20:30:02] <rcjsuen> emoffatt: look at our repo at git.e.o
[20:30:15] <rcjsuen> and it should show in the history
[20:30:34] <rcjsuen> it usually syncs pretty fast
[21:17:56] *** borisb6i has joined #eclipse-e4
[21:44:52] *** borisb6i has quit IRC
[22:30:54] <rcjsuen> paulweb515_: I wish MOMs also had getOpaqueItem
[22:34:31] <rcjsuen> Though now that I look at it it's still a 1-way link.
[22:38:19] *** rcjsuen has quit IRC
[23:09:11] *** rcjsuen has joined #eclipse-e4
[23:32:16] *** yarthorn has quit IRC
[23:36:19] <paulweb515_> I see 4.2 + EMF is causing release train woes

top