Highlighted
Absent Member.
Absent Member.
2263 views

Custom Change Request Window won't close when I click the "X" button

Jump to solution

Hi.

We've developed a custom Change Request and it worked fine on Starteam SDK 2009.

We are migrating it to SDK 13, but now the custom window won't close when I press the "X" button. However, it closes when I press the "Cancel" button.

I don't know what kind of information I should provide, but following are some:

- I'm using StarTeam Cross-Platform Client 13.0

- My OS is Windows 7 Professional 64 bits

- The Server is StarTeam Server 13.0

- We've included in the project starteam130.jar and starteam110.bridgeTo.starteam130.jar

- In ChangeRequestLauncher, we've overrided createNavigatorPanel method as follows:

@Override
protected DefaultNavigatorPanel createNavigatorPanel() {

DefaultNavigatorPanel panel = new DefaultNavigatorPanel() {

@Override
protected void changeTitle(ItemWrapper item) {

ChangeRequestForm form = (ChangeRequestForm) this.form;

String titulo = getTitulo(item);

String nmPrjAtual = getNomeProjetoAtual();

form.setContextInformation(item, nmPrjAtual);

setTitle(titulo);

}

};


panel.setForm(createForm());

return panel;

}

I'm not sure if this method is at all related to this problem, but it's the only place in our source-code where we change something from the parent window.

My question is: is it a known issue or am I doing something wrong in the code which might have a side effect on the "X" button? Is there a way for me from within my source-code to have access to the code for the "X" button, in order to force the window to close?

Thanks in advance,

Cindy.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

RE: Custom Change Request Window won't close when I click the "X" button

Jump to solution

Hi, Anil.

In case someone gets the same problem:

I got the latest SDK and the latest client version of ST13 and the bug vanished.

Thank you.

View solution in original post

0 Likes
6 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Custom Change Request Window won't close when I click the "X" button

Jump to solution

Hi Cindy,

I don’t see anything in the default changeTitle method specifically that would affect this, but as a general rule for any method you overwrite, you should first call the super method and then provide your changes so that any listener or other setup code isn’t bypassed.

you may also try to comment out this method and see if the X button starts working or not...

0 Likes
Absent Member.
Absent Member.

RE: Custom Change Request Window won't close when I click the "X" button

Jump to solution

Hi, Anil.

Thanks for your quick reply.

I added the call to the super methods, but it didn't fix the bug.

I had already tried to comment the code, but it also hasn't fixed the bug either.

Anything else I could be missing?

Thanks,

Cindy.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Custom Change Request Window won't close when I click the "X" button

Jump to solution

Or maybe some tips on what I could look for 🙂

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Custom Change Request Window won't close when I click the "X" button

Jump to solution

Hi Cindy,

I'm sorry, but we are at a bit of a loss with this.

You should probably request tech support to do a code review and see where the window closing events are being bypassed.  

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Custom Change Request Window won't close when I click the "X" button

Jump to solution

Thank you, Anil.

We'll ask for support.

In the meanwhile, I've found out that pressing ALT+F4 won't work either and the same happens if I try to close the window by right-clicking and selecting "Close".

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Custom Change Request Window won't close when I click the "X" button

Jump to solution

Hi, Anil.

In case someone gets the same problem:

I got the latest SDK and the latest client version of ST13 and the bug vanished.

Thank you.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.