[jbosstools-issues] [JBoss JIRA] (JBIDE-21915) Preferences: Cannot browse and choose the oc binary
Andre Dietisheim (JIRA)
issues at jboss.org
Fri Mar 18 17:03:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-21915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179408#comment-13179408 ]
Andre Dietisheim edited comment on JBIDE-21915 at 3/18/16 5:02 PM:
-------------------------------------------------------------------
So yes it's pretty clear that our filefilter is wrong. we have the extension for the binary set to "*exe*":
{code:title=org.jboss.tools.openshift.internal.core.preferences.OCBinary}
WINDOWS("oc.exe", new String[] { "exe" }),
{code}
The preferences page is using this to set the file filter:
{code:title=org.jboss.tools.openshift.internal.ui.preferences.OpenShiftPreferencePage#createFieldEditors}
cliLocationEditor.setFileExtensions(ocBinary.getExtensions());
{code}
The WizardArchiveFileResourceImportPage1 of the ZipFileImportWizard in Eclipse is using "\**.exe*" as extension:
{code:title=WizardArchiveFileResourceImportPage1}
private static final String[] FILE_IMPORT_MASK = { "*.jar;*.zip;*.tar;*.tar.gz;*.tgz", "*.*" };
...
dialog.setFilterExtensions(this.fileImportMask);
{code}
was (Author: adietish):
So yes it's pretty clear that our filefilter is wrong. we have the extension for the binary set to "exe":
{code:title=org.jboss.tools.openshift.internal.core.preferences.OCBinary}
WINDOWS("oc.exe", new String[] { "exe" }),
{code}
The preferences page is using this to set the file filter:
{code:title=org.jboss.tools.openshift.internal.ui.preferences.OpenShiftPreferencePage#createFieldEditors}
cliLocationEditor.setFileExtensions(ocBinary.getExtensions());
{code}
The WizardArchiveFileResourceImportPage1 of the ZipFileImportWizard in Eclipse is using *"\*.exe"* as extension:
{code:title=WizardArchiveFileResourceImportPage1}
private static final String[] FILE_IMPORT_MASK = { "*.jar;*.zip;*.tar;*.tar.gz;*.tgz", "*.*" };
...
dialog.setFilterExtensions(this.fileImportMask);
{code}
> Preferences: Cannot browse and choose the oc binary
> ---------------------------------------------------
>
> Key: JBIDE-21915
> URL: https://issues.jboss.org/browse/JBIDE-21915
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.1.CR1
> Environment: Windows
> Reporter: Andre Dietisheim
> Priority: Blocker
> Fix For: 4.3.1.CR1
>
>
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list