directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r692203 - /directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ExtendedContentAssistCommandAdapter.java
Date Thu, 04 Sep 2008 19:28:49 GMT
Author: seelmann
Date: Thu Sep  4 12:28:49 2008
New Revision: 692203

URL: http://svn.apache.org/viewvc?rev=692203&view=rev
Log:
Added extended ContentAssistCommandAdapter for more controls when proposal popup is opened
and closed

Added:
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ExtendedContentAssistCommandAdapter.java

Added: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ExtendedContentAssistCommandAdapter.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ExtendedContentAssistCommandAdapter.java?rev=692203&view=auto
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ExtendedContentAssistCommandAdapter.java
(added)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/ExtendedContentAssistCommandAdapter.java
Thu Sep  4 12:28:49 2008
@@ -0,0 +1,72 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.connection.ui.widgets;
+
+
+import org.eclipse.jface.fieldassist.IContentProposalProvider;
+import org.eclipse.jface.fieldassist.IControlContentAdapter;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.fieldassist.ContentAssistCommandAdapter;
+
+
+/**
+ * The ExtendedContentAssistCommandAdapter extends the ContentAssistCommandAdapter
+ * and provides public {@link #closeProposalPopup()} and {@link #openProposalPopup()}
+ * methods for more controls when proposal popup is opened and closed.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class ExtendedContentAssistCommandAdapter extends ContentAssistCommandAdapter
+{
+
+    /**
+     * Creates a new instance of ExtendedContentAssistCommandAdapter.
+     * 
+     * @param control the control
+     * @param controlContentAdapter the control content adapter
+     * @param proposalProvider the proposal provider
+     * @param commandId the command id
+     * @param autoActivationCharacters the auto activation characters
+     * @param installDecoration the install decoration
+     */
+    public ExtendedContentAssistCommandAdapter( Control control, IControlContentAdapter controlContentAdapter,
+        IContentProposalProvider proposalProvider, String commandId, char[] autoActivationCharacters,
+        boolean installDecoration )
+    {
+        super( control, controlContentAdapter, proposalProvider, commandId, autoActivationCharacters,
installDecoration );
+
+    }
+
+
+    @Override
+    public void closeProposalPopup()
+    {
+        super.closeProposalPopup();
+    }
+
+
+    @Override
+    public void openProposalPopup()
+    {
+        super.openProposalPopup();
+    }
+
+}



Mime
View raw message