modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/SearchGUI.java
| 72 ----------
1 file changed, 72 deletions(-)
New commits:
commit bbc4b2938a4251c29d2db42e5f2ab5066e874bc5
Merge: 291d24d 8f26340
Author: Mike Thompson <mithomps(a)redhat.com>
Date: Tue Jun 5 09:43:38 2012 -0700
Merge branch 'search-noentrypoint'
commit 8f263408ac368f867edaa000e50ce92e0f37a4bb
Author: Mike Thompson <mithomps(a)redhat.com>
Date: Tue Jun 5 09:30:37 2012 -0700
Remove unused entry Search Entry point. SearchGUI.java is an unused EntryPoint
probably left over from integration with legacy jsf app.
diff --git
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/SearchGUI.java
b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/SearchGUI.java
deleted file mode 100644
index 4c06d51..0000000
---
a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/SearchGUI.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * RHQ Management Platform
- * Copyright (C) 2010 Red Hat, Inc.
- * All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-package org.rhq.enterprise.gui.coregui.client;
-
-import com.google.gwt.core.client.EntryPoint;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.smartgwt.client.util.SC;
-
-import org.rhq.core.domain.auth.Subject;
-import org.rhq.enterprise.gui.coregui.client.search.SearchBar;
-import org.rhq.enterprise.gui.coregui.client.util.Log;
-
-/**
- * @author Joseph Marques
- */
-public class SearchGUI implements EntryPoint {
- private static final Messages MSG = CoreGUI.getMessages();
-
- public static SearchGUI singleton = new SearchGUI();
- private SearchBar searchBar;
-
- private SearchGUI() {
- }
-
- public static SearchGUI get() {
- return singleton;
- }
-
- public void onModuleLoad() {
- if (SearchBar.existsOnPage() == false) {
- Log.info("Suppressing load of SearchGUI module");
- return;
- }
-
- UserSessionManager.checkLoginStatus(null, null, new
AsyncCallback<Subject>() {
- @Override
- public void onFailure(Throwable caught) {
- SC.say(MSG.view_searchGUI_loginStatus());
- }
-
- @Override
- public void onSuccess(Subject result) {
- singleton.buildSearchGUI();
- }
- });
- }
-
- public void buildSearchGUI() {
- searchBar = new SearchBar();
- }
-
- public SearchBar getSearchBar() {
- return searchBar;
- }
-
-}
Show replies by date