public void execute() { filesListPanel.setShowHiddenFiles(!solutionTree.isShowHiddenFiles()); solutionTree.setShowHiddenFiles(!solutionTree.isShowHiddenFiles()); solutionTree.setSelectedItem(solutionTree.getSelectedItem(), true); // update setting final String url = GWT.getHostPageBaseURL() + "api/user-settings/MANTLE_SHOW_HIDDEN_FILES"; //$NON-NLS-1$ RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); try { builder.sendRequest( "" + solutionTree.isShowHiddenFiles(), EmptyRequestCallback.getInstance()); RepositoryFileTreeManager.getInstance() .fetchRepositoryFileTree(true, null, null, solutionTree.isShowHiddenFiles()); } catch (RequestException e) { // showError(e); } }
public void onTreeItemSelected(TreeItem item) { filesListPanel.setShowHiddenFiles(solutionTree.isShowHiddenFiles()); filesListPanel.populateFilesList(SolutionBrowserPanel.this, solutionTree, item); filesListPanel.getToolbar().setEnabled(false); }