OEPE breaking Scala-IDE? (JDT Weaving)
Hello All
I'm trying to install the Scala-IDE into the latest Eclipse-Kepler JEE release. The Scala-IDE installs and behaves fine, but if I then install either the OEPE or just the Weblogic Server Tools the JDT Weaving is disabled, and it does not seem possible to re-enable them. This breaks the Scala-IDE. I have also tried to first install OEPE, then the Scala IDE, but the JDT Weaving remains disabled. I have tried both 32-bit and 64-bit windows installs, running on Windows 8.1 with latest JDK-7.
Eclipse Installation Info:
Eclipse IDE for Java EE Developers 2.0.1.20130919-0803 epp.package.jee
JDT Weaving for Scala 3.0.2.v-2_10-201310181157-0880865 org.scala-ide.sdt.weaving.feature.feature.group scala-ide.org
Scala IDE for Eclipse 3.0.2.v-2_10-201310181157-0880865 org.scala-ide.sdt.feature.feature.group scala-ide.org
Scala Worksheet 0.2.1.v-2_10-201310181203-557328b org.scalaide.worksheet.feature.feature.group Scala IDE
ScalaTest for Scala IDE 2.9.3.v-3-2_10-201310190808-60feeb3 org.scala-ide.sdt.scalatest.feature.feature.group scala-ide.org
I'd really like to be able to use Scala and ScalaTest. Any insights are greatly appreciated.
Thanx,
Richard
Hey All.
Figured it out. Basically, the OSGI cache gets messed up the first time you run a Weblogic server, but if you exit, and re-run with the "-clean" option for eclipse, it will then allow you to enable the JDT Weaving, and everything works nicely together. You only need to run with the clean flag once.
The Scala IDE and ScalaTest both work fine, as does the WebLogic plugin. This will work for making it so that AJDT Weaving can be enabled, too.
Hope this helps someone else.
Kind Regards,
Richard
Similar Messages
-
JDT Weaving/Using call hierarchy in DSL
Hi there,
I am implementing an eclipse plugin for a DSL.
I would like to offer JDT stuff like Call Hierarchy, etc. for my DSL files.
Afaik, I have to use JDT Weaving and register a CUProvider. I have done this, am getting no errors (and weaveinfo Join Point). However, it does not seem to get ever called; a breakpoint in my CUProvider impementation does not get hit.
Currently, my custom builder constructs Java Classfiles, which can be seen by the Call Hierarchy, althrough I cannot jump to the source code, since the Java class file editor opens. Can I use these classfiles (since they have the necessary information in it) or should I extend the CompilationUnit class on my own?
What would be the easiest way to integrate the JDT Call Hierarchy View into my DSL?
PS: I am not entirely sure if I am on the right subforum.
Thank you very much.Found this unanswered question during inbox cleanup.
Perhaps this has been answered meanwhile, e.g., in the Xtext forum, or is it still relevant for you? -
Jsp:include breaks the IDE
I am using Jdev 10.1.3.1.0.3984. I am trying to build a jspx page. This page needs an included page to serve as a standard header. However, when I put in the following:
<jsp:directive.include file="/catsutil.jsp"/>
All the other elements below the directive vanish from the design tab. The Structure panel still shows them all; they're still in the source; only the Design tab is affected. If I comment out the line the screen reappears. I've seen this in 20 something pages now.
I've known the Design tab to lose the display after I've worked in it for a while, but this is true immediately after startup. Anyone else seen this?Well, I thought it solved the problem... However, it turns out that the jspx format isn't going to deal with the whole content of what used to be a jsp page by just renaming it to a jspx file.
Error(15,35): Expected name instead of %.
Got that when it encountered the <% tag around java code in the page.
<%
String title = "N";
String pageName = "";
String user = "";
String server_name = "";
user = request.getRemoteUser();
server_name = request.getServerName();
//query to get SYSDATE
String today = catsutil.getSysdate();
// RAH 08/20/2003 Added logic to get the julian date
String julianDate = "("+catsutil.getJulianDate()+")";
//query to get count from admin_app_access
%>
I think I'd rather not have to re-write the code (which runs just fine) just to get a the "drag and drop " functionality to work. -
Problem with Page Break In ALV Report
Hi
I have got a problem in my ALV report. I have a checkbox in the user input screen where users decide whether they want a page break or not in the print preview (or print) page. Now i also have the option to have layout name in the input screen. so If i leave the layout box empty the check or not check of page break works fine. but if use a save layout name in the layout box the add check box doesn't work anymore. If i have a layout name in the layout box it doesn't matter whether i have checked for page break or not it does the same thing.(in one report it always puts the page breaked)
Any ideas where to look for the error?
here is the code for the page break. Opt5 is the check box.
perform build_sort tables pt_sort changing ls_sort.
ls_sort-fieldname = 'PERNR'.
ls_sort-subtot = 'X'.
IF OPT5 = 'X'.
ls_sort-GROUP = '*'.
ENDIF.
append ls_sort to pt_sort.
ls_sort-subtot = ' '.
ls_sort-GROUP = ''.Never mind it was acting like the page break was not working because the layout was saved with the page break on/OFF.
-
Using OEPE for OSB Development
Hello All-
I have downloaded oepe-galileo-all-in-one-11.1.1.5.0.201003170852-win32 from http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html
Oracle Service Bus 11.1.1.3 is installed on a Remote Windows 2003 Server and I am planning to use OEPE IDE in my local desktop to develop projects and deploy it to the remote OSB server(mentioned above).
I would like to know if there is any plugin that needs to be installed to use OEPE as the IDE for OSB (Similar to JDeveloper 11g, where we have to install the SOA composite editor to develop SOA composites) ?
Kindly provide your inputs as I am unable to figure out on how to develop OSB services using OEPE.
Thanks for your time.
Regards,
DibyaThe steps followed for this are:
1 Download and Install Weblogic+OEPE combined installer on your local
2 Download and install OSB on your local specifying the same ORACLE_HOME as in step 1 above.
Step 1 will do the base installation for OEPE and step 2 will add the required plugins to develop service bus projects in OEPE. -
BPM is a revolutionary idea for SAP Customers !
I strongly feel Business Process Management (in its true sense) is a path-breaking, revolutionary idea for SAP customers in case they can appreciate and capitalize on this. This will change the face of IT in SAP environments forever !
Earlier SAP was not offering BPMS (Business Process Management System) but now with ARIS Modeler, XI, SolMan, Workflow and related tools, BPMS is a tangible reality. Its possible to achieve the vision of Process Managed Enterprise for SAP customers now !
-
Hi there,
Can anybody recommend the best IDE (JBuilder, WebGain, ...) for
developing EJBs on a WebLogic Server?
Any ones that are no good? Which is the one you would recommend?
ChrisVisual Slick Edit. Mmm. Donuts.
Do they still sell it?
Cameron Purdy
[email protected]
http://www.tangosol.com
Consulting Services Available
"Jesse E Tilly" <[email protected]> wrote in message
news:[email protected]...
[email protected] (Christof Prenninger) wrote in <3986a8c5
@newsgroups.bea.com>:
Hi there,
Can anybody recommend the best IDE (JBuilder, WebGain, ...) for
developing EJBs on a WebLogic Server?
Any ones that are no good? Which is the one you would recommend?
Chris
WARNING: Questions such as these can be akin to asking what is the onetrue
religion at a UN Assembly.
I have been desparately trying (for 4 months) to properly review four IDEs
in the hopes of finding something to beat Emacs (or Visual SlickEdit), a
command-line, and a third-party profiler/debugger (like JProbe). I have
and I've stopped. Here's why:
(1) When I started WebGain 4.0 didn't exist. Was I to suddenly trust a
buggy IDE (VisualCafe) being attached to what may or may not be a well
integrated suite of tools. I know StructureBuilder rocks, but how wouldit
work within these confines? My evaluation lasted two days. I counted the
number of crashes and where. I timed how long VC could stay open on my
machine (PIII 866/512MB). Final result? StructureBuilder (not an IDE,but
a class wizard that really does kick butt), over VisualAge, JBuilder,
Forte' and WebGain, offered the best bang for my buck in terms of
developing EJBs. Did we get it? No, but the reasons are not technical.
We already had Together/J to create class templates and didn't want to
spend $1000 per seat for a program that consolodates file templates and
command-line programs.
(2) Which brings me to cost. $3k (the usual street price for the
"enterprise" IDEs) is just too much. I told my company that I'd rather
have everyone handed a $3k bonus than to be saddled with an IDE (I'll
explain later). Java 2 SE and EE and all the libraries are free.
Furthermore, WebLogic wants you to use their compilation of the EE
libraries. Why should I pay $3k just to be able to compile theseprograms?
Only JBuilder and Forte allow you to compile EE programs, and only by
adding the libs yourself. VisualAge Pro won't let you import the library
and Cafe Pro balks as well. WebLogic has a plug-in for VAJ which allows
Pro, at $150 a good deal, to compile EE but the plug-in has its ownissues.
This, of course, does not address the reality of what you want, and thatis
wizards to create these special classes.
(3) Which brings me to code generation. Has anyone analyzed Visual Cafe's
generated code? It's pathetic. Monolithic, wasteful and very touchy.Any
manual adjustment may or may not break the IDE's interpretation of the
logic. JBuilder is no better. Forte' usually crashes before I get tocode
generation. Visual Age generates some dynamite (and complex) code.
(4) Which brings me to VisualAge. I think a lot of developers would agree
with me that if VisualAge had a "use repository/file system" toggle it
would be the hands-down, most kick-ass IDE in the land. It's a current
"change request" at IBM, but no promises have been made, that I know of.
The debugger is hands down the best of the big 4, it's visual composer is
easy to use, visualizes beans and components very well (considering the
limitations Java's AWT places on visual coding), and generates the best
component initializing code. If it wasn't for the repository. For the
unitialized, the repository is IBM's way of convincing (strongarming)
developers into having version control and on-the-fly code compilation.If
you begin and end your project in VisualAge and everything VAJ gives youis
fine, then VAJ is the way to go. However, if you already have a corporate
version control system (please tell me you do), you're at a loss as to how
to integrate with it. I worked at IBM and was told to use VisualAge. I
replied "How can it interface CMVC (IBM's workflow and VCS, which rules,
btw)?" The reply "Uh...we didn't think of that. Keep using Emacs". That
was 1997. Little has changed, apparently. That little is IBM'senterprise
repository, a way to let an entire group of developers have VAJ's
repository features across a network. Course, it's only available on the
enterprise version, don't pass go, cough up the $3k/seat. Oh, if you want
to not use the repository or need to have actual file system files (the
repository is one big file) you have to import and export your source
regularly. Not fun.
(5) Which brings me to version control. None of the offerings connect to
version control very well. That's not their fault. On Solaris, there is
no "scc" (windows' universal source control API, like ODBC cept forversion
control) so you go back to command line world. The IDE makers didn'tspend
a lot of time considering non-SCC solutions so you're pretty much screwed
on non-Wintel platforms. SCC? It sucks. It relies on the VCS vendor's
dlls. PVCS' SCC interface is buggy, slow and hard to use. Visual Source
Safe? I refuse to use it to manage source code, although it has thesecond
best SCC interface. The first? Perforce's. Course, it mimmicks RCS/CVS.
Concurrent version control has seem to have lost favor with people (BSD
uses it, you should too) and its concept is not reflected in the SCC
interfaces built on IDEs. Bottom line? SlickEdit + Perforce or Emacs +
CVS (or CMVC, a lisp module exists within IBM) is still the best
"integrated version control" development platform with propers given to
VisualAge and its repository for an alternative solution with no prior VCS
in place.
Trying to tell a group of eclectic and highly motivated (and paid) people
to settle on one development environment is very hard. Properly done, you
must settle on an IDE, have everyone trained (I can't stress thatenough.
Handing a hammer to a monkey usually results in broken skulls) in it and
use it religiously. For small startups like mine or fixed-budgetprojects,
this is just not feasible and thus we settled on a development environment
rather than an IDE.
Was that a long (it could be thorough) enough answer?
Jesse -
Is there a possibility to import scala programs to jdeveloper?. Something like scala IDE for eclipse.
Hi,
JDeveloper does not have support for Scala
Frank -
Fail to Deploy the applicaiton WAR file build by Spring2.5 framework
The War File build by Spring2.5 Framework can deploy and run successfully on Local WebLogic (10.3.6)
but this WAR file can not deploy on Java Cloud Service ;
I tried to deploy it on the Java Cloud Services Control pages and with OEPE (the Eclipse IDE whichi download from Oracle Cloud Official ) ,but these two were all failed !
the error logs as below ,and their no noticeable info in logs , ple help to fix it
Thanks
LOGS
Deployment to Oracle Cloud failed, please check Error Log for detail.
[deploy]
2013-02-21 01:18:56 CST: Starting action "Deploy Application"
2013-02-21 01:18:56 CST: Deploy Application started
2013-02-21 01:19:02 CST: weblogic.application.ModuleException:
2013-02-21 01:19:02 CST: WLS action state: failed
2013-02-21 01:19:02 CST: Action FAILED with WLS state: failed
2013-02-21 01:19:02 CST: Application deployment failed.
2013-02-21 01:19:03 CST: [Deployer:149194]Operation 'remove' on application 'helloSpring' has succeeded on 'm0'
2013-02-21 01:19:03 CST: WLS action state: completed
2013-02-21 01:19:03 CST: "Deploy Application" complete: status FAILED
[virus-scan]
2013-02-21 01:18:36 CST: Starting action "Virus Scan"
2013-02-21 01:18:36 CST: Virus Scan started
2013-02-21 01:18:53 CST: ----------------------------------------------------------------------
2013-02-21 01:18:53 CST: File Scanned: "helloSpring.war".
2013-02-21 01:18:53 CST: File Size: "4049531".
2013-02-21 01:18:53 CST: File Status: "CLEAN".
2013-02-21 01:18:53 CST: ----------------------------------------------------------------------
2013-02-21 01:18:53 CST: Virus scan passed.
2013-02-21 01:18:53 CST: "Virus Scan" complete: status SUCCESS
[whitelist]
2013-02-21 01:18:53 CST: Starting action "API Whitelist"
2013-02-21 01:18:53 CST: API Whitelist started
2013-02-21 01:18:56 CST: WARNING - There are 3 warnings(s) found for helloSpring.war.
2013-02-21 01:18:56 CST: WARNING - Path:helloSpring.war (3 Warnings)
2013-02-21 01:18:56 CST: WARNING - Path:helloSpring.war (3 Warnings)
2013-02-21 01:18:56 CST: WARNING - Path:WEB-INF**** (1 Warning)
2013-02-21 01:18:56 CST: WARNING - 1:Recommended child element "login-config" missing under element /
javaee:web-app.
If you want to make your application public, you can have empty
<login-config/> in your web.xml. If you need authentication then you must
have <login-config> and its child <auth-method> element in web.xml.
Without this element(<login-config>), users may be challenged by SSO, but
the application code will be executed as anonymous user only. Line No:5.
2013-02-21 01:18:56 CST: WARNING - Path:WEB-INF**** (2 Warnings)
2013-02-21 01:18:56 CST: WARNING - 1:Recommended child element "jsp-descriptor" missing under element /
orcl-weblogic:weblogic-web-app.
If you have a JSP file that is not pre-compiled, The compilation errors
could be shown on the browser. It is recommended to include
<jsp-descriptor><verbose>false<****><****-descriptor> in weblogic.xml.
Line No:2.
2013-02-21 01:18:56 CST: WARNING - 2:Recommended child element "session-descriptor" missing under element /
orcl-weblogic:weblogic-web-app.
You will be required to have distinct cookie-path, if multiple
applications are accessed with in the same SSO session or if you have
multiple applications with different auth-method(CLIENT-CERT, FORM, BASIC)
in the same service instance.
Line No:2.
2013-02-21 01:18:56 CST: WARNING - helloSpring.war had 3 warning(s).
2013-02-21 01:18:56 CST: INFO - Whitelist validation has completed with 0 error(s) and 3 warning(s).
2013-02-21 01:18:56 CST: Whitelist validation passed.
2013-02-21 01:18:56 CST: "API Whitelist" complete: status SUCCESSThis kind of deployment error is typically caused by usage of certain API's or an attempt by the SpringFramework to get certain restricted resources .
Can you please find the Service logs (Via Java service Console " View Service Logs" link ) and se if anything is reported in the timeframe when this deployment error happend. -
Word property with multiple lines
Good Morning,
I have a Document Library with an Word template, I fill some properties of the library so I can put this properties in the template. I am trying to write a line break, Any idea?
Thanks.Hi,
According to your post, my understanding is that you want to use Word property with multiple lines.
Per my knowledge, you can remove two updates: KB2760769 and
KB2760758.
The working version of office is 14.0.6129.5000.
Here is a similar thread for your reference:
http://sharepoint.stackexchange.com/questions/77759/inserting-multi-line-text-field-quick-part-from-sharepoint-crashes-word
More information:
Office 2010 Update KB2760758 Incorrectly Checks Multi-Line Columns
As this question is more relate to Word, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
http://social.technet.microsoft.com/Forums/en-US/home?forum=officesetupdeployprevious
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Multiple database users, ORM, entity framework, best practices
Hello everyone!
You've already helped me several times, however I must ask for an advice once more.
I was assigned to develop .NET application with Data Access Layer and I've decided to use Oracle Database Software to provide sample data.
As I'm absolute novice considering creating DAL I'd be grateful if you can examine my plan in terms of security and reliability:
My database:
1) I've created database with sample tables and relations between them. All tables belongs to databaseAdmin.
2) I've created HR and Manager database users and granted them some privileges on certain databaseAdmin's tables. My intention is to reduce access to unnecessary tables. If my application user want to make some changes to Customers table it should be enough to connect to database as HR.
And now I'd like to map my database using Entity Framework in my application. And that's where I have a problem:
-If I create Entity Model basing on databaseAdmin tables I get perfect model, however every Entity SQL query would be executed on behalf of databaseAdmin, which breaks my idea of hiding unnecessary tables.
-If I create Entity Model for HR and Manager users, my models could overlap on tables that both users have access to and no connection between tables would be generated (as from their point of view those tables are just some tables that belong to databaseAdmin)
Could you help me with this deadlock? Or maybe my assumptions about multiple database users are incorrect? Please, bear in mind I'm a novice.
I was trying to find a solution in web, and there're tons of data discussing technical aspects of Entity Framework etc., but not so many documents about conceptual model of database.hi Michael,
Thanks for you posting!
Sorry for I am not totally understanding your issue. Maybe two points need your confirm:
1. I confuse with the "Service controller"? IS your meaning MVC controller? Or ServiceController(http://www.codeproject.com/Articles/31688/Using-the-ServiceController-in-C-to-stop-and-start
2.whether The type of ID in the model is match to the database ? In other words, Is the type of IDin .edmx matched to the database?
By the way, it seems that this issue is more related to EF. You could post this issue on EF discussion for better support.
Thanks & Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to make a line intersect with a path at random angles?
How do you make a line intersect with the anchor point of a half circle when you want the line to continue on past the anchor point of the half circle at a random angle?
Howdy.
Try this:
Lock the semicircle. With the pen tool, draw a line from the point of origin to the anchor point of the semicircle. It will still snap even though it's locked.
Now, we use Jet's scale idea. Select the Scale Tool (S). Click on the point of origin to position the reference point. It will snap. Now, while holding down the Shift Key, drag right and down. The line segment will stay snapped to the endpoint while you drag (highlighted). You can drag it as far as you want.
That's it.
Peace,
Lee
PS: It's pretty much all Jet's method with the benefit of the OP's screenshot of what he was trying to accomplish. Jet offered the best answer, it looks like to me. -
Flash Builder 4 - Beta / Design view sporadic at best
Okay, so I have installed the beta, and running through the Catalyst / Flash BUilder 4 tutorial, all is well, unitl i try to get the imprted fxp file to consistently display in the design mode. Not only that, but switching from code view to design view will break it just about 95% of the time, and then it will not display the created items that the tutorial has you put on them (i.e. the databinds to the names, etc etc).
Has anyone else experienced this? Other than a few little things like this, so far so good guys(ADOBE).
Thanks,
Craig Newrotheh_adobe wrote:
Please be aware that using a newer SDK with Flash Builder Beta's Design View may have unpredictable results. I can't say specifically since I don't know what version you tried and what your document contained, but... let's pretend for a second that the SDK changed something in a component - its name, its package, or any method or properties in it. Design View was compiled with a specific version of the SDK, and would not know about that change, and so might not react very well to the document. Yes this is not ideal, but it's hard to avoid when the SDK is changing rapidly (at some point it will settle down, and this won't be an issue). We can look at ways to mitigate this.
I have had less unpredicatable results with recent builds of the SDK the latest being build 7988- I basically update from the svn trunk every 2-3 days look through the changes run the checkintests just to make sure all is ok then see what happens to be small testbed apps, I have been doing this for several months. I don't mind the IDE not dealing with the changes as long as it tells me why it can't. But the code should not break the IDE. Also i'm getting a little confused as some of the responses to some issues (not the design mode one) in this forum have suggested seeing what happens with updated SDK's.
Anyway I have reverted everything back to a standard FB4 install and the first thing that happened yet another new flaw in design mode rears its head, no errors but this time a visually definable issue. The component appears as a 1 dimension line in the top left hand corner of the design editor window, not even on the design view working canvas. Attached is a screen shot and the associated code that caused it. Please note the IDE didn't draw the big red ring around the visual glitch so thats one less bug to worry about.
the app.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
<s:HSlider x="50" y="50" width="200" height="30" skinClass="skins.HSliderSkin"/>
</s:Application>
skin part A.
<?xml version="1.0" encoding="utf-8"?>
<!--
ADOBE SYSTEMS INCORPORATED
Copyright 2008 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the license agreement accompanying it.
-->
<!--- The default skin class for the Spark HSlider component. The thumb and track skins are defined by the
HSliderThumbSkin and HSliderTrackSkin classes, respectively. -->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
minHeight="11" minWidth="100"
alpha.disabled="0.5">
<fx:Metadata>
<![CDATA[
* @copy spark.skins.default.ApplicationSkin#hostComponent
[HostComponent("spark.components.HSlider")]
]]>
</fx:Metadata>
<fx:Script>
/* Define the skin elements that should not be colorized.
For slider, the skin itself is colorized but the individual parts are not. */
static private const exclusions:Array = ["track", "thumb"];
* @copy spark.skins.SparkSkin#colorizeExclusions
override public function get colorizeExclusions():Array {return exclusions;}
</fx:Script>
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
<fx:Declarations>
<!--- Defines the appearance of the the Slider's DataTip. To customize the DataTip's appearance, create a custom HSliderSkin class. -->
<fx:Component id="dataTip">
<s:MXMLComponent minHeight="24" minWidth="40" y="-34">
<s:Rect top="0" left="0" right="0" bottom="0">
<s:fill>
<s:SolidColor color="0x000000" alpha=".9"/>
</s:fill>
<s:filters>
<s:DropShadowFilter angle="90" color="0x999999" distance="3"/>
</s:filters>
</s:Rect>
<s:SimpleText id="labelElement" text="{data}"
horizontalCenter="0" verticalCenter="1"
left="5" right="5" top="5" bottom="5"
textAlign="center" verticalAlign="middle"
fontWeight="normal" color="white" fontSize="11">
</s:SimpleText>
</s:MXMLComponent>
</fx:Component>
</fx:Declarations>
<!--- Defines the skin class for the HSliderSkin's track. The default skin class is HSliderTrackSkin. -->
<s:Button id="track" left="0" right="0" top="0" bottom="0"
skinClass="skins.HSliderTrackSkin"/>
<!--- Defines the skin class for the HSliderSkin's thumb. The default skin class is HSliderThumbSkin. -->
<s:Button id="thumb" top="1" bottom="1" width="{hostComponent.height*1.5}" skinClass="skins.HSliderThumbSkin"/>
</s:SparkSkin>
Skin Part B
<?xml version="1.0" encoding="utf-8"?>
<!--
ADOBE SYSTEMS INCORPORATED
Copyright 2008 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the license agreement accompanying it.
-->
<!--- The default skin class for the thumb of a Spark HSlider component. -->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Metadata>
<![CDATA[
* @copy spark.skins.default.ApplicationSkin#hostComponent
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>
<s:states>
<s:State name="up" />
<s:State name="over" />
<s:State name="down" />
<s:State name="disabled" />
</s:states>
<!-- border -->
<s:Rect left="0" right="0" top="0" bottom="0" radiusX="{hostComponent.height/2}" radiusY="{hostComponent.height/2}">
<s:fill>
<s:SolidColor color="0x4F4F4F" />
</s:fill>
</s:Rect>
<!-- fill -->
<s:Rect left="0.5" right="0.5" top="0.5" bottom="0.5" radiusX="{hostComponent.height/2}" radiusY="{hostComponent.height/2}">
<s:stroke>
<s:LinearGradientStroke rotation="90" weight="1">
<s:GradientEntry color="0x000000" alpha="0" />
<s:GradientEntry color="0x000000" alpha="0.33" />
</s:LinearGradientStroke>
</s:stroke>
<s:fill>
<s:LinearGradient rotation="90">
<s:GradientEntry color="0xFFFFFF"
color.over="0xE5E5E5"
color.down="0x999999" />
<s:GradientEntry color="0xD8D8D8"
color.over="0x7D7D7D"
color.down="0x555555" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- highlight -->
</s:SparkSkin>
Skin Part C
<?xml version="1.0" encoding="utf-8"?>
<!--
ADOBE SYSTEMS INCORPORATED
Copyright 2008 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the license agreement accompanying it.
-->
<!--- The default skin class for the track of a Spark HSlider component. -->
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Metadata>
<![CDATA[
* @copy spark.skins.default.ApplicationSkin#hostComponent
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>
<s:states>
<s:State name="up" />
<s:State name="down" />
<s:State name="over" />
<s:State name="disabled" />
</s:states>
<!-- border -->
<s:Rect left="-1" right="-1" top="0" bottom="-1" radiusX="{hostComponent.height/2}" radiusY="{hostComponent.height/2}">
<s:fill>
<s:LinearGradient rotation="90" >
<s:GradientEntry color="0x000000" alpha="0.55" />
<s:GradientEntry color="0xFFFFFF" alpha="0.55" ratio="0.8" />
</s:LinearGradient>
</s:fill>
</s:Rect>
<!-- fill -->
<s:Rect left="0" right="0" top="1" bottom="0" radiusX="{hostComponent.height/2}" radiusY="{hostComponent.height/2}">
<s:fill>
<s:SolidColor color="0xCACACA" />
</s:fill>
</s:Rect>
<!-- hit area -->
<s:Rect left="0" right="0" top="0" bottom="0" radiusX="{hostComponent.height/2}" radiusY="{hostComponent.height/2}">
<s:fill>
<s:SolidColor alpha="0"/>
</s:fill>
</s:Rect>
</s:SparkSkin> -
Asynchronuous functions don't work in a C# dll used by a CVI application
Hello,
I have an existing application written with CVI 9.0.1, which have to interact with a C# 2010 dll (which doesn't have any window) via a CVI<->.net wrapper (created using the usefull .net controller of CVI).
This C# dll uses asynchronuous functions, like NetworkStream.BeginRead() and EndRead() functions of a System.Net.Sockets.TcpClient object for example.
These asynchronuous functions work fine when the C# dll is used by a C# application (having a main window) or when the C# dll is converted in a standalone C# program (having a main window with buttons, to call its methods, just to try), but asynchronuous functions don't work when my C# dll is called by my CVI application (which is my goal): execution stays inside NetworkStream.BeginRead() for example (for the concerned thread).
NetworkStream.BeginRead() can be successfully bypassed by using the synchronuous function NetworkStream.Read() instead, but the C# dll uses others asynchronuous functions wich have no associated synchronuous functions.
Here is a portion of C# code (I don't have the source code for the Snmp object ; got_trap() method is never called when asynchonuous calls don't work):
public void run() // the thread
Snmp snmp = null;
try
snmp = new Snmp(true);
snmp.NotifyListenPort = 162;
snmp.NotifyRegister(null, null, new NotifyCallback(got_trap), CB_DATA_);
isActive = true;
Thread.Sleep(Timeout.Infinite);
Thinking it could be a problem with window messages which could be not processed (in the C# dll), I tried to replace the Thread.Sleep(Timeout.Infinite) instruction, in the code where the asynchronuous management take place, by a window creation plus my Win32 window message loop, but asynchronuous functions don't work better (whereas my loop seems to successfully process messages):
Form myForm = new Form(); // an empty window
myForm.Show();
int bRet;
MSG msg = new MSG();
while ((bRet = GetMessage(out msg, IntPtr.Zero, 0, 0)) != 0)
if (bRet == -1)
// handle the error and possibly exit
else
switch (msg.message)
default: // everything else
TranslateMessage(ref msg);
DispatchMessage(ref msg);
break;
Any idea ?
Thank you,
rvfr.
Solved!
Go to Solution.Solved: in fact, the snmp assembly that I was using just needed to be dotNet registered.
rvfr. -
Best way to install Dev Preview 2.1.x on OS X 10.7
I just downloaded the OS X dev preview and am looking forward to experimenting with it, but the link on the downloads page that purports to link to "Release notes and installation instructions" actually leads to release notes only--no install instructions. I'd like the preview to be generally available on my system, but also want to make sure I don't have to chase down and delete multiple files when upgrading to a newer version (I might miss something) and also don't want to destabilize Java in apps that don't use JavaFX. Suggestions as to how to achieve these (probably contradictory aims) best are appreciated.
I'm usiing IDEA 11, and accessing Java libs through Scala 2.9.0.1 or above (depending on project).
Thanks,
Kendon't want to destabilize Java in apps that don't use JavaFXThe JavaFX dev preview installs are seperate installs from Java - Java knows nothing about them, so it can't be destabilized by them - this may change some time in the future if Java and JavaFX are co-bundled on OSX, but that probably won't happen anytime soon, so I wouldn't worry about it.
I'm usiing IDEA 11, and accessing Java libs through Scala 2.9.0.1 or above (depending on project).If you are already using JavaFX + Scala + IDEA 11, then you don't need the guide below, which isn't directly related to your question . . . but just in case.
Install Idea 11.0.1 from http://www.jetbrains.com/idea/download/index.html (important to have the latest version here as earlier builds of version of 11 didn't really work - read crashed... - with the scala plugin).
Get the latest nightly build of the Idea scala plugin from http://confluence.jetbrains.net/display/SCA/Scala+Plugin+Nightly+Builds+for+Nika (Nika is codename for Idea 11, earlier builds of the scala plugin don't work well with Nika).
Install the downloaded scala plugin in Idea via File | Settings | Plugins | Install Plugin from disk
Install JavaFX from http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html
To create a sample JavaFX + Scala project based on a maven artifact imported into Idea:
Set a JAVAFX_HOME environment variable to the location your JavaFX developer preview SDK is installed at. (not required for general JavaFX development, but is required to use this maven artifact).
Create a new project, File | New Project | Create Project From Scratch | Project Name => colorfulcircles & **select Maven Module** | Add Archetype | GroupId: de.schlichtherle ArtifactId: javafx-scala-demo Version: 0.4
Edit the pom.xml file to set the scala.version to 2.9.1 and the scalatest version to 1.6.1, then click on Maven Projects | Reimport (optional step to get the latest version)
Open ColorfulCirclesDocs.scala and change Application.launch line to Application.launch(classOf[ColorfulCirclesDocs]), then rightclick on the launch line to run the program - your screen should be full of colorful circles generated by scala invoking JavaFX.
If you are new to JavaFX, I recommend developing JavaFX in Java, otherwise have fun with JavaFX and Scala and, if you have not seen it yet, checkout the ScalaFX project (http://code.google.com/p/scalafx/) .
Maybe you are looking for
-
Previewing Transients in Loops?
Hi there, I've got two questions regarding transients in Apple Loops. If I create an Apple Loop from an audio sample I have, the transients differ in the Logic Sample Editor to how they are when I open the loop in Apple Loops Util. For example, let's
-
Why can't Mountain be installed on a 2006 iMac? I meet every system requirement.
My father would like to go ahead and upgrade to Mountain Lion. I have upgraded the RAM on his his machine and it meets every system requirement other than it was manufactered in 2006. I don't see any reason why it can't run the OS.
-
Hello Can I get a lead for my analog video camera to record video onto my mac? Hope someone can help! Cheers Ed
-
Dual formatting with windows and mac
ive just bought a mac book and want to use my i pod photo but its windows formatted how can i reformat to mac(or both mac and windows)without losing all my songs and photos (i know you can erase etc but ill lose all my songs etc -can i sync with my w
-
NW EHP1 SPS10 installation fails @PREPARE_JSPM_QUEUE
Our System is ERP - ECC 6.0 (ABAP+JAVA) ABAP - EhP4 SPS08 (ABAP) JAVA - Ehp1 SPS 07. We are trying to upgrade this can some help us with the following Issue =============================================== The execution of PREPARE_JSPM_QUEUE/PREPARE_J