Menu

#401 Preference "No. of versions in history:" looks like not working

2.x
closed-fixed
None
5
2020-11-06
2016-04-17
surezi
No

Preference "No. of versions in history:" looks like not working.
How does it work?

public static String getHistoryRecord() {
    return ClearCasePlugin
            .getDefault()
            .getPluginPreferences()
            .getString(
                    IClearCasePreferenceConstants.CLEARCASE_PRIMARY_GROUP);
                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^
}

I guess that above code is bad.
But I'm sorry if I have mistaken.

Related

Bugs: #401

Discussion

1 2 > >> (Page 1 of 2)
  • Jan Vodička

    Jan Vodička - 2016-04-25

    I have noticed it as well and I have already provided a patch with a fix for this problem.
    https://sourceforge.net/p/eclipse-ccase/discussion/167189/thread/5e267bb2/

    Jan

     
    • surezi

      surezi - 2016-04-25

      That's great!
      Thank you for telling me.
      And I'll wait for new version.

       
  • Thomas Bark

    Thomas Bark - 2020-10-05

    Hi,
    with the commit [72986b] in the develop branch the history limit works as expected, both with numbers, e.g. "7:" or by date, e.g. ":2018-01-01".
    Tom

     

    Related

    Commit: [72986b]

  • Mikael Petterson

    Hi,
    Can you merge into master so we can make a delivery?

    //mike

     
  • Thomas Bark

    Thomas Bark - 2020-10-05



    <meta content="width=device-width" name="viewport">
    <meta content="text/vnd.ui.insecure+html;charset=utf-8" http-equiv="Content-Type">

    Hi Mike,
    Which parts shall I merge in the master branch?
    Only #401?
    Also #389?
    Whole develop branch?

    Tom

    --
    Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.
    Am 05.10.20, 13:06 schrieb Mikael Petterson <eraonel@users.sourceforge.net>:


    Hi,
    Can you merge into master so we can make a delivery?


    //mike




    [bugs:#401] Preference "No. of versions in history:" looks like not working


    Status: open
    Group: 2.x
    Created: Sun Apr 17, 2016 06:05 AM UTC by surezi
    Last Updated: Mon Oct 05, 2020 10:04 AM UTC
    Owner: nobody


    Preference "No. of versions in history:" looks like not working.
    How does it work?



    public static String getHistoryRecord() {
    return ClearCasePlugin
    .getDefault()
    .getPluginPreferences()
    .getString(
    IClearCasePreferenceConstants.CLEARCASE_PRIMARY_GROUP);
    ^^^^^^^^^^^^^^^^^^^^^^^^
    }


    I guess that above code is bad.
    But I'm sorry if I have mistaken.




    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/eclipse-ccase/bugs/401/


    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/








     

    Related

    Bugs: #401

  • Mikael Petterson

    Hi Tom,

    If you have the possibility to verify them you can merge both into master.
    Would that be possible?

    //mike

     
  • Mikael Petterson

    I don't recall how many changes that it is on the branch. I have not set it up yet. Could you check the difference?
    //mike

    Ps. Thanks for your help.

     
  • Thomas Bark

    Thomas Bark - 2020-10-05



    <meta content="width=device-width" name="viewport">
    <meta content="text/vnd.ui.insecure+html;charset=utf-8" http-equiv="Content-Type">

    Yes, I can check it.
    And verify with eclipse 2020-09 (jre1.11) and 2020-03(jre1.8).
    What I cannot do, is running the junit tests (due to lack of knowledge, and missing easy mock 3.0 in my eclipse project).

    --
    Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.
    Am 05.10.20, 15:37 schrieb Mikael Petterson <eraonel@users.sourceforge.net>:


    I don't recall how many changes that it is on the branch. I have not set it up yet. Could you check the difference?
    //mike


    Ps. Thanks for your help.




    [bugs:#401] Preference "No. of versions in history:" looks like not working


    Status: open
    Group: 2.x
    Created: Sun Apr 17, 2016 06:05 AM UTC by surezi
    Last Updated: Mon Oct 05, 2020 01:32 PM UTC
    Owner: nobody


    Preference "No. of versions in history:" looks like not working.
    How does it work?



    public static String getHistoryRecord() {
    return ClearCasePlugin
    .getDefault()
    .getPluginPreferences()
    .getString(
    IClearCasePreferenceConstants.CLEARCASE_PRIMARY_GROUP);
    ^^^^^^^^^^^^^^^^^^^^^^^^
    }


    I guess that above code is bad.
    But I'm sorry if I have mistaken.




    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/eclipse-ccase/bugs/401/


    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/








     

    Related

    Bugs: #401

  • Thomas Bark

    Thomas Bark - 2020-10-05

    Hi Mike,
    I merged the develop branch into master (commit 8f3916), for the eclipse-ccase project only (for clearcase I have no access rights, I assume?).
    Please try to get the tests running. Tomorrow I will check the build of the master branch in my CC installation.
    CU, Tom

     
  • Mikael Petterson

    Hi
    I added you to clearcase-java too.
    I will check tests.

    br,

    //mike

     
    • Thomas Bark

      Thomas Bark - 2020-10-06

      Good Morning, I merged the clearcase develop branch to master too (no changes by me, I think).
      cu, Tom

       
    • Thomas Bark

      Thomas Bark - 2020-10-06

      Hi Mike.
      Now I was able to run the junit for the clearcase for java project!
      So I suppose in my eclipse-case eclipse project this 3rdparty link to easymock-3.0(like in clearacse project) etc. is missing.
      Do you have a hint, how I get it into the eclipse-ccase project?
      br, tom

       
    • Thomas Bark

      Thomas Bark - 2020-10-06

      Eclipse Compiler for Java(TM) v20200828-0941, 3.23.0, Copyright IBM Corp 2000, 2020. All rights reserved.


      1. ERROR in /Users/tom/git/code/net.sourceforge.eclipseccase.test/src/net/sourceforge/eclipseccase/test/ClearCaseProviderTest.java (at line 20)
        import org.easymock.EasyMock;
        ^^^^^^^^^^^^
        The import org.easymock cannot be resolved

       
  • Mikael Petterson

    Hi,

    I did the same and got some failures ( see attached picture).

     
  • Mikael Petterson

    Hi again :-)
    Two things:

    1. How do you import plugins?
    2. How do you build them?

    //mike

     
    • Thomas Bark

      Thomas Bark - 2020-10-06

      I coudn't adapte the test, as they are not runing here.

      2.1.) Maybe I did it wrong. I used the Import/Git/Projects from Git (with smart import).
      I should have used the General/Existing Projects into workspace instead? I wasn't aware that the eclipse .project files are part of the repo.

      I think I will open a second workspace, with import existing project wizard.

      3.2.) plugin.xml - Export Wizard

       
    • Thomas Bark

      Thomas Bark - 2020-10-06

      did new clones, import from existing projects into workspace,
      plugin.xml - export wizard, same errors in eclipseccase.test and .ui.test.
      couldnt resolve easymock..
      couldn't resolve Powermock..
      Eclipse RCP 2020-09-R

       
    • Thomas Bark

      Thomas Bark - 2020-10-06

      the successful junit of clearcase_for_java. on master with commit 2f652b.

       
    • Thomas Bark

      Thomas Bark - 2020-10-06

      one of the 2 failing test logs.

       
      • Thomas Bark

        Thomas Bark - 2020-10-06

        Now it found the missing packages. I had to check them in Java Build Path.
        When starting the test it now complains about
        java.lang.TypeNotPresentException: Type org.powermock.modules.junit4.PowerMockRunner not present

         
  • Mikael Petterson

    Hi,

    Could it be you are missing, powermock-easymock-junit-1.4.10?

    //mike

     
    • Thomas Bark

      Thomas Bark - 2020-10-07

      Hi,
      it is included in the git repo:
      /Users/tom/git/eclipse-ccase-new/eclipse-ccase-code/net.sourceforge.eclipseccase/lib
      tom@Thomass-MBP lib % tree ..
      zsh: command not found: tree
      tom@Thomass-MBP lib % ls -lr
      total 0
      drwxr-xr-x 8 tom staff 256 6 Okt 12:33 powermock-easymock-junit-1.4.10
      tom@Thomass-MBP lib % ls -lR
      total 0
      drwxr-xr-x 8 tom staff 256 6 Okt 12:33 powermock-easymock-junit-1.4.10

      ./powermock-easymock-junit-1.4.10:
      total 3544
      -rw-r--r-- 1 tom staff 322362 6 Okt 12:33 cglib-nodep-2.2.jar
      -rw-r--r-- 1 tom staff 114128 6 Okt 12:33 easymock-3.0.jar
      -rw-r--r-- 1 tom staff 648253 6 Okt 12:33 javassist-3.15.0-GA.jar
      -rw-r--r-- 1 tom staff 237344 6 Okt 12:33 junit-4.8.2.jar
      -rw-r--r-- 1 tom staff 36046 6 Okt 12:33 objenesis-1.2.jar
      -rw-r--r-- 1 tom staff 450002 6 Okt 12:33 powermock-easymock-1.4.10-full.jar
      tom@Thomass-MBP lib %

      But somewhere in my eclipse project the link is missing to that directory.
      cu, tom

       
  • Mikael Petterson

    Hi Tom!

    How have things been going. Any progress?
    //mike

     
    • Thomas Bark

      Thomas Bark - 2020-10-21

      Hi Mike,
      no progress with the 2 test suites. Also my son, who is more into it, couldn't solve the errors about missing powermock while starting the tests.
      I will try with the commit for 2.2.40 in an extra eclipse workspace, to get the tests running.
      But any help is appreciated. Must be something in the eclipse configuration for running tests.
      As the static code analyser doesn't complain about the test sources, its not a problem in the source files.
      br, Tom

       
    • Thomas Bark

      Thomas Bark - 2020-10-29

      Hi Mike,
      now that I'm able to run the tests, with an actual version of powermock/easymock, I will solve some of the failing tests (NullPointerException).
      I'll keep you informed, when its finished.
      br, Tom

       
1 2 > >> (Page 1 of 2)

Log in to post a comment.