Author: scabanovich
Date: 2011-07-22 12:41:32 -0400 (Fri, 22 Jul 2011)
New Revision: 33145
Removed:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIELProposalProcessor.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIJavaELProposalComputer.java
Log:
JBIDE-9362
https://issues.jboss.org/browse/JBIDE-9362
Deleted:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIELProposalProcessor.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIELProposalProcessor.java 2011-07-22
16:39:40 UTC (rev 33144)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIELProposalProcessor.java 2011-07-22
16:41:32 UTC (rev 33145)
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.cdi.ui.ca;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.swt.graphics.Image;
-import org.jboss.tools.cdi.core.CDICoreNature;
-import org.jboss.tools.cdi.core.CDICorePlugin;
-import org.jboss.tools.cdi.internal.core.el.CdiElResolver;
-import org.jboss.tools.jst.web.kb.el.KbELProposalProcessor;
-
-/**
- * @author Alexey Kazakov
- */
-public class CDIELProposalProcessor extends KbELProposalProcessor {
-
- /*
- * (non-Javadoc)
- * @see
org.jboss.tools.common.el.ui.ca.ELProposalProcessor#isEnabled(org.eclipse.core.resources.IFile)
- */
- @Override
- protected boolean isEnabled(IFile file) {
- IProject project = (file == null ? null : file.getProject());
- CDICoreNature nature = CDICorePlugin.getCDI(project, true);
- return nature!=null;
- }
-
- /*
- * (non-Javadoc)
- * @see org.jboss.tools.common.el.ui.ca.ELProposalProcessor#getImage()
- */
- @Override
- protected Image getImage() {
- return CdiElResolver.CDI_EL_PROPOSAL_IMAGE;
- }
-}
\ No newline at end of file
Deleted:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIJavaELProposalComputer.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIJavaELProposalComputer.java 2011-07-22
16:39:40 UTC (rev 33144)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/ca/CDIJavaELProposalComputer.java 2011-07-22
16:41:32 UTC (rev 33145)
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-
-package org.jboss.tools.cdi.ui.ca;
-
-import org.jboss.tools.common.el.ui.ca.ELProposalProcessor;
-import org.jboss.tools.common.el.ui.ca.JavaELProposalComputer;
-
-/**
- * Custom Java Completion Proposal computer
- *
- * @author Jeremy
- */
-public class CDIJavaELProposalComputer extends JavaELProposalComputer {
-
- private final CDIELProposalProcessor fProcessor = new CDIELProposalProcessor();
-
- /*
- * (non-Javadoc)
- * @see org.jboss.tools.common.el.ui.ca.JavaELProposalComputer#getELProcessor()
- */
- @Override
- protected ELProposalProcessor getELProcessor() {
- return fProcessor;
- }
-}
\ No newline at end of file