-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
2,361 additions
and
528 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package cn.ieclipse.smartim.actions; | ||
|
||
import cn.ieclipse.smartim.SmartClient; | ||
import cn.ieclipse.smartim.views.IMPanel; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import icons.SmartIcons; | ||
|
||
import javax.swing.*; | ||
|
||
/** | ||
* Created by Jamling on 2018/02/23. | ||
*/ | ||
public class BroadcastAction extends IMPanelAction { | ||
|
||
public BroadcastAction(IMPanel panel) { | ||
super(panel, "群发", "消息群发", SmartIcons.broadcast); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(AnActionEvent anActionEvent) { | ||
final SmartClient client = imPanel.getClient(); | ||
if (client.isLogin()) { | ||
openDialog(); | ||
} | ||
else { | ||
JOptionPane.showInternalMessageDialog(null, "已断开连接,请重新登录成功后再试"); | ||
} | ||
} | ||
|
||
protected void openDialog() { | ||
|
||
} | ||
|
||
public static String groupMacro = "{group}"; | ||
public static String memberMacro = "{member}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright 2014-2018 ieclipse.cn. | ||
* | ||
* Licensed 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 cn.ieclipse.smartim.actions; | ||
|
||
import cn.ieclipse.smartim.console.IMChatConsole; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import icons.SmartIcons; | ||
|
||
/** | ||
* 类/接口描述 | ||
* | ||
* @author Jamling | ||
* @date 2018年2月24日 | ||
*/ | ||
public class ClearHistoryAction extends IMChatAction { | ||
|
||
public ClearHistoryAction(IMChatConsole console) { | ||
super(console, "", "Clear history", SmartIcons.clear); | ||
} | ||
|
||
@Override | ||
public void actionPerformed(AnActionEvent anActionEvent) { | ||
if (console != null) { | ||
console.clearHistories(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright 2014-2017 ieclipse.cn. | ||
* | ||
* Licensed 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 cn.ieclipse.smartim.actions; | ||
|
||
import cn.ieclipse.smartim.console.IMChatConsole; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.project.DumbAwareAction; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import javax.swing.*; | ||
|
||
/** | ||
* Created by Jamling on 2017/7/12. | ||
*/ | ||
public class IMChatAction extends DumbAwareAction { | ||
protected IMChatConsole console; | ||
|
||
public IMChatAction(IMChatConsole console, @Nullable String text, @Nullable String description, @Nullable Icon icon) { | ||
super(text, description, icon); | ||
this.console = console; | ||
} | ||
|
||
@Override | ||
public void actionPerformed(AnActionEvent anActionEvent) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright 2014-2017 ieclipse.cn. | ||
* | ||
* Licensed 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 cn.ieclipse.smartim.actions; | ||
|
||
import cn.ieclipse.smartim.views.IMPanel; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.project.DumbAwareAction; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import javax.swing.*; | ||
|
||
/** | ||
* Created by Jamling on 2017/7/12. | ||
*/ | ||
public class IMPanelAction extends DumbAwareAction { | ||
protected IMPanel imPanel; | ||
|
||
public IMPanelAction(IMPanel panel, @Nullable String text, @Nullable String description, @Nullable Icon icon) { | ||
super(text, description, icon); | ||
this.imPanel = panel; | ||
} | ||
|
||
@Override | ||
public void actionPerformed(AnActionEvent anActionEvent) { | ||
|
||
} | ||
} |
Oops, something went wrong.