Can I have a Thread running inside another Thread.

I am in the process of trying to (somehow) develop a simple pluginable application. At least for now just to start understanding the concept of such applications (like eclipse).
I tought of loading each plugin inside a thread as a seperate process. So that all the plugins can run concurently. However what if one of the plugins make use of threads? Is that possible? however most important then that, do you think it makes sense?
I must admit I still did not even try an example of this, since I am still coding the refectoring section, and most of the time I have spent it on ant build (I know just acuses ... but :$)
regards,
sim085

Why would every plugin run in it's own thread? Consider the example of Eclipse. I've got an XML editor plugin installed. Now when I only edit Java files, would the code of that xml editor run in it's own Thread and waste resources? No, it would not run at all. In eclipse there is a central resource that knows "when the user wants to open an XML file then let the xml editor plugin handle that" and only when I click on an XML file the code from that plugin is actually run.
Basically you'll have to think about what your plugins should be able to do. Do you simply want to provide additional actions for your menus? Or do you want it to open a seperate window?
Btw, did you consider using Eclipse as a base? It's got the entire plugin concept worked out already and is a rather stable and powerful target platform IMHO.

Similar Messages

  • Can I have to User Task inside one BPEL

    Hi All
    Can I have to User Task inside one BPEL?
    Can any of U tell me ..? I am getting exception....like in case of user defined key it must be unique......

    Probably best to ask this on the BPEL forum:
    BPEL

  • I have a movieclip running inside a movieclip and i want to trigger

    I have a movieclip running inside a movieclip and i want trigger an action on the timeline -
    in AS2 I would put _root.gotoAndPlay("start6_fl"); or _parent.gotoAndPlay("start6_fl"); depending on were I wanted to go -
    How do you do this really simple action in AS3?

    Try using...
    MovieClip(this.root).gotoAndPlay...
    or
    MovieClip(this.parent).gotoAndPlay...

  • Can I have my iTunes Library on another Mac in addition to my main one?

    My wife and I both have MacBook Pro's and separate i-Tunes libraries and i-Pods. We just bought a 13in White MacBook to use for travel only. Can we copy our library onto that Mac and still leave it on our existing Macs? We also have both of our i-Tunes libraries and Macs backed up on a Time Capsule.

    Can we copy our library onto that Mac and still leave it on our existing Macs?
    Yes. Drag the iTunes folder inside the item in the Finder's sidebar named Music on the MacBook Pro to the corresponding location on the MacBook. The folder can be put somewhere else if needed; if so, launch iTunes with the Option key held down, click on Choose Library, and point it to that location.
    (44544)

  • How can I have Iphoto Faces run through my photos to identify faces?

    I merged two libraries together and the newer library had all the faces named after many hours. I loaded the older library by merging and was hoping that the faces I had painstakingly done on the newer one would start reviewing these pictures and suggesting people etc. It appears this is not the case and that I will have to go through each photo and "add missing" face which is really tedious.
    Does anyone know a way for faces to scan my whole new library to start suggesting faces for me to confirm. I would appreciate any help you can provide.
    Skip

    Dear LN,
    Thanks so much for the quick response. Is there a way to highlight (or select) a whole bunch of shots and control click for missing faces? Or do I have to do it one by one? When I try it on one picture, I then put in the names and hit the next arrow for the next picture. But it does not scan automatically. I have to hit the faces button and then go back to thumbnails. What I am hoping to do is have it go through perhaps a whole event and then I go through to confirm.
    Does this make sense?
    Thanks,
    Skip

  • Can you have installed and run both iWorks and Office 11 on OS X Lion?

    I have iworks installed and was wandering whether it would be possible to install and use Office 11 also?

    Yes. There's no problem at all with having and using both. I use Office for work related stuff for compatibility with complex office documents and iWork for all my own personal stuff.

  • How can I have one drum sample mute another in Garageband?

    I'm trying to set up a situation where the muted surdo hit (in the world jam pack) cuts off the decay of the full surdo hit. Much like a closed hihat hit would cut off the decay of an open hihat. I'm using a DRUMKAT as the controller. How can I make this happen?

    With Safari open use the Command + T keyboard shortcut to open a new tab.
    Or, Command + N to open a new window.

  • Barcode shows a bunch of squares when barcode is made on AI CS11. Does anyone know a fix for this? We have CS2 running on another PC and we don't get this problem.

    Barcode shows a bunch of squares when barcode is made on AI CS11. Does anyone know a fix for this? We have CS2 running on another PC and we don't get this problem.
    Background:
      Using FrameMaker 7.1 to create a PDF file where a CS11 barcode file is embedded. PDF generates fine but we get a bunch of squares when we copy and paste the barcode data into Notepad.
      We have CS 2 running on another PC and we don't get this problem. Do I need to install a plugin (if any) for CS11 to get this to work?
    Thanks!

    Thanks for your feedback.  I was not able to mention earlier that in my line of work, we use Notepad to check if the barcode text is written correctly or if the corresponding text can be found if searched in the PDF... We use FREE3OF9.TTF font when entering text values for the barcode (usually in document/part number format exclusive for our company's use) in AI CS11. After saving the AI file, we attach it in a document using FrameMaker 7.1, then a PDF file is created. The output PDF will be a certification sheet for our products. They (our clients) should be able to scan the document/part number out of the barcode. I'm sorry, I could not divulge any other information so I am not sure if this clears out the issue. It used to work before but I had to get my PC formatted and since then I have been encountering this problem. I am trying to figure out if we missed to install a component or something got messed up after re-installing Adobe Illustrator CS11.

  • How to put an MSO inside another MSO

    Hello all!
    An interesting question came up in the following post by Folobo:
    http://forums.adobe.com/message/4572897#4572897
    "Is it possible to use a slideshow embedded in a big overlay slideshow?"
    I'd like to rephrase this question:
    "Is it possible to put a MultiStateObject (MSO) inside another MultiStateObject?"
    And further: if the answer is "yes", could we put that to use with the DPS?
    @Folobo – this is an interesting question. A quick test is showing that you cannot do it in the UI (correct me if I'm wrong).
    Let's try it this way:
    If you have two objects:
    1. an MSO #1 (with two rectangles, rectangle #1, rectangle #2)
    2. Another rectangle on the page: rectangle #3
    Now select the two objects and make an MSO out of it (using the "Object States" panel).
    You would think, now I get an MSO with two states, state 1 with rectangle #3 together with state 2 with MSO #1.
    But not so:
    Result: One new MSO with three states (rectangle #1, rectangle #2, rectangle #3)
    Hm. I don't give up on that. Let's try it another way:
    Could we select at least two objects inside a state of an MSO and make that a new MSO?
    Sure, We could select two objects inside a state, but since we are *inside* an MSO the "Object States" panel does not show the possibility to make a new MSO. You can only add states or add objects to states…
    Frustrating. End of story? Maybe…
    Be forewarned. The following is highly experimental!
    Let's try it by scripting (ExtendScript/JavaScript).
    The scripting reference is showing that an MSO "MultiStateObject" object has an add()-method. And further on, that add()-method could be applied to:
    Document
    Spread
    MasterSpread
    Page
    Layer
    pageItem
    And that is the key to a possible solution. We could add a new MSO to a "pageItem" object.
    A simple rectangle should be qualify for a "pageItem" object; and that, of course, could reside in a state of an MSO.
    So, we could add a new MSO to a rectangle inside of a MSO!
    How can we access a rectangle inside a MSO? Easy: We could select it and work with that selection.
    So let's do that: select the rectangle in the first state of an MSO and run this one-line-script (be sure you did select the rectangle and not the MSO or one of its states:
    app.selection[0].multiStateObjects.add();
    We now have an MSO inside another MSO!
    Explanation:
    A "generic MSO" was added with the add()-function to a selection (the container object: in our case the selected rectangle).
    The "generic MSO" is a two state MSO consisting of one rectangle in each state of a very small size (10px x 10px).
    At first it is invisible, because it is very likely that it is positioned outside the geometric bounds of its container object (the rectangle).
    But we can customize this!
    Go to the layers palette and select the new MSO, move it inside the geometric bounds of its container object, readjust its size, add states as you wish, populate the states with images, and other objects etc.pp.
    So, what can we do with an MSO inside another MSO? (As I already said, this is highly experimental.)
    My experiments with that are very fresh. I did not try a lot. But it seems that we could at least autoplay this MSO.
    I have to test more thoroughly what is possible and what will work with buttons etc.pp…
    I really like to hear from you what you will find out and if you can put it to any use.
    Uwe
    Message was edited by: Laubender

    @Mobly – in case it did not work out for you, here some screen grabs for the different steps:
    1. Select an MSO:
    2. Select a "graphic frame" inside the MSO; in this case a "<square>"; you can see the big blue dot in the Layers panel behind the generic name "<square>":
    3. Open the Scripts Panel and select the script:
    4. Run the script by double-clicking the script; the generic name of your selected object has changed to "graphic frame", but trust me, it's still a square…
    5. Click the "Ok" button of the message and InDesign will select the new MSO ("Multi-state 2") as you can see here. It has two states with one rectangle each,  fill and stroke is "None":
    And: you can see that this new MSO is nested inside the MSO ("Multi-state 1").
    What you do with that construct is up to you:
    6. Color the "<square>" of state 1 of "Multi-state 2":
    7. Resize and change position of "Multi-state 2":
    8. But remember: "Multi-state 2" is nested in the graphic frame you selected before running the script:
    I hope you get the picture now…
    Uwe

  • How do I have two apps running side by side i.e. calculator

    How can i have x2 apps running side by side ie notebook & calculator without going back & forth.
    I have tried several browser type apps but these have not been very succesfull.
    My daughters samsung does this no problem at all.
    Does anyone no why it seems so hard to acheive especially after all the updates ect since launch.
    Probably going to go down samsung route.
    Dave

    7 month old thread, probably by this time OP already has a Note.
    As for the rest of us, we did understand. Kappy answered correctly that it could not be done. Its jus not something iOS is programmed to do.
    We then gave some alternatives. no one suggested it was what the OP wanted to do. Just something that could be done to approximate the requirement.
    If that doesn't work for you, then there's nothing else that can be done.
    Its not a currently supported feature on iOS. You can offer the suggestion to Apple on their feedback page.
    http://www.apple.com/feedback/
    There's nothing wrong with buying a different product that fits your needs more than an iPad.
    Its like tryng to take a Sedan offroad. Was it built to do that?  No. Can it, probably limitedly but the experience is not going to be very pleasant. Buy an Offroad vehicle and you can go offroad just fine. You don't whine because the sedan can't do it. You get something that can.

  • How can I have Main report with a sub-report with in a sub-report??

    I have a main report that has about 5 subreports, almost like a dashboard.  I need to make one of those subreports contain another subreport.
    I don't have the option to add a sub-report with in my sub-report, so what I thought would work is remove my sub-report from my main report, then add my new sub-report, then add that report back to my main report.
    Everytime I add the sub-report that has a sub-report to my main report I lose the second sub.
    From what I've read on the internet is you can't have a sub-report contain another sub-report.  What some say is you can hyperlink that second sub report.
    When I setup my hyper link to open the second sub-report I'm prompted to re-enter my report parameters.
    Can some help me link a sub-report to a sub-report or show me how to pass a date range parameter in my hyper link so the reports just opens up?
    I'm using CR IX R2
    Thanks

    Nate,
    You are dealing with a product limitation.  Crystal cannot have nested subreports within a sub report. 
    You can generally use shared variables between sub reports to achieve your desired result

  • How can I make a program run in the background?

    I'm working on a custom console program. I plan to have the commands as seperate applications and create a server/client relationship so they can communicate with each other. However whenever I call a command I don't want to have a console window pop up, flicker out, etc. I want it to look like it's one complete app. So I'm wondering how can I have the app run in the background?

    If you're using a unix system, use the "&" argument (or character, what is its name anyway?) at the end of the command line.
    I think you can use javaw in the MS-Windows world.

  • Can we have multiple grid installations on a RAC configuration

    Hi,
    I just want to check whether we can have multiple grid installations running in parallel on same configuration. For eg: A 3 node RAC having 11g and 12c RAC configurations running in parallel.
    I understand that we can have multiple oracle database installations under a grid , but not sure of multiple grid installations.
    Can someone guide me here ?
    --Amith

    Hi,
    You can not have multiple GI running on same server.
    Please review the following  note:
    11gR2 Clusterware and Grid Home - What You Need to Know (Doc ID 1053147.1)
    Specifically:
    11gR2 Clusterware Key Facts
    "Only one set of clusterware daemons can be running per node."
    Also refer the following RAC faq note and you may get answer for most of question
    RAC: Frequently Asked Questions (Doc ID 220970.1)

  • I have 4 computers running Adobe CC under two different accounts (as 1 account can only be installed on two computers) i need it on a 5th computer now, do i need another account or can i set up something so all 5 run from the same account making it easier

    I have 4 computers running Adobe CC under two different accounts (as 1 account can only be installed on two computers) i need it on a 5th computer now, do i need another account or can i set up something so all 5 run from the same account making it easier?

    Check into a Team account
    -http://www.adobe.com/products/creativecloud/teams/benefits.html
    -assign a new team member http://forums.adobe.com/thread/1460939?tstart=0 may help
    -Team Installer http://forums.adobe.com/thread/1363686?tstart=0

  • Can I have a form inside another form?

    Hi!
    Is it possible to have a form inside another form?
    Regards,
    Filipa

    I think I'm messing up everything and i'm confused with how jsf works.
    I've noticed now that my problem doen't have todo with if i'm usin one form or nested forms :(
    The problem is (as i understood) that if the backing bean that I'm using for the chart part is a request chart, every time i submit the form a new instance of the bean is created and so the initialization of the selected checkboxes is redone.
    How can I avoid this? I would like to have only the choosen checkboxes selected.
    Here is the jsp code I'm using:
    <h:form>
    <h:panelGrid id="selectMenus" columns="2" style="margin-bottom:10px">
         <h:panelGroup style="margin-right:5px">
              <h:selectOneMenu id="projectSelectBox"
                   value="#{chartTypesBean.selectedProject}" onchange="submit()">
                   <f:selectItems value="#{chartTypesBean.projects}" />
              </h:selectOneMenu>
         </h:panelGroup>
         <h:panelGroup>
              <h:selectOneMenu id="chartSelectBox"
                   value="#{chartTypesBean.selectedProjectChart}" onchange="submit()">
                   <f:selectItems value="#{chartTypesBean.projectCharts}" />
              </h:selectOneMenu>
         </h:panelGroup>
    </h:panelGrid>
    <h:panelGrid id="calcByDay_grid" columns="2"
         rendered="#{chartTypesBean.lineRendered}">
         <h:panelGroup>
              <jd:barChart3d dataset="#{lineChartBean.lineDataset}" width="400"
                   height="400" fileExt="png" chartTitle="Calc by Day"
                   includeLegend="true" formatter="#{lineChartBean.formatter}"
                   type="Line" plotColor="#D8D8D8" binding="#{lineChartBean.lineChart}" />
         </h:panelGroup>
         <h:panelGroup>
              <h:selectManyCheckbox id="lineSeries" layout="pageDirection"
                   immediate="true" value="#{lineChartBean.lineSelectedSeries}">
                   <f:selectItems value="#{lineChartBean.lineSeries}" />
              </h:selectManyCheckbox>
              <h:commandButton id="lineSubmit" value="Submit"
                   action="submit()" />
         </h:panelGroup>
    </h:panelGrid>
    ... (other charts) ...
    </h:form>
    here is the line chart backing bean code:
    public class LineChartBean {
         private Logger logger = Logger.getLogger(LineChartBean.class
                   .getSimpleName());
         private boolean firstTime = true;
         private final String[] lineCategories = { "27/07/05", "28/07/05",
                   "29/07/05", "30/07/05", "31/07/05", "01/08/05", "02/08/05",
                   "03/08/05", "04/08/05", "05/08/05", "06/08/05", "07/08/05",
                   "08/08/05", "09/08/05", "10/08/05", "11/08/05", "12/08/05",
                   "13/08/05", "14/08/05", "15/08/05", "16/08/05", "17/08/05",
                   "18/08/05", "19/08/05", "20/08/05", "21/08/05", "22/08/05",
                   "23/08/05", "24/08/05", "25/08/05", "26/08/05" };
         private final SelectItem[] lineSeries = { new SelectItem("Open", "Open"),
                   new SelectItem("P1(Open)", "P1(Open)"),
                   new SelectItem("P2(Open)", "P2(Open)"),
                   new SelectItem("Active", "Active"), new SelectItem("Test", "Test"),
                   new SelectItem("Evol", "Evol") };
         private final double[][] lineValues = { { 8, 1, 4, 6, 7, 11.60483871 },
                   { 11, 1, 4, 7, 5, 11.62903226 }, { 11, 1, 4, 7, 5, 11.65322581 },
                   { 11, 1, 4, 7, 5, 11.67741935 }, { 11, 1, 4, 7, 5, 11.7016129 },
                   { 13, 2, 5, 7, 5, 11.72580645 }, { 14, 2, 5, 7, 5, 11.75 },
                   { 12, 3, 4, 9, 5, 11.77419355 }, { 12, 3, 4, 9, 5, 11.7983871 },
                   { 12, 3, 4, 9, 5, 11.82258065 }, { 12, 3, 4, 9, 5, 11.84677419 },
                   { 12, 3, 4, 9, 5, 11.87096774 }, { 14, 3, 5, 10, 4, 11.89516129 },
                   { 13, 2, 6, 12, 4, 11.91935484 }, { 13, 2, 6, 12, 4, 11.94354839 },
                   { 13, 2, 6, 12, 4, 11.96774194 }, { 12, 2, 5, 4, 13, 11.99193548 },
                   { 12, 2, 5, 4, 13, 12.01612903 }, { 12, 2, 5, 4, 13, 12.04032258 },
                   { 12, 2, 5, 4, 13, 12.06451613 }, { 12, 2, 4, 4, 11, 12.08870968 },
                   { 12, 2, 4, 3, 9, 12.11290323 }, { 14, 3, 5, 2, 4, 12.13709677 },
                   { 11, 0, 5, 3, 5, 12.16129032 }, { 11, 0, 5, 3, 5, 12.18548387 },
                   { 11, 0, 5, 3, 5, 12.20967742 }, { 12, 0, 6, 2, 5, 12.23387097 },
                   { 12, 0, 6, 2, 4, 12.25806452 }, { 12, 0, 6, 2, 4, 12.28225806 },
                   { 12, 0, 6, 2, 4, 12.30645161 }, { 12, 0, 6, 2, 4, 12.33064516 } };
         private DefaultCategoryDataset lineDataset;
         private String[] lineSelectedSeries;
         private NumberFormat formatter = new DecimalFormat("#,###.##");
         public CategoryDataset getLineDataset() {
              if(firstTime) {
                   lineSelectedSeries = new String[lineSeries.length];
                   for (int i = 0; i < lineSeries.length; i++) {
                        lineSelectedSeries[i] = (String) lineSeries.getValue();
                   firstTime = false;
              lineDataset = new DefaultCategoryDataset();
              for (int serie = 0; serie < lineSeries.length; serie++) {
                   String serieName = (String) lineSeries[serie].getValue();
                   boolean isSelected = false;
                   for (String selectedSerie : lineSelectedSeries) {
                        if (lineSeries[serie].getValue().equals(selectedSerie)) {
                             isSelected = true;
                             break;
                   if (!isSelected) {
                        continue;
                   } else {
                        for (int category = 0; category < lineCategories.length; category++) {
                             double y = lineValues[category][serie];
                             lineDataset
                                       .addValue(y, serieName, lineCategories[category]);
              return lineDataset;
         public NumberFormat getFormatter() {
              return formatter;
         * @return Returns the lineSelectedSeries.
         public String[] getLineSelectedSeries() {
              return lineSelectedSeries;
         * @return Returns the lineSeries.
         public SelectItem[] getLineSeries() {
              return lineSeries;
         * @param lineSelectedSeries
         * The lineSelectedSeries to set.
         public void setLineSelectedSeries(String[] lineSelectedSeries) {
              this.lineSelectedSeries = lineSelectedSeries;

Maybe you are looking for

  • My ipod cannot be recognized by my computer

    My 4G nano works perfectly fine when playing music. but when I connect it to my computer. The changing icon is shown, but it doesn't pop out in iTune. I enabled it disk use, but now I cannot find the drive. Seems it is connected (it's charging), but

  • Can't get image to "open in" CC Ps6 always opens

    When I try to get a jpg file to "open in" Ps CC it opens in Ps6. I have checked the shortcut I use to open CC and it is C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit) But the only EXE file in that folder opens Ps6; even though my shortcut; with t

  • PBXX condition price

    Hi all, When i create a new PO, prices from previous POs (which have the same material and the same vendor as the new PO) are automatically reused, does anyone know where is it customised? If the currency is different  (ex:previous po in USD, new po

  • Opening RAW files with iPhoto 06- Nikon D200

    Is there any way to open RAW files with iPhoto 06 ? I have a Nikon D200.

  • Counter Problem for Target segments

    Hi All, I am facing a typical problem... Need your valuable inputs.. I have two segments E1TXTP9, E1TXTP8 in the source which will be repeated n times... And Target i have two structure I9INPT00, I9INPT00(this is duplicate subtree) E1TXTP9-->TDLINE i